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 States into one.

Required methods

Merges two states into one and calls provided function with the combined state.

Implementors