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