asimov_core

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§