nu_source

Trait SpannedItem

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

Provided Methods§

Source

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

Converts a value into a Spanned value

Source

fn spanned_unknown(self) -> Spanned<Self>

Converts a value into a Spanned value, using an unknown Span

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> SpannedItem for T