Struct color_eyre::config::Theme[][src]

pub struct Theme { /* fields omitted */ }

A struct that represents a theme that is used by color_eyre

Implementations

impl Theme[src]

pub fn new() -> Self[src]

Creates a blank theme

pub fn dark() -> Self[src]

Returns a theme for dark backgrounds. This is the default

pub fn light() -> Self[src]

Returns a theme for light backgrounds

pub fn file(self, style: Style) -> Self[src]

Styles printed paths

pub fn line_number(self, style: Style) -> Self[src]

Styles the line number of a file

pub fn spantrace_target(self, style: Style) -> Self[src]

Styles the color_spantrace target (i.e. the module and function name, and so on)

pub fn spantrace_fields(self, style: Style) -> Self[src]

Styles fields associated with a the tracing::Span.

pub fn active_line(self, style: Style) -> Self[src]

Styles the selected line of displayed code

pub fn error(self, style: Style) -> Self[src]

Styles errors printed by EyreHandler

pub fn help_info_note(self, style: Style) -> Self[src]

Styles the “note” section header

pub fn help_info_warning(self, style: Style) -> Self[src]

Styles the “warning” section header

pub fn help_info_suggestion(self, style: Style) -> Self[src]

Styles the “suggestion” section header

pub fn help_info_error(self, style: Style) -> Self[src]

Styles the “error” section header

pub fn dependency_code(self, style: Style) -> Self[src]

Styles code that is not part of your crate

pub fn crate_code(self, style: Style) -> Self[src]

Styles code that’s in your crate

pub fn code_hash(self, style: Style) -> Self[src]

Styles the hash after dependency_code and crate_code

pub fn panic_header(self, style: Style) -> Self[src]

Styles the header of a panic

pub fn panic_message(self, style: Style) -> Self[src]

Styles the message of a panic

pub fn panic_file(self, style: Style) -> Self[src]

Styles paths of a panic

pub fn panic_line_number(self, style: Style) -> Self[src]

Styles the line numbers of a panic

pub fn hidden_frames(self, style: Style) -> Self[src]

Styles the “N frames hidden” message

Trait Implementations

impl Clone for Theme[src]

impl Copy for Theme[src]

impl Debug for Theme[src]

impl Default for Theme[src]

Auto Trait Implementations

impl RefUnwindSafe for Theme

impl Send for Theme

impl Sync for Theme

impl Unpin for Theme

impl UnwindSafe for Theme

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D> OwoColorize for D[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.