pub enum Variant {
Light,
Dark,
HighContrast,
}Expand description
A theme’s kind, as declared by meta.variant.
Three, not two: one shipped theme is high-contrast, and an app that
matched on light-or-dark alone would quietly file it under the wrong one.
Variants§
Implementations§
Trait Implementations§
impl Copy for Variant
impl Eq for Variant
Source§impl From<&str> for Variant
Anything unrecognized reads as dark, which is what parse_meta already
does with a missing one. Consumers that guessed light for an unknown string
were disagreeing with the crate that produced it.
impl From<&str> for Variant
Anything unrecognized reads as dark, which is what parse_meta already
does with a missing one. Consumers that guessed light for an unknown string
were disagreeing with the crate that produced it.
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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