Trait dyn_context::StateRefMut [−][src]
pub trait StateRefMut {
fn merge_mut_and_then<T>(
self,
f: impl FnOnce(&mut dyn State) -> T,
other: &mut dyn State
) -> T;
}Expand description
Provides method allowing combine two States into one.
Required methods
fn merge_mut_and_then<T>(
self,
f: impl FnOnce(&mut dyn State) -> T,
other: &mut dyn State
) -> T
fn merge_mut_and_then<T>(
self,
f: impl FnOnce(&mut dyn State) -> T,
other: &mut dyn State
) -> TMerges two states into one and calls provided function with the combined state.