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.
§Example
use charon_error::{ErrorFmtSettings, ErrorFmtLoD, IndentationStyle, LinkDebugIde};
let settings = ErrorFmtSettings {
level_of_detail: ErrorFmtLoD::Compact,
enable_color: false,
link_format: LinkDebugIde::NoLink,
indentation_style: IndentationStyle::TwoSpaces,
..Default::default()
};Fields§
§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
Source§impl From<&ERGlobalSettings> for ErrorFmtSettings
impl From<&ERGlobalSettings> for ErrorFmtSettings
Source§fn from(settings: &ERGlobalSettings) -> Self
fn from(settings: &ERGlobalSettings) -> Self
Converts to this type from the input type.
Source§impl From<ERGlobalSettings> for ErrorFmtSettings
impl From<ERGlobalSettings> for ErrorFmtSettings
Source§fn from(settings: ERGlobalSettings) -> Self
fn from(settings: ERGlobalSettings) -> Self
Converts to this type from the input type.
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 UnsafeUnpin 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