NamedComponent

Trait NamedComponent 

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

A component with a well-known name.

Users can derive this trait automatically by using the NamedComponent derive macro on their structs/enums.

Required Methods§

Source

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

Gets the name of the component.

Implementors§