pub struct Chars {Show 16 fields
pub snippet_start: String,
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,
pub pointer_left: char,
}Expand description
Characters to use when rendering the diagnostic.
By using Chars::ascii() you can switch to an ASCII-only format suitable
for rendering on terminals that do not support box drawing characters.
Fields§
§snippet_start: StringThe characters to use for the top-left border of the snippet.
Defaults to: "┌─" or "-->" with Chars::ascii().
source_border_left: charThe character to use for the left border of the source.
Defaults to: '│' or '|' with Chars::ascii().
source_border_left_break: charThe character to use for the left border break of the source.
Defaults to: '·' or '.' with Chars::ascii().
note_bullet: charThe character to use for the note bullet.
Defaults to: '='.
single_primary_caret: charThe character to use for marking a single-line primary label.
Defaults to: '^'.
single_secondary_caret: charThe character to use for marking a single-line secondary label.
Defaults to: '-'.
multi_primary_caret_start: charThe character to use for marking the start of a multi-line primary label.
Defaults to: '^'.
multi_primary_caret_end: charThe character to use for marking the end of a multi-line primary label.
Defaults to: '^'.
multi_secondary_caret_start: charThe character to use for marking the start of a multi-line secondary label.
Defaults to: '\''.
multi_secondary_caret_end: charThe character to use for marking the end of a multi-line secondary label.
Defaults to: '\''.
multi_top_left: charThe character to use for the top-left corner of a multi-line label.
Defaults to: '╭' or '/' with Chars::ascii().
multi_top: charThe character to use for the top of a multi-line label.
Defaults to: '─' or '-' with Chars::ascii().
multi_bottom_left: charThe character to use for the bottom-left corner of a multi-line label.
Defaults to: '╰' or '\' with Chars::ascii().
multi_bottom: charThe character to use when marking the bottom of a multi-line label.
Defaults to: '─' or '-' with Chars::ascii().
multi_left: charThe character to use for the left of a multi-line label.
Defaults to: '│' or '|' with Chars::ascii().
pointer_left: charThe character to use for the left of a pointer underneath a caret.
Defaults to: '│' or '|' with Chars::ascii().