ActionExt

Trait ActionExt 

Source
pub trait ActionExt: Action
where <Self as Action>::Context: Sync + Send,
{ // 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§

Source

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,

Implementors§

Source§

impl<T> ActionExt for T
where T: Action, <T as Action>::Context: Sync + Send,