pub enum Style {
Regular,
Error,
Warning,
Info,
Emphasized,
Separator,
LineNumber,
}Expand description
Style of chunk in a formatted diagnostic.
This describes broadly what particular chunk in Formatted contains and how it should be
styled.
Variants§
Regular
Regular / unstyled output.
Error
Output e.g. as red and bold.
Warning
Output e.g. as yellow and bold.
Info
Output e.g. as blue and bold.
Emphasized
Output e.g. as bold.
Separator
Output e.g. green.
LineNumber
Output e.g. green and bold.
Trait Implementations§
Source§impl Ord for Style
impl Ord for Style
Source§impl PartialOrd for Style
impl PartialOrd for Style
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