pub trait Span {
// Required method
fn span(&self) -> TextRange;
}Expand description
A trait for types that have a defined textual span within the source code.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".