Skip to main content

ConfigurableComponent

Trait ConfigurableComponent 

Source
pub trait ConfigurableComponent {
    // Required methods
    fn component_type() -> &'static str;
    fn apply_defaults(props: &mut Self);
}
Expand description

Trait for components that can use global config

Required Methods§

Source

fn component_type() -> &'static str

Get the component type name

Source

fn apply_defaults(props: &mut Self)

Apply global defaults to props

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§