pub trait HasSource {
type Value: AstNode;
// Required method
fn ast_ptr(&self, db: &dyn SourceDatabase) -> InFile<AstPtr<Self::Value>>;
// Provided method
fn source(&self, db: &dyn SourceDatabase) -> InFile<Self::Value> { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".