[−][src]Enum skia_safe::gradient_shader::GradientShaderColors
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]
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,