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§
Sourcefn component_type() -> &'static str
fn component_type() -> &'static str
Get the component type name
Sourcefn apply_defaults(props: &mut Self)
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.