#[non_exhaustive]pub enum SchemeVariant {
Dark,
Light,
}Expand description
Enum representing variants of a color scheme (Dark or Light). This enum is non-exhaustive, meaning additional variants may be added in future versions without it being considered a breaking change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for SchemeVariant
impl Clone for SchemeVariant
Source§fn clone(&self) -> SchemeVariant
fn clone(&self) -> SchemeVariant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemeVariant
impl Debug for SchemeVariant
Source§impl Default for SchemeVariant
impl Default for SchemeVariant
Source§fn default() -> SchemeVariant
fn default() -> SchemeVariant
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemeVariant
impl<'de> Deserialize<'de> for SchemeVariant
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
Source§impl Display for SchemeVariant
impl Display for SchemeVariant
Source§impl FromStr for SchemeVariant
impl FromStr for SchemeVariant
Source§impl PartialEq for SchemeVariant
impl PartialEq for SchemeVariant
Source§impl Serialize for SchemeVariant
impl Serialize for SchemeVariant
impl StructuralPartialEq for SchemeVariant
Auto Trait Implementations§
impl Freeze for SchemeVariant
impl RefUnwindSafe for SchemeVariant
impl Send for SchemeVariant
impl Sync for SchemeVariant
impl Unpin for SchemeVariant
impl UnwindSafe for SchemeVariant
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