pub struct Config {
pub display_style: DisplayStyle,
pub tab_width: usize,
pub chars: Chars,
pub start_context_lines: usize,
pub end_context_lines: usize,
pub before_label_lines: usize,
pub after_label_lines: usize,
}Expand description
Configures how a diagnostic is rendered.
Fields§
§display_style: DisplayStyleThe display style to use when rendering diagnostics.
Defaults to: DisplayStyle::Rich.
tab_width: usizeColumn width of tabs.
Defaults to: 4.
chars: CharsCharacters to use when rendering the diagnostic.
start_context_lines: usizeThe minimum number of lines to be shown after the line on which a multiline Label begins.
Defaults to: 3.
end_context_lines: usizeThe minimum number of lines to be shown before the line on which a multiline Label ends.
Defaults to: 1.
before_label_lines: usizeThe minimum number of lines before a label that should be included for context.
Defaults to: 0.
after_label_lines: usizeThe minimum number of lines after a label that should be included for context.
Defaults to: 0.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Configwhere
RawVecInner: Send,
impl Sync for Configwhere
RawVecInner: Sync,
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Configwhere
RawVecInner: UnwindSafe,
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