Skip to main content

HasStaticName

Trait HasStaticName 

Source
pub trait HasStaticName {
    // Required method
    fn static_name(&self) -> &'static str;
}
Expand description

A trait for types that have a static name.

Required Methods§

Source

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".

Implementors§