time_macros::error

Trait WithSpan

Source
trait WithSpan {
    // Required method
    fn with_span(self, span: Span) -> Self;
}

Required Methods§

Source

fn with_span(self, span: Span) -> 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.

Implementations on Foreign Types§

Source§

impl WithSpan for TokenTree

Source§

fn with_span(self, span: Span) -> Self

Implementors§