pub trait Spanned<'db> {
// Required method
fn span(&self, db: &'db dyn Db) -> Span<'db>;
}Expand description
Implemented by all things that have a span (and span itself).
For AST nodes, yields the entire encompassing span.
For symbols, yields a span intended for use in error reporting.