pub struct Swatch {
pub color: [u8; 3],
pub chosen: bool,
}Expand description
A colour of a Swatches block, as sRGB.
Fields§
§color: [u8; 3]§chosen: boolIt is the colour in use: ringed in the accent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Swatch
impl<'de> Deserialize<'de> for Swatch
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 StructuralPartialEq for Swatch
Auto Trait Implementations§
impl Forget for Swatch
impl Freeze for Swatch
impl Move for Swatch
impl RefUnwindSafe for Swatch
impl Send for Swatch
impl Sync for Swatch
impl Unpin for Swatch
impl UnsafeUnpin for Swatch
impl UnwindSafe for Swatch
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