/// Like `fetch_mut`, but returns an `Option` instead of inserting a default value
/// in case the resource does not exist.
Like `fetch_mut`, but returns an `Option` instead of inserting a default value
in case the resource does not exist.
Like ` fetch_mut ` but returns an ` Option ` instead of inserting a default value in case the resource does not exist .
pub fn try_fetch_mut<T>(&self) -> Option<FetchMut<T>>
    where
        T: Resource,
    {
        let res_id = ResourceId::new::<T>();
        self.resources.get(&res_id).map(|r| FetchMut {
            inner: r.borrow_mut(),
            phantom: PhantomData,
        })
    }
pub fn try_fetch_mut < T > ( & self ) -> Option < FetchMut < T > > where T : Resource , { let res_id = ResourceId :: new :: < T > ( ) ; self . resources . get ( & res_id ) . map ( | r | FetchMut { inner : r . borrow_mut ( ) , phantom : PhantomData , } ) }
Like `fetch_mut`, but returns an `Option` instead of inserting a default value
in case the resource does not exist.
Like ` fetch_mut ` but returns an ` Option ` instead of inserting a default value in case the resource does not exist .
&self