pub struct SpanHandler;Expand description
Handler for formatting Span attachments.
Trait Implementations§
Source§impl AttachmentHandler<Span> for SpanHandler
impl AttachmentHandler<Span> for SpanHandler
Source§fn display(value: &Span, formatter: &mut Formatter<'_>) -> Result
fn display(value: &Span, formatter: &mut Formatter<'_>) -> Result
Formats the attachment using display-style formatting. Read more
Source§fn debug(value: &Span, formatter: &mut Formatter<'_>) -> Result
fn debug(value: &Span, formatter: &mut Formatter<'_>) -> Result
Formats the attachment using debug-style formatting. Read more
Source§fn preferred_formatting_style(
span: &Span,
_report_formatting_function: FormattingFunction,
) -> AttachmentFormattingStyle
fn preferred_formatting_style( span: &Span, _report_formatting_function: FormattingFunction, ) -> AttachmentFormattingStyle
Specifies the preferred formatting style and placement for this
attachment. Read more
Source§impl Clone for SpanHandler
impl Clone for SpanHandler
Source§fn clone(&self) -> SpanHandler
fn clone(&self) -> SpanHandler
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 moreimpl Copy for SpanHandler
Auto Trait Implementations§
impl Freeze for SpanHandler
impl RefUnwindSafe for SpanHandler
impl Send for SpanHandler
impl Sync for SpanHandler
impl Unpin for SpanHandler
impl UnwindSafe for SpanHandler
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