pub trait TrySpan {
    // Provided method
    fn try_span(&self) -> Option<Span> { ... }
}
Expand description

Objects that can be converted to spans.

Provided Methods§

source

fn try_span(&self) -> Option<Span>

Try to get a span from the object (by default we don’t get any, but a wrapper might provide one)

Implementations on Foreign Types§

source§

impl TrySpan for Span

Always Some.

source§

impl<T: TrySpan> TrySpan for Option<T>

Trivial projection.

source§

impl<T: TrySpan> TrySpan for &T

Trivial projection.

Implementors§