pub enum Tone {
Normal,
Dim,
Accent,
Success,
Warning,
Danger,
}Expand description
A colour role, not a colour: clients map it to their theme. Unknown names (a newer tone)
are Tone::Normal.
Variants§
Trait Implementations§
impl Copy for Tone
Source§impl<'de> Deserialize<'de> for Tone
impl<'de> Deserialize<'de> for Tone
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Tone
impl StructuralPartialEq for Tone
Auto Trait Implementations§
impl Forget for Tone
impl Freeze for Tone
impl Move for Tone
impl RefUnwindSafe for Tone
impl Send for Tone
impl Sync for Tone
impl Unpin for Tone
impl UnsafeUnpin for Tone
impl UnwindSafe for Tone
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