Struct palette::gradient::Take[][src]

pub struct Take<'a, C, T = Vec<(<C as Mix>::Scalar, C)>> where
    C: Mix + Clone + 'a,
    T: AsRef<[(C::Scalar, C)]>, 
{ /* fields omitted */ }

An iterator over interpolated colors.

Trait Implementations

impl<'a, C: Clone, T: Clone> Clone for Take<'a, C, T> where
    C: Mix + Clone + 'a,
    T: AsRef<[(C::Scalar, C)]>,
    C::Scalar: Clone,
    C::Scalar: Clone
[src]

impl<'a, C, T> DoubleEndedIterator for Take<'a, C, T> where
    C::Scalar: FromF64,
    C: Mix + Clone,
    T: AsRef<[(C::Scalar, C)]>, 
[src]

impl<'a, C, T> ExactSizeIterator for Take<'a, C, T> where
    C::Scalar: FromF64,
    C: Mix + Clone,
    T: AsRef<[(C::Scalar, C)]>, 
[src]

impl<'a, C, T> Iterator for Take<'a, C, T> where
    C::Scalar: FromF64,
    C: Mix + Clone,
    T: AsRef<[(C::Scalar, C)]>, 
[src]

type Item = C

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, C, T> RefUnwindSafe for Take<'a, C, T> where
    C: RefUnwindSafe,
    T: RefUnwindSafe,
    <C as Mix>::Scalar: RefUnwindSafe

impl<'a, C, T> Send for Take<'a, C, T> where
    C: Sync,
    T: Sync,
    <C as Mix>::Scalar: Send

impl<'a, C, T> Sync for Take<'a, C, T> where
    C: Sync,
    T: Sync,
    <C as Mix>::Scalar: Sync

impl<'a, C, T> Unpin for Take<'a, C, T> where
    <C as Mix>::Scalar: Unpin

impl<'a, C, T> UnwindSafe for Take<'a, C, T> where
    C: RefUnwindSafe,
    T: RefUnwindSafe,
    <C as Mix>::Scalar: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: FloatComponent,
    Swp: WhitePoint,
    Dwp: WhitePoint,
    D: AdaptFrom<S, Swp, Dwp, T>, 
[src]

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> From<T> for T[src]

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

impl<T, U> IntoColor<U> for T where
    U: FromColor<T>, 
[src]

impl<T, U> IntoColorUnclamped<U> for T where
    U: FromColorUnclamped<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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<T, U> TryIntoColor<U> for T where
    U: TryFromColor<T>, 
[src]