pub enum ThemeName {
Named(String),
Default,
}
Expand description
The name of a theme or the default theme.
assert_eq!(ThemeName::Default, ThemeName::new("default"));
assert_eq!(ThemeName::Named("example".to_string()), ThemeName::new("example"));
Variants§
Implementations§
Trait Implementations§
impl Eq for ThemeName
impl StructuralPartialEq for ThemeName
Auto Trait Implementations§
impl Freeze for ThemeName
impl RefUnwindSafe for ThemeName
impl Send for ThemeName
impl Sync for ThemeName
impl Unpin for ThemeName
impl UnwindSafe for ThemeName
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.