pub trait MapStateTransitions {
type State: MaybeSend + MaybeSync + 'static;
// Required method
fn map<D, W, U>(self, wrap: W, unwrap: U) -> Vec<StateTransition<D>>
where D: MaybeSend + MaybeSync + 'static,
W: Fn(Self::State) -> D + Clone + MaybeSend + MaybeSync + 'static,
U: Fn(D) -> Self::State + Clone + MaybeSend + MaybeSync + 'static;
}
Required Associated Types§
Required Methods§
fn map<D, W, U>(self, wrap: W, unwrap: U) -> Vec<StateTransition<D>>
Object Safety§
This trait is not object safe.