Struct usvg::BaseGradient
source · pub struct BaseGradient { /* private fields */ }
Expand description
A generic gradient.
Implementations§
source§impl BaseGradient
impl BaseGradient
sourcepub fn id(&self) -> &str
pub fn id(&self) -> &str
Element’s ID.
Taken from the SVG itself.
Used only during SVG writing. resvg
doesn’t rely on this property.
sourcepub fn spread_method(&self) -> SpreadMethod
pub fn spread_method(&self) -> SpreadMethod
Gradient spreading method.
spreadMethod
in SVG.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BaseGradient
impl RefUnwindSafe for BaseGradient
impl Send for BaseGradient
impl Sync for BaseGradient
impl Unpin for BaseGradient
impl UnwindSafe for BaseGradient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more