pub trait HasName { // Required methods fn name(&self) -> &Name; fn alias(&self) -> &Name; }
Trait implemented by objects that have a Name
Return a reference to the name of the struct implementing this trait
Return a reference to the alias (also a Name type) of the struct implementing this trait