Skip to main content

BlockName

Trait BlockName 

Source
pub trait BlockName {
    // Required method
    fn name(&self) -> Cow<'_, str>;
}
Expand description

A trait for objects that have a name.

Required Methods§

Source

fn name(&self) -> Cow<'_, str>

Returns the name of the object.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§