pub trait Has<T, Index = ()> {
// Required methods
fn get(&self) -> &T;
fn get_mut(&mut self) -> &mut T;
}Expand description
Trait to extract a dependency T using a specific Index.
The Index type (Here or There) guides the compiler to the correct field.