[][src]Enum skia_safe::gradient_shader::GradientShaderColors

pub enum GradientShaderColors<'a> {
    Colors(&'a [Color]),
    ColorsInSpace(&'a [Color4f]ColorSpace),
}

Type that represents either a slice of Color, or a slice of Color4f and a color space. Whenever this type is expected, it's either possible to directly pass a &Color , or a tuple of type (&Color4f, &ColorSpace).

Variants

Colors(&'a [Color])ColorsInSpace(&'a [Color4f]ColorSpace)

Methods

impl<'a> GradientShaderColors<'a>[src]

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

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl<'a> From<&'a [Color]> for GradientShaderColors<'a>[src]

impl<'a> From<(&'a [Color4f], RCHandle<SkColorSpace>)> for GradientShaderColors<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for GradientShaderColors<'a>

impl<'a> !Sync for GradientShaderColors<'a>

impl<'a> !Send for GradientShaderColors<'a>

impl<'a> UnwindSafe for GradientShaderColors<'a>

impl<'a> RefUnwindSafe for GradientShaderColors<'a>

Blanket Implementations

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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