pub struct DefaultContext { /* private fields */ }
Expand description
A Context
implementation based on typemap::TypeMap
.
Trait Implementations§
Source§impl Context for DefaultContext
impl Context for DefaultContext
Source§fn start_scope<T: 'static>(&mut self) -> Scope
fn start_scope<T: 'static>(&mut self) -> Scope
Pushes the type to the scope stack. Read more
Source§fn get<T>(&self, scope: TypeId) -> Option<&T>where
T: 'static,
fn get<T>(&self, scope: TypeId) -> Option<&T>where
T: 'static,
Gets a shared reference to the storage of type
T
in the newest layer of the scope.Auto Trait Implementations§
impl Freeze for DefaultContext
impl !RefUnwindSafe for DefaultContext
impl !Send for DefaultContext
impl !Sync for DefaultContext
impl Unpin for DefaultContext
impl !UnwindSafe for DefaultContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more