pub struct StackTraceView<'a> { /* private fields */ }Expand description
Rendering options for a StackTrace.
Implementations§
Source§impl StackTraceView<'_>
impl StackTraceView<'_>
Sourcepub fn hyperlinker(self, linker: Hyperlinker) -> Self
pub fn hyperlinker(self, linker: Hyperlinker) -> Self
Link frame locations with linker (default: file:// links).
Sourcepub fn show_library(self, show: bool) -> Self
pub fn show_library(self, show: bool) -> Self
Show every library frame instead of collapsing runs of them.
Trait Implementations§
Source§impl Renderable for StackTraceView<'_>
impl Renderable for StackTraceView<'_>
fn rich_render( &self, console: &Console, options: &ConsoleOptions, ) -> Vec<Segment>
Source§fn measure(&self, _console: &Console, options: &ConsoleOptions) -> Measurement
fn measure(&self, _console: &Console, options: &ConsoleOptions) -> Measurement
The
(minimum, maximum) cell width this renderable wants. The default
assumes the renderable fills the available width (e.g. Panel, Table);
Text overrides it with its content width so the top-level print path can
shrink to fit. Port of __rich_measure__ / Measurement.get.Source§fn fit_to_measurement(&self) -> bool
fn fit_to_measurement(&self) -> bool
Whether a top-level
Console::print shrinks this renderable to its
measured width. Upstream renders every top-level renderable at the full
console width, so the default is false; an extension may opt in.Auto Trait Implementations§
impl<'a> Freeze for StackTraceView<'a>
impl<'a> RefUnwindSafe for StackTraceView<'a>
impl<'a> Send for StackTraceView<'a>
impl<'a> Sync for StackTraceView<'a>
impl<'a> Unpin for StackTraceView<'a>
impl<'a> UnsafeUnpin for StackTraceView<'a>
impl<'a> UnwindSafe for StackTraceView<'a>
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