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