Skip to main content

HasName

Trait HasName 

Source
pub trait HasName: AstNode {
    // Provided method
    fn name(&self) -> Option<Name> { ... }
}
Expand description

A node that declares a Name.

Provided Methods§

Source

fn name(&self) -> Option<Name>

The declared name — the first Name child.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§