Trait flowcore::model::name::HasName

source ·
pub trait HasName {
    // Required methods
    fn name(&self) -> &Name;
    fn alias(&self) -> &Name;
}
Expand description

Trait implemented by objects that have a Name

Required Methods§

source

fn name(&self) -> &Name

Return a reference to the name of the struct implementing this trait

source

fn alias(&self) -> &Name

Return a reference to the alias (also a Name type) of the struct implementing this trait

Implementors§