pub struct FormatCallStack<'a> { /* private fields */ }Expand description
Helper struct for formatting a call stack with custom options.
This struct implements Display and can be used to write a formatted
call stack to any type that implements io::Write.
Implementations§
Source§impl<'a> FormatCallStack<'a>
impl<'a> FormatCallStack<'a>
Sourcepub const fn new(stack: &'a CallStack, options: &'a FormatOptions) -> Self
pub const fn new(stack: &'a CallStack, options: &'a FormatOptions) -> Self
Creates a new formatter for the given call stack with the specified options.
§Arguments
stack- The call stack to format.options- The formatting options to use.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FormatCallStack<'a>
impl<'a> RefUnwindSafe for FormatCallStack<'a>
impl<'a> Send for FormatCallStack<'a>
impl<'a> Sync for FormatCallStack<'a>
impl<'a> Unpin for FormatCallStack<'a>
impl<'a> UnsafeUnpin for FormatCallStack<'a>
impl<'a> UnwindSafe for FormatCallStack<'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
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