#[non_exhaustive]pub enum Counterpart {
Auto,
Theme(String),
None,
}Expand description
Which theme, if any, is the other variant (light or dark) of a spec’s base theme: installed with it, so that egui’s light or dark mode (the system’s, or the user’s choice) switches between them without installing anything again.
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.
Auto
The one the token files name (VARIANT_OF_EXTENSION); none
when they name none.
Theme(String)
This theme, whatever the files say.
None
None: the base theme alone, in its own mode whatever is asked.
Trait Implementations§
Source§impl Clone for Counterpart
impl Clone for Counterpart
Source§fn clone(&self) -> Counterpart
fn clone(&self) -> Counterpart
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 Counterpart
impl Debug for Counterpart
Source§impl Default for Counterpart
impl Default for Counterpart
Source§fn default() -> Counterpart
fn default() -> Counterpart
Returns the “default value” for a type. Read more
Source§impl PartialEq for Counterpart
impl PartialEq for Counterpart
impl Eq for Counterpart
impl StructuralPartialEq for Counterpart
Auto Trait Implementations§
impl Freeze for Counterpart
impl RefUnwindSafe for Counterpart
impl Send for Counterpart
impl Sync for Counterpart
impl Unpin for Counterpart
impl UnsafeUnpin for Counterpart
impl UnwindSafe for Counterpart
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.