pub trait ActionExt: Action{
// Provided method
fn to_if<Cushion, F, TransF>(
self,
f: F,
transformer: TransF,
) -> impl Action<Context = Cushion>
where Self: Sized,
Cushion: Sync + Send,
F: Fn(&Cushion) -> bool + Send,
TransF: Fn(&Cushion) -> <Self as Action>::Context + Send { ... }
}Provided Methods§
fn to_if<Cushion, F, TransF>( self, f: F, transformer: TransF, ) -> impl Action<Context = Cushion>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".