pub struct Traceback { /* private fields */ }Expand description
A formatted traceback.
Implementations§
Source§impl Traceback
impl Traceback
Sourcepub fn from_panic(info: &PanicHookInfo<'_>) -> Self
pub fn from_panic(info: &PanicHookInfo<'_>) -> Self
Create a new traceback from a panic info.
Sourcepub fn from_error(message: &str) -> Self
pub fn from_error(message: &str) -> Self
Create from an error message.
Sourcepub fn with_config(self, config: TracebackConfig) -> Self
pub fn with_config(self, config: TracebackConfig) -> Self
Set configuration.
Trait Implementations§
Source§impl Renderable for Traceback
impl Renderable for Traceback
Auto Trait Implementations§
impl Freeze for Traceback
impl RefUnwindSafe for Traceback
impl Send for Traceback
impl Sync for Traceback
impl Unpin for Traceback
impl UnwindSafe for Traceback
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> Measurable for Twhere
T: Renderable,
impl<T> Measurable for Twhere
T: Renderable,
Source§fn measure(&self, width: usize) -> Measurement
fn measure(&self, width: usize) -> Measurement
Measure this renderable at the given width.