Struct he_di::ContainerBuilder
[−]
[src]
pub struct ContainerBuilder { /* fields omitted */ }
Methods
impl ContainerBuilder
[src]
fn new() -> ContainerBuilder
Create a new ContainerBuilder
fn register_type<C: Built + ?Sized + 'static>(&mut self) -> &mut RegisteredType
Register a new component with this builder If that component was already registered, the old component is replaced
fn build(self) -> Container
Create the (singleton) Container