Enum rustc_errors::snippet::Style
source · pub enum Style {
Show 14 variants
MainHeaderMsg,
HeaderMsg,
LineAndColumn,
LineNumber,
Quotation,
UnderlinePrimary,
UnderlineSecondary,
LabelPrimary,
LabelSecondary,
NoStyle,
Level(Level),
Highlight,
Addition,
Removal,
}
Variants§
MainHeaderMsg
HeaderMsg
LineAndColumn
LineNumber
Quotation
UnderlinePrimary
UnderlineSecondary
LabelPrimary
LabelSecondary
NoStyle
Level(Level)
Highlight
Addition
Removal
Implementations§
Trait Implementations§
source§impl PartialEq<Style> for Style
impl PartialEq<Style> for Style
impl Copy 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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
MainHeaderMsg
: 0 bytesHeaderMsg
: 0 bytesLineAndColumn
: 0 bytesLineNumber
: 0 bytesQuotation
: 0 bytesUnderlinePrimary
: 0 bytesUnderlineSecondary
: 0 bytesLabelPrimary
: 0 bytesLabelSecondary
: 0 bytesNoStyle
: 0 bytesLevel
: 24 bytesHighlight
: 0 bytesAddition
: 0 bytesRemoval
: 0 bytes