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 features
__ecma
and __utils
only.Expand description
§Derive
This trait can be derived with #[derive(Spanned)]
.