pub struct CliRendererConfig {
pub use_colors: bool,
pub context_lines: usize,
pub show_error_codes: bool,
pub show_suggestions: bool,
pub show_related: bool,
pub terminal_width: usize,
}Expand description
Configuration for CLI error rendering
Fields§
§use_colors: boolUse ANSI colors in output
context_lines: usizeNumber of context lines to show before/after error
show_error_codes: boolShow error codes (e.g., E0001)
show_suggestions: boolShow suggestions
Show related information
terminal_width: usizeTerminal width for wrapping (0 = no wrap)
Implementations§
Source§impl CliRendererConfig
impl CliRendererConfig
Sourcepub fn plain() -> CliRendererConfig
pub fn plain() -> CliRendererConfig
Create a config without colors (for testing or non-terminal output)
Trait Implementations§
Source§impl Clone for CliRendererConfig
impl Clone for CliRendererConfig
Source§fn clone(&self) -> CliRendererConfig
fn clone(&self) -> CliRendererConfig
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 CliRendererConfig
impl Debug for CliRendererConfig
Source§impl Default for CliRendererConfig
impl Default for CliRendererConfig
Source§fn default() -> CliRendererConfig
fn default() -> CliRendererConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CliRendererConfig
impl RefUnwindSafe for CliRendererConfig
impl Send for CliRendererConfig
impl Sync for CliRendererConfig
impl Unpin for CliRendererConfig
impl UnsafeUnpin for CliRendererConfig
impl UnwindSafe for CliRendererConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more