pub trait Named {
// Required method
fn name(&self) -> Cow<'_, str>;
}Expand description
Trait for getting the name of an item.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".