Skip to main content

HasDescription

Trait HasDescription 

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

A trait for types that have a description.

Required Methods§

Source

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

Implementors§