Struct primitives::foundation::LinearGradient
source · [−]Expand description
Represents radial gradient specified by four parameters
Fields
x0: f64
Represents first point x position of gradient
y0: f64
Represents first point y position of gradient
x1: f64
Represents second point x position of gradient
y1: f64
Represents second point y position of gradient
Implementations
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 Default for LinearGradient
impl Default for LinearGradient
sourcefn default() -> LinearGradient
fn default() -> LinearGradient
Returns the “default value” for a type. Read more
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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