pub trait HasSource {
// Required method
fn source(&self) -> SourceIdentifier;
}Expand description
Trait for items that have a source.
Required Methods§
fn source(&self) -> SourceIdentifier
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".