InsertThemedComponentExt

Trait InsertThemedComponentExt 

Source
pub trait InsertThemedComponentExt {
    // Required method
    fn insert_themed_component<C>(&mut self, component: C) -> &mut Self
       where C: DefaultTheme + Component;
}

Required Methods§

Source

fn insert_themed_component<C>(&mut self, component: C) -> &mut Self

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.

Implementors§