[][src]Trait rustracing::convert::MaybeAsRef

pub trait MaybeAsRef<T: ?Sized> {
    pub fn maybe_as_ref(&self) -> Option<&T>;
}

A cheap reference-to-reference conversion that has a possibility to fail.

Required methods

pub fn maybe_as_ref(&self) -> Option<&T>[src]

Performs the conversion.

Loading content...

Implementations on Foreign Types

impl<T, U> MaybeAsRef<T> for Option<U> where
    U: MaybeAsRef<T>, 
[src]

Loading content...

Implementors

impl<T> MaybeAsRef<SpanContext<T>> for Span<T>[src]

impl<T> MaybeAsRef<SpanContext<T>> for SpanContext<T>[src]

Loading content...