pub trait HasName { // Required method fn name(&self) -> &str; }
Common trait for objects that have a name.
Returns the object’s name.