Trait dyn_context::StateExt[][src]

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

Extends State with methods that make it easier to access the content of the state.

Provided methods

Borrows shareable data reference.

Panics if the state does not provide requested type.

Borrows mutable data reference.

Panics if the state does not provide requested type.

Implementors