pub fn insert_resource<T>(&mut self, resource: T)
    where
        T: 'static,
    {
        Arc::get_mut(&mut self.resources)
            .expect("attempted to insert into resources while resources are borrowed")
            .insert(resource);
    }
/// Inserts a new resource.
///
/// An existing resource with type `T` is overriden.
///
/// # Panics
/// Panics if any resources are currently borrowed.
Inserts a new resource.
An existing resource with type `T` is overriden.
Inserts a new resource . An existing resource with type ` T ` is overriden .
pub fn insert_resource<T>(&mut self, resource: T)
    where
        T: 'static,
    {
        Arc::get_mut(&mut self.resources)
            .expect("attempted to insert into resources while resources are borrowed")
            .insert(resource);
    }
pub fn insert_resource < T > ( & mut self , resource : T ) where T : ' static , { Arc :: get_mut ( & mut self . resources ) . expect ( " " ) . insert ( resource ) ; }
Inserts a new resource.
Inserts a new resource .
&mut self
resource
T
&mut self
resource
T
panics
Panics if any resources are currently borrowed.
Panics if any resources are currently borrowed .