pub trait Injector<ComponentId>{
// 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.