Enum aldrin_parser::diag::Style
source · 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 PartialEq for Style
impl PartialEq for Style
source§impl PartialOrd for Style
impl PartialOrd for Style
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Style
impl Eq for Style
impl StructuralEq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
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