Struct usvgr::LinearGradient
source · [−]pub struct LinearGradient {
pub id: String,
pub x1: f64,
pub y1: f64,
pub x2: f64,
pub y2: f64,
pub base: BaseGradient,
}Expand description
A linear gradient.
linearGradient element in SVG.
Fields
id: StringElement’s ID.
Taken from the SVG itself. Can’t be empty.
x1: f64y1: f64x2: f64y2: f64base: BaseGradientBase gradient data.
Trait Implementations
sourceimpl Clone for LinearGradient
impl Clone for LinearGradient
sourcefn clone(&self) -> LinearGradient
fn clone(&self) -> LinearGradient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LinearGradient
impl Debug for LinearGradient
sourceimpl Deref for LinearGradient
impl Deref for LinearGradient
type Target = BaseGradient
type Target = BaseGradient
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for LinearGradient
impl Send for LinearGradient
impl Sync for LinearGradient
impl Unpin for LinearGradient
impl UnwindSafe for LinearGradient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more