Trait dyn_context::ContextExt[][src]

pub trait ContextExt: Context {
    fn get<T: 'static>(&self) -> &T { ... }
fn get_mut<T: 'static>(&mut self) -> &mut T { ... } }
Expand description

Extends Context with methods that make it easier to access the content of the context.

Provided methods

Borrows shareable data reference.

Panics if the context does not provide requested type.

Borrows mutable data reference.

Panics if the context does not provide requested type.

Implementors