pub trait InsertThemedComponentExt {
// Required method
fn insert_themed_component<C>(&mut self, component: C) -> &mut Self
where C: DefaultTheme + Component;
}Required Methods§
Sourcefn insert_themed_component<C>(&mut self, component: C) -> &mut Selfwhere
C: DefaultTheme + Component,
fn insert_themed_component<C>(&mut self, component: C) -> &mut Selfwhere
C: DefaultTheme + Component,
Inserts C as a component to the entity and checks if
ComponentThemePlugin<C> was added to the app.
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.