pub enum SemanticThemeRole {
Background,
Foreground,
Primary,
Secondary,
Accent,
Muted,
Success,
Warning,
Danger,
Info,
}Expand description
Semantic roles commonly used by themes.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SemanticThemeRole
impl Clone for SemanticThemeRole
Source§fn clone(&self) -> SemanticThemeRole
fn clone(&self) -> SemanticThemeRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SemanticThemeRole
impl Debug for SemanticThemeRole
Source§impl Hash for SemanticThemeRole
impl Hash for SemanticThemeRole
Source§impl Ord for SemanticThemeRole
impl Ord for SemanticThemeRole
Source§fn cmp(&self, other: &SemanticThemeRole) -> Ordering
fn cmp(&self, other: &SemanticThemeRole) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SemanticThemeRole
impl PartialEq for SemanticThemeRole
Source§fn eq(&self, other: &SemanticThemeRole) -> bool
fn eq(&self, other: &SemanticThemeRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SemanticThemeRole
impl PartialOrd for SemanticThemeRole
impl Copy for SemanticThemeRole
impl Eq for SemanticThemeRole
impl StructuralPartialEq for SemanticThemeRole
Auto Trait Implementations§
impl Freeze for SemanticThemeRole
impl RefUnwindSafe for SemanticThemeRole
impl Send for SemanticThemeRole
impl Sync for SemanticThemeRole
impl Unpin for SemanticThemeRole
impl UnsafeUnpin for SemanticThemeRole
impl UnwindSafe for SemanticThemeRole
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