pub trait Spanned {
// Required method
fn span(&self) -> Span;
// Provided methods
fn start(&self) -> Point { ... }
fn end(&self) -> Point { ... }
}Expand description
Implemented by every generated type that has a source location.