pub struct LinearGradient { /* private fields */ }
Expand description
A linear gradient.
linearGradient
element in SVG.
Implementations§
Methods from Deref<Target = 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§
source§impl Debug for LinearGradient
impl Debug for LinearGradient
Auto Trait Implementations§
impl Freeze for LinearGradient
impl RefUnwindSafe for LinearGradient
impl Send for LinearGradient
impl Sync for LinearGradient
impl Unpin for LinearGradient
impl UnwindSafe for LinearGradient
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