Struct rustc_errors::ColorSpec
source · pub struct ColorSpec {
pub(crate) fg_color: Option<Color>,
pub(crate) bg_color: Option<Color>,
pub(crate) bold: bool,
pub(crate) intense: bool,
pub(crate) underline: bool,
pub(crate) dimmed: bool,
pub(crate) italic: bool,
pub(crate) reset: bool,
pub(crate) strikethrough: bool,
}
Expand description
A color specification.
Fields§
§fg_color: Option<Color>
§bg_color: Option<Color>
§bold: bool
§intense: bool
§underline: bool
§dimmed: bool
§italic: bool
§reset: bool
§strikethrough: bool
Auto Trait Implementations§
impl RefUnwindSafe for ColorSpec
impl Send for ColorSpec
impl Sync for ColorSpec
impl Unpin for ColorSpec
impl UnwindSafe for ColorSpec
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: 15 bytes