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