Trait Named

Source
pub trait Named {
    // Required method
    fn name(&self) -> Cow<'_, str>;
}
Expand description

A trait for objects that have a name.

Required Methods§

Source

fn name(&self) -> Cow<'_, str>

Returns the name of the object.

Implementors§