#[non_exhaustive]pub enum Style {
Text,
Emphasis,
Literal,
Metavar,
Invalid,
}
Expand description
Style of a text fragment inside of Doc
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.
Text
Plain text, no decorations
Emphasis
Word with emphasis - things like “Usage”, “Available options”, etc
Literal
Something user needs to type literally - command names, etc
Metavar
Metavavar placeholder - something user needs to replace with own input
Invalid
Invalid input given by user - used to display invalid parts of the input
Trait Implementations§
impl Copy for Style
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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