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>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.