Trait dyn_context::StateExt
source · [−]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.