Trait HasName

Source
pub trait HasName {
    // Required methods
    fn name(&self) -> &Identifier;
    fn set_name(&mut self, name: Identifier);
}
Expand description

This trait is implemented by types that have a unique name.

Required Methods§

Source

fn name(&self) -> &Identifier

Get the name of the enclosing type.

Source

fn set_name(&mut self, name: Identifier)

Set the name of the enclosing type.

Implementors§