pub trait Spanned {
// Required method
fn span(&self) -> Span;
// Provided method
fn join_span(&self, other: &impl OptSpanned) -> Span { ... }
}Expand description
Compute byte span of an ast fragment
Required Methods§
Provided Methods§
Sourcefn join_span(&self, other: &impl OptSpanned) -> Span
fn join_span(&self, other: &impl OptSpanned) -> Span
Compute the minimal span containing both self and other
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".