Enum SemanticThemeRole
pub enum SemanticThemeRole {
Background,
Foreground,
Primary,
Secondary,
Accent,
Muted,
Success,
Warning,
Danger,
Info,
}Expand description
Semantic roles commonly used by themes.
Variants§
Implementations§
§impl SemanticThemeRole
impl SemanticThemeRole
Trait Implementations§
§impl Clone for SemanticThemeRole
impl Clone for SemanticThemeRole
§fn clone(&self) -> SemanticThemeRole
fn clone(&self) -> SemanticThemeRole
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 more§impl Debug for SemanticThemeRole
impl Debug for SemanticThemeRole
§impl Hash for SemanticThemeRole
impl Hash for SemanticThemeRole
§impl Ord for SemanticThemeRole
impl Ord for SemanticThemeRole
§fn cmp(&self, other: &SemanticThemeRole) -> Ordering
fn cmp(&self, other: &SemanticThemeRole) -> Ordering
1.21.0 · 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
§impl PartialEq for SemanticThemeRole
impl PartialEq for SemanticThemeRole
§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