pub trait Spanned {
// Required method
fn span(&self) -> Span;
// Provided methods
fn span_lo(&self) -> BytePos { ... }
fn span_hi(&self) -> BytePos { ... }
}
Expand description
§Derive
This trait can be derived with #[derive(Spanned)]
.