Struct usvg_tree::LinearGradient
source · pub struct LinearGradient {
pub base: BaseGradient,
pub x1: f32,
pub y1: f32,
pub x2: f32,
pub y2: f32,
}
Expand description
A linear gradient.
linearGradient
element in SVG.
Fields§
§base: BaseGradient
Base gradient data.
x1: f32
§y1: f32
§x2: f32
§y2: f32
Trait Implementations§
source§impl Clone for LinearGradient
impl Clone for LinearGradient
source§fn clone(&self) -> LinearGradient
fn clone(&self) -> LinearGradient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LinearGradient
impl Debug for LinearGradient
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§
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