Struct animate::Gradient[][src]

pub struct Gradient {
    pub kind: GradientType,
    pub stops: RefCell<Vec<ColorStop, Global>>,
}

Fields

kind: GradientTypestops: RefCell<Vec<ColorStop, Global>>

Implementations

impl Gradient[src]

pub fn new(kind: GradientType) -> Gradient[src]

pub fn add_color_stop(&self, stop: ColorStop)[src]

pub fn get_color_count(&self) -> usize[src]

pub fn get_color_stop(&self, index: usize) -> Option<ColorStop>[src]

Trait Implementations

impl Clone for Gradient[src]

impl Debug for Gradient[src]

impl Default for Gradient[src]

Auto Trait Implementations

impl !RefUnwindSafe for Gradient

impl Send for Gradient

impl !Sync for Gradient

impl Unpin for Gradient

impl UnwindSafe for Gradient

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Construction<T> for T where
    T: Default + Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,