time::format_description::parse

Trait SpannedValue

Source
trait SpannedValue: Sized {
    // Required method
    fn spanned(self, span: Span) -> Spanned<Self> ;
}
Available on (crate features formatting or parsing) and crate feature alloc only.
Expand description

Helper trait to attach a Span to a value.

Required Methods§

Source

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

Attach a Span to a value.

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