Trait Spannable

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

Trait for types that can be annotated with a Span.

Required Methods§

Source

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

Annotate this value with a span, wrapping it in Spanned<Self, C>

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, C> Spannable<C> for T