FilterExt

Trait FilterExt 

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

Provided Methods§

Source

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

Source

fn reverse(self) -> impl Filter<Context = <Self as Filter>::Context>

Source

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

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.

Implementors§

Source§

impl<T> FilterExt for T
where T: Filter, <T as Filter>::Context: Sync + Send,