Skip to main content

Named

Trait Named 

Source
pub trait Named {
    // Required method
    fn text(&self) -> &'static str;
}

Required Methods§

Source

fn text(&self) -> &'static str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§