pub fn extend(&mut self, container: Container) -> &mut Self {
        self.registered_types
            .extend(container.registered_types.into_iter());
        self
    }
/// Register all the element from another container into this container.
/// # Examples
/// ```
/// use wonderbox::Container;
///
/// let mut first_container = Container::new();
/// first_container.register(|_| "foo".to_string());
///
/// let mut second_container = Container::new();
/// second_container.register(|container| {
///     let dependency = container.try_resolve::<String>().unwrap();
///     let foo = FooImpl {
///         stored_string: dependency,
///     };
///     Box::new(foo) as Box<dyn Foo>
/// });
///
/// first_container.extend(second_container);
///
/// trait Foo {}
/// struct FooImpl {
///     stored_string: String,
/// }
/// impl Foo for FooImpl {}
/// ```
Register all the element from another container into this container.
Register all the element from another container into this container .
pub fn extend(&mut self, container: Container) -> &mut Self {
        self.registered_types
            .extend(container.registered_types.into_iter());
        self
    }
pub fn extend ( & mut self , container : Container ) -> & mut Self { self . registered_types . extend ( container . registered_types . into_iter ( ) ) ; self }
Register all the element from another container into this container.
Register all the element from another container into this container .
&mut self
container
Container
&mut self
container
Container
examples
```
use wonderbox::Container.

let mut first_container = Container::new();
first_container.register(|_| "foo".to_string()).

let mut second_container = Container::new();
second_container.register(|container| {
let dependency = container.try_resolve::().unwrap();
let foo = FooImpl {
stored_string: dependency,
};
Box::new(foo) as Box
}).

first_container.extend(second_container).

trait Foo {}
struct FooImpl {
stored_string: String,
}
impl Foo for FooImpl {}
```
` ` ` use wonderbox :: Container . let mut first_container = Container :: new () ; first_container . register ( |_| " foo " . to_string () ) . let mut second_container = Container :: new () ; second_container . register ( |container| { let dependency = container . try_resolve :: () . unwrap () ; let foo = FooImpl { stored_string : dependency } ; Box :: new ( foo ) as Box } ) . first_container . extend ( second_container ) . trait Foo {} struct FooImpl { stored_string : String } impl Foo for FooImpl {} ` ` `