pub trait HasDescription {
// Required method
fn description(&self) -> &'static str;
}Expand description
A trait for types that have a description.
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Returns the description of the type.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".