WithSpan

Trait WithSpan 

Source
pub trait WithSpan: Sized {
    // Provided methods
    fn with_span(self, span: impl Into<Span>) -> Spanned<Self> { ... }
    fn test_span(self) -> Spanned<Self> { ... }
}

Provided Methods§

Source

fn with_span(self, span: impl Into<Span>) -> Spanned<Self>

Source

fn test_span(self) -> Spanned<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> WithSpan for T