pub struct FilterMap<Next, Func> { /* private fields */ }Expand description
Push combinator that both filters and maps items.
Trait Implementations§
Source§impl<Next, Func, In, Out, Meta> Push<In, Meta> for FilterMap<Next, Func>
impl<Next, Func, In, Out, Meta> Push<In, Meta> for FilterMap<Next, Func>
Source§type Ctx<'ctx> = <Next as Push<Out, Meta>>::Ctx<'ctx>
type Ctx<'ctx> = <Next as Push<Out, Meta>>::Ctx<'ctx>
The context type required to push into this pipeline.
Source§type CanPend = <Next as Push<Out, Meta>>::CanPend
type CanPend = <Next as Push<Out, Meta>>::CanPend
Whether this push can return
PushStep::Pending.Source§fn poll_ready(
self: Pin<&mut Self>,
ctx: &mut Self::Ctx<'_>,
) -> PushStep<Self::CanPend>
fn poll_ready( self: Pin<&mut Self>, ctx: &mut Self::Ctx<'_>, ) -> PushStep<Self::CanPend>
Check if this push is ready to accept an item.
Source§fn start_send(self: Pin<&mut Self>, item: In, meta: Meta)
fn start_send(self: Pin<&mut Self>, item: In, meta: Meta)
Send an item into this push pipeline. Read more
impl<'__pin, Next, Func> Unpin for FilterMap<Next, Func>where
PinnedFieldsOf<__Origin<'__pin, Next, Func>>: Unpin,
Auto Trait Implementations§
impl<Next, Func> Freeze for FilterMap<Next, Func>
impl<Next, Func> RefUnwindSafe for FilterMap<Next, Func>where
Next: RefUnwindSafe,
Func: RefUnwindSafe,
impl<Next, Func> Send for FilterMap<Next, Func>
impl<Next, Func> Sync for FilterMap<Next, Func>
impl<Next, Func> UnsafeUnpin for FilterMap<Next, Func>where
Next: UnsafeUnpin,
Func: UnsafeUnpin,
impl<Next, Func> UnwindSafe for FilterMap<Next, Func>where
Next: UnwindSafe,
Func: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more