Skip to main content

HasFallibleSpan

Trait HasFallibleSpan 

Source
pub trait HasFallibleSpan {
    // Required method
    fn maybe_span(&self) -> Option<Span>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HasFallibleSpan for ()

Source§

impl HasFallibleSpan for Option<Span>

Source§

impl HasFallibleSpan for bool

Source§

impl<T> HasFallibleSpan for Option<Spanned<T>>

Source§

impl<T> HasFallibleSpan for Option<Tagged<T>>

Implementors§

Source§

impl<T> HasFallibleSpan for T
where T: HasSpan,