Struct codespan_reporting::term::Config[][src]

pub struct Config {
    pub display_style: DisplayStyle,
    pub tab_width: usize,
    pub styles: Styles,
    pub chars: Chars,
    pub start_context_lines: usize,
    pub end_context_lines: usize,
}

Configures how a diagnostic is rendered.

Fields

display_style: DisplayStyle

The display style to use when rendering diagnostics. Defaults to: DisplayStyle::Rich.

tab_width: usize

Column width of tabs. Defaults to: 4.

styles: Styles

Styles to use when rendering the diagnostic.

chars: Chars

Characters to use when rendering the diagnostic.

start_context_lines: usize

The minimum number of lines to be shown after the line on which a multiline Label begins.

Defaults to: 3.

end_context_lines: usize

The minimum number of lines to be shown before the line on which a multiline Label ends.

Defaults to: 1.

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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, U> Into<U> for T where
    U: From<T>, 
[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.