pub trait ComponentPluginExt: Component {
// Provided methods
fn plugins(&self) -> Plugins { ... }
fn plugin<T: 'static>(&self) -> Plugin<T> { ... }
}Expand description
Convenience methods available on every pocopine component.
The blanket implementation keeps these methods out of macro-generated
inherent impls, so a component can still define its own method with the same
name if it needs to. In normal app code, importing the prelude lets handler
methods call self.plugin::<T>() or self.plugins().get::<T>().
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".