pub trait Spanned {
// Required method
fn span(&self) -> Span;
}Expand description
Spanned trait requires a type to have a span.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".