pub trait Located {
// Required methods
fn location(&self) -> Location;
fn as_spanned(&self) -> &dyn Spanned;
}
Expand description
Trait for things that have a Location.
Required Methods§
Sourcefn as_spanned(&self) -> &dyn Spanned
fn as_spanned(&self) -> &dyn Spanned
Get located item as spanned.