Trait tuirealm::Injector

source ·
pub trait Injector<ComponentId>
where ComponentId: Eq + PartialEq + Clone + Hash,
{ // Required method fn inject(&self, id: &ComponentId) -> Vec<(Attribute, AttrValue)>; }
Expand description

An injector is a trait object which can provide properties to inject to a certain component. The injector is called each time a component is mounted, providing the id of the mounted component and may return a list of (Attribute, AttrValue) to inject.

Required Methods§

Implementors§