pub trait Named { // Required method fn name(&self) -> Cow<'_, str>; }
Trait for getting the name of an item.
Returns the name associated with self. We use Cow to allow both owned and borrowed strings.
self
Cow