[][src]Struct codespan_reporting::term::Chars

pub struct Chars {
    pub source_border_top_left: char,
    pub source_border_top: char,
    pub source_border_left: char,
    pub source_border_left_break: char,
    pub note_bullet: char,
    pub single_primary_caret: char,
    pub single_secondary_caret: char,
    pub multi_primary_caret_start: char,
    pub multi_primary_caret_end: char,
    pub multi_secondary_caret_start: char,
    pub multi_secondary_caret_end: char,
    pub multi_top_left: char,
    pub multi_top: char,
    pub multi_bottom_left: char,
    pub multi_bottom: char,
    pub multi_left: char,
}

Characters to use when rendering the diagnostic.

Fields

source_border_top_left: char

The character to use for the top-left border of the source. Defaults to: '┌'.

source_border_top: char

The character to use for the top border of the source. Defaults to: '─'.

source_border_left: char

The character to use for the left border of the source. Defaults to: '│'.

source_border_left_break: char

The character to use for the left border break of the source. Defaults to: '·'.

note_bullet: char

The character to use for the note bullet. Defaults to: '='.

single_primary_caret: char

The character to use for marking a single-line primary label. Defaults to: '^'.

single_secondary_caret: char

The character to use for marking a single-line secondary label. Defaults to: '-'.

multi_primary_caret_start: char

The character to use for marking the start of a multi-line primary label. Defaults to: '^'.

multi_primary_caret_end: char

The character to use for marking the end of a multi-line primary label. Defaults to: '^'.

multi_secondary_caret_start: char

The character to use for marking the start of a multi-line secondary label. Defaults to: '\''.

multi_secondary_caret_end: char

The character to use for marking the end of a multi-line secondary label. Defaults to: '\''.

multi_top_left: char

The character to use for the top-left corner of a multi-line label. Defaults to: '╭'.

multi_top: char

The character to use for the top of a multi-line label. Defaults to: '─'.

multi_bottom_left: char

The character to use for the bottom-left corner of a multi-line label. Defaults to: '╰'.

multi_bottom: char

The character to use when marking the bottom of a multi-line label. Defaults to: '─'.

multi_left: char

The character to use for the left of a multi-line label. Defaults to: '│'.

Methods

impl Chars[src]

pub fn single_caret_char(&self, label_style: LabelStyle) -> char[src]

pub fn multi_caret_char_start(&self, label_style: LabelStyle) -> char[src]

pub fn multi_caret_char_end(&self, label_style: LabelStyle) -> char[src]

Trait Implementations

impl Clone for Chars[src]

impl Debug for Chars[src]

impl Default for Chars[src]

Auto Trait Implementations

impl RefUnwindSafe for Chars

impl Send for Chars

impl Sync for Chars

impl Unpin for Chars

impl UnwindSafe for Chars

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.