pub trait Typename {
// Required method
fn typename(&self) -> &'static str;
}Expand description
Trait for types that can provide their type name as a static string
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".