pub struct ErrorDisplayConfig {Show 14 fields
pub error_color: String,
pub warning_color: String,
pub info_color: String,
pub hint_color: String,
pub line_number_color: String,
pub caret_color: String,
pub file_path_color: String,
pub border_color: String,
pub background_color: String,
pub show_context: bool,
pub context_lines: usize,
pub caret_char: char,
pub continuation_char: char,
pub syntax_highlighting: SyntaxHighlightConfig,
}Expand description
Error display style configuration
Fields§
§error_color: StringColor for error severity indicators
warning_color: StringColor for warning severity indicators
info_color: StringColor for info severity indicators
hint_color: StringColor for hint severity indicators
line_number_color: StringColor for line numbers
caret_color: StringColor for caret indicators (^^^)
file_path_color: StringColor for file path information
border_color: StringColor for pipe characters and borders
background_color: StringBackground color for error display
show_context: boolWhether to show context lines around error
context_lines: usizeNumber of context lines to show before and after error
caret_char: charCharacter to use for caret indicators
continuation_char: charCharacter to use for line continuation
syntax_highlighting: SyntaxHighlightConfigSyntax highlighting configuration
Implementations§
Trait Implementations§
Source§impl Clone for ErrorDisplayConfig
impl Clone for ErrorDisplayConfig
Source§fn clone(&self) -> ErrorDisplayConfig
fn clone(&self) -> ErrorDisplayConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ErrorDisplayConfig
impl Debug for ErrorDisplayConfig
Auto Trait Implementations§
impl Freeze for ErrorDisplayConfig
impl RefUnwindSafe for ErrorDisplayConfig
impl Send for ErrorDisplayConfig
impl Sync for ErrorDisplayConfig
impl Unpin for ErrorDisplayConfig
impl UnsafeUnpin for ErrorDisplayConfig
impl UnwindSafe for ErrorDisplayConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.