pub enum ColorKind {
Reset,
Error,
Warning,
Kind,
Margin,
SkippedMargin,
Unimportant,
Note,
Label,
}Expand description
Color categories for diagnostic output
Each category represents a different part of the diagnostic rendering that can be styled independently.
Variants§
Reset
Reset all colors/styles to default
Error
Error severity level and error-related elements
Warning
Warning severity level and warning-related elements
Kind
Custom severity level names (e.g., “Hint”, “Note”)
Margin
Line number margin (gutter)
SkippedMargin
Margin for skipped lines (“…”)
Unimportant
Less important text (e.g., source file paths)
Note
Note and help messages
Label
Label highlights and arrows
Trait Implementations§
impl Copy for ColorKind
impl Eq for ColorKind
impl StructuralPartialEq for ColorKind
Auto Trait Implementations§
impl Freeze for ColorKind
impl RefUnwindSafe for ColorKind
impl Send for ColorKind
impl Sync for ColorKind
impl Unpin for ColorKind
impl UnwindSafe for ColorKind
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