pub struct TracebackConfig {
pub show_source: bool,
pub context_lines: usize,
pub show_locals: bool,
pub border_style: BorderStyle,
pub error_style: Style,
}Expand description
Configuration for traceback display.
Fields§
§show_source: boolShow source code context
context_lines: usizeNumber of context lines before/after
show_locals: boolShow local variables (limited in Rust)
border_style: BorderStylePanel style
error_style: StyleError style
Trait Implementations§
Source§impl Clone for TracebackConfig
impl Clone for TracebackConfig
Source§fn clone(&self) -> TracebackConfig
fn clone(&self) -> TracebackConfig
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 TracebackConfig
impl Debug for TracebackConfig
Auto Trait Implementations§
impl Freeze for TracebackConfig
impl RefUnwindSafe for TracebackConfig
impl Send for TracebackConfig
impl Sync for TracebackConfig
impl Unpin for TracebackConfig
impl UnwindSafe for TracebackConfig
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