pub enum Role {
Accent,
Key,
Ok,
Warn,
Err,
Info,
Secondary,
Neutral,
Selected,
Match,
Link,
}Expand description
What a piece of text means. Callers pick a role; never a color.
Variants§
Accent
Structure and titles: box rules, section and table headers.
Key
Key names in hints and help.
Ok
A passed check, a gain, a healthy state.
Warn
A warning: outside its target, but not a failure.
Err
A failure, a loss, an unhealthy state.
Info
The glyph of an informational note.
Secondary
Labels, descriptions and notes that sit behind the main text.
Neutral
Plain text in the terminal’s default style.
Selected
The selected row of a list.
Match
A search match.
Link
A URL.
Implementations§
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Forget for Role
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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.