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§
Sourcefn name(&self) -> &Identifier
fn name(&self) -> &Identifier
Get the name of the enclosing type.
Sourcefn set_name(&mut self, name: Identifier)
fn set_name(&mut self, name: Identifier)
Set the name of the enclosing type.