#[repr(u8)]pub enum ColorMode {
Currenthueandcurrentsaturation = 0,
Currentxandcurrenty = 1,
Colortemperaturemireds = 2,
}Variants§
Currenthueandcurrentsaturation = 0
The current hue and saturation attributes determine the color.
Currentxandcurrenty = 1
The current X and Y attributes determine the color.
Colortemperaturemireds = 2
The color temperature attribute determines the color.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ColorMode
impl<'de> Deserialize<'de> for ColorMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ColorMode
impl Eq for ColorMode
impl StructuralPartialEq for ColorMode
Auto Trait Implementations§
impl Freeze for ColorMode
impl RefUnwindSafe for ColorMode
impl Send for ColorMode
impl Sync for ColorMode
impl Unpin for ColorMode
impl UnwindSafe for ColorMode
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