Trait FilterExt

Source
pub trait FilterExt<'a>: Filter<'a> {
    // Provided methods
    fn to_if<Cusion, F, TransF>(
        self,
        f: F,
        transformer: TransF,
    ) -> impl Filter<'a, Context = Cusion>
       where Self: Sized,
             Cusion: Sync + Send + 'a,
             F: Fn(&Cusion) -> bool + Send + 'a,
             TransF: Fn(&Cusion) -> <Self as Filter<'a>>::Context + Send + 'a,
             <Self as Filter<'a>>::Context: Sync { ... }
    fn reverse(self) -> impl Filter<'a, Context = <Self as Filter<'a>>::Context>
       where Self: Sized,
             <Self as Filter<'a>>::Context: Sync { ... }
    fn comb<Cusion, T, Ctx, F1, F2, F3>(
        self,
        transformer1: F1,
        filter2: T,
        transformer2: F2,
        predicater: F3,
    ) -> impl Filter<'a, Context = Cusion>
       where Self: Sized,
             T: Filter<'a, Context = Ctx>,
             F1: Fn(&Cusion) -> <Self as Filter<'a>>::Context + Send + 'a,
             F2: Fn(&Cusion) -> Ctx + Send + 'a,
             F3: Fn(bool, bool) -> bool + Send + 'a,
             Cusion: Sync + 'a,
             Ctx: 'a { ... }
}

Provided Methods§

Source

fn to_if<Cusion, F, TransF>( self, f: F, transformer: TransF, ) -> impl Filter<'a, Context = Cusion>
where Self: Sized, Cusion: Sync + Send + 'a, F: Fn(&Cusion) -> bool + Send + 'a, TransF: Fn(&Cusion) -> <Self as Filter<'a>>::Context + Send + 'a, <Self as Filter<'a>>::Context: Sync,

Source

fn reverse(self) -> impl Filter<'a, Context = <Self as Filter<'a>>::Context>
where Self: Sized, <Self as Filter<'a>>::Context: Sync,

Source

fn comb<Cusion, T, Ctx, F1, F2, F3>( self, transformer1: F1, filter2: T, transformer2: F2, predicater: F3, ) -> impl Filter<'a, Context = Cusion>
where Self: Sized, T: Filter<'a, Context = Ctx>, F1: Fn(&Cusion) -> <Self as Filter<'a>>::Context + Send + 'a, F2: Fn(&Cusion) -> Ctx + Send + 'a, F3: Fn(bool, bool) -> bool + Send + 'a, Cusion: Sync + 'a, Ctx: 'a,

Implementors§

Source§

impl<'a, T> FilterExt<'a> for T
where T: Filter<'a>,