#[non_exhaustive]pub struct ErrorFmtSettings {
pub level_of_detail: ErrorFmtLoD,
pub frame_limit: Option<usize>,
pub enable_color: bool,
pub link_format: LinkDebugIde,
pub indentation_style: IndentationStyle,
pub indentation: usize,
pub inside_format_string: bool,
pub skip_first_indentations: usize,
}Expand description
Configuration for error formatting output.
Controls the level of detail, coloring, indentation style, and link format.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.level_of_detail: ErrorFmtLoDHow much detail to include in the output.
frame_limit: Option<usize>Maximum number of error frames to include (None = unlimited).
enable_color: boolWhether to include ANSI color codes in output.
link_format: LinkDebugIdeHow source locations are formatted (plain text, VSCode link, etc).
indentation_style: IndentationStyleIndentation style (tabs, 2 spaces, or 4 spaces).
indentation: usizeCurrent indentation depth (internal use).
inside_format_string: boolWhether we are currently inside a format string (internal use).
skip_first_indentations: usizeNumber of initial indentations to skip (internal use).
Trait Implementations§
Source§impl Clone for ErrorFmtSettings
impl Clone for ErrorFmtSettings
Source§fn clone(&self) -> ErrorFmtSettings
fn clone(&self) -> ErrorFmtSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorFmtSettings
impl Debug for ErrorFmtSettings
Source§impl Default for ErrorFmtSettings
impl Default for ErrorFmtSettings
impl Copy for ErrorFmtSettings
Auto Trait Implementations§
impl Freeze for ErrorFmtSettings
impl RefUnwindSafe for ErrorFmtSettings
impl Send for ErrorFmtSettings
impl Sync for ErrorFmtSettings
impl Unpin for ErrorFmtSettings
impl UnwindSafe for ErrorFmtSettings
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