pub trait Located {
// Required method
fn range(&self) -> SourceRange;
// Provided methods
fn location(&self) -> SourceLocation { ... }
fn end_location(&self) -> Option<SourceLocation> { ... }
}Required Methods§
fn range(&self) -> SourceRange
Provided Methods§
fn location(&self) -> SourceLocation
fn end_location(&self) -> Option<SourceLocation>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".