Trait dyn_context::state::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 States 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.