pub enum ColorKind {
LinearGradient(LinearGradient),
RadialGradient(RadialGradient),
ConicalGradient(ConicalGradient),
SolidColor(SolidColor),
}Expand description
An enum to describe the possible kinds of colors used when rendering various
Layer attributes/properties.
Variants§
LinearGradient(LinearGradient)
A kind of LinearGradient.
RadialGradient(RadialGradient)
A kind of RadialGradient.
ConicalGradient(ConicalGradient)
A kind of ConicalGradient.
SolidColor(SolidColor)
A kind of SolidColor.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ColorKind
impl<'de> Deserialize<'de> for ColorKind
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ConicalGradient> for ColorKind
impl From<ConicalGradient> for ColorKind
Source§fn from(val: ConicalGradient) -> Self
fn from(val: ConicalGradient) -> Self
Converts to this type from the input type.
Source§impl From<LinearGradient> for ColorKind
impl From<LinearGradient> for ColorKind
Source§fn from(val: LinearGradient) -> Self
fn from(val: LinearGradient) -> Self
Converts to this type from the input type.
Source§impl From<RadialGradient> for ColorKind
impl From<RadialGradient> for ColorKind
Source§fn from(val: RadialGradient) -> Self
fn from(val: RadialGradient) -> Self
Converts to this type from the input type.
Source§impl From<SolidColor> for ColorKind
impl From<SolidColor> for ColorKind
Source§fn from(val: SolidColor) -> Self
fn from(val: SolidColor) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ColorKind
impl RefUnwindSafe for ColorKind
impl Send for ColorKind
impl Sync for ColorKind
impl Unpin for ColorKind
impl UnsafeUnpin for ColorKind
impl UnwindSafe for ColorKind
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