#[non_exhaustive]pub enum Role {
Plain,
Heading,
Success,
Warning,
Error,
Value,
Muted,
Token,
Id,
}Available on crate feature
document only.Expand description
What a Span means. A Theme chooses the style that draws each role.
The enum is #[non_exhaustive]: a match needs a wildcard arm.
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.
Plain
Content with no style of its own. A heading or a token column gives a plain span its own role.
Heading
The text of a heading, a section title, or a table header.
Success
A successful outcome.
Warning
A warning.
Error
An error.
Value
A value or a metavar, such as <FILE>.
Muted
Secondary information that should not draw the eye.
Token
A flag, command, field name, or other literal the user types or reads.
Id
The identifier of a row, patch, package, or other domain record.
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