trait SpannedValue: Sized {
// Required method
fn spanned(self, span: Span) -> Spanned<Self> ⓘ;
}Available on crate feature
alloc and (crate features formatting or parsing) only.Expand description
Helper trait to attach a Span to a value.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".