Trait Spannable

Source
pub trait Spannable: Sized {
    // Required method
    fn with_span(self, span: Span) -> Spanned<Self>;
}
Expand description

Trait for types that can be annotated with a Span.

Required Methods§

Source

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

Annotate this value with a span, wrapping it in 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> Spannable for T