pub trait SourceLocation {
// Required method
fn location(&self) -> Option<SourceSpan>;
}Expand description
Provides the source location for the syntax item
Required Methods§
Sourcefn location(&self) -> Option<SourceSpan>
fn location(&self) -> Option<SourceSpan>
The location of the syntax item, when known
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".