pub struct LinearGradient {
pub direction: Direction,
pub stops: Vec<GradientStop>,
}Fields§
§direction: Direction§stops: Vec<GradientStop>Implementations§
Source§impl LinearGradient
impl LinearGradient
pub fn new(direction: Direction) -> LinearGradient
pub fn add_stop(self, stop: GradientStop) -> LinearGradient
pub fn get_stops(&mut self, parent_length: f32) -> Vec<(f32, Color)>
Trait Implementations§
Source§impl Clone for LinearGradient
impl Clone for LinearGradient
Source§fn clone(&self) -> LinearGradient
fn clone(&self) -> LinearGradient
Returns a duplicate 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
Source§impl Default for LinearGradient
impl Default for LinearGradient
Source§fn default() -> LinearGradient
fn default() -> LinearGradient
Returns the “default value” for a type. Read more
Source§impl PartialEq for LinearGradient
impl PartialEq for LinearGradient
impl StructuralPartialEq 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