pub trait HasName<'a> {
// Required method
fn name(&self, db: &'a dyn Database) -> TerminalIdentifier<'a>;
}Expand description
Provides methods to extract a name of AST objects.
Required Methods§
Sourcefn name(&self, db: &'a dyn Database) -> TerminalIdentifier<'a>
fn name(&self, db: &'a dyn Database) -> TerminalIdentifier<'a>
Gets a TerminalIdentifier that represents a name of this AST object.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".