pub enum Base {
Show 16 variants
B00,
B01,
B02,
B03,
B04,
B05,
B06,
B07,
B08,
B09,
B0A,
B0B,
B0C,
B0D,
B0E,
B0F,
}Expand description
One of the 16 base colors of a Palette. B00..B07 are the monochrome
shades (darkest background to lightest foreground); B08..B0F are the
accent colors. This is the base16 convention.
Base is the canvas’s color vocabulary: drawing code names a Swatch
(a Base slot plus an alpha), and the renderer resolves it against the
active Palette. Higher layers map their own semantics (app “roles”) onto
Base, but the canvas itself only ever sees palette slots — never an
arbitrary Color.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Base
impl<'de> Deserialize<'de> for Base
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 Base
impl Eq for Base
impl StructuralPartialEq for Base
Auto Trait Implementations§
impl Freeze for Base
impl RefUnwindSafe for Base
impl Send for Base
impl Sync for Base
impl Unpin for Base
impl UnsafeUnpin for Base
impl UnwindSafe for Base
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.