pub struct Flatten<Next, IntoIter, Meta>where
IntoIter: IntoIterator,{ /* private fields */ }Expand description
Push combinator that flattens iterable items by pushing each element downstream.
Trait Implementations§
Source§impl<Next, IntoIter, Meta> Push<IntoIter, Meta> for Flatten<Next, IntoIter, Meta>
impl<Next, IntoIter, Meta> Push<IntoIter, Meta> for Flatten<Next, IntoIter, Meta>
Source§type Ctx<'ctx> = <Next as Push<<IntoIter as IntoIterator>::Item, Meta>>::Ctx<'ctx>
type Ctx<'ctx> = <Next as Push<<IntoIter as IntoIterator>::Item, Meta>>::Ctx<'ctx>
The context type required to push into this pipeline.
Source§type CanPend = <Next as Push<<IntoIter as IntoIterator>::Item, Meta>>::CanPend
type CanPend = <Next as Push<<IntoIter as IntoIterator>::Item, 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: IntoIter, meta: Meta)
fn start_send(self: Pin<&mut Self>, item: IntoIter, meta: Meta)
Send an item into this push pipeline. Read more
impl<'__pin, Next, IntoIter, Meta> Unpin for Flatten<Next, IntoIter, Meta>where
PinnedFieldsOf<__Origin<'__pin, Next, IntoIter, Meta>>: Unpin,
IntoIter: IntoIterator,
Auto Trait Implementations§
impl<Next, IntoIter, Meta> Freeze for Flatten<Next, IntoIter, Meta>where
Next: Freeze,
<IntoIter as IntoIterator>::IntoIter: Freeze,
<IntoIter as IntoIterator>::Item: Freeze,
Meta: Freeze,
impl<Next, IntoIter, Meta> RefUnwindSafe for Flatten<Next, IntoIter, Meta>where
Next: RefUnwindSafe,
<IntoIter as IntoIterator>::IntoIter: RefUnwindSafe,
<IntoIter as IntoIterator>::Item: RefUnwindSafe,
Meta: RefUnwindSafe,
impl<Next, IntoIter, Meta> Send for Flatten<Next, IntoIter, Meta>where
Next: Send,
<IntoIter as IntoIterator>::IntoIter: Send,
<IntoIter as IntoIterator>::Item: Send,
Meta: Send,
impl<Next, IntoIter, Meta> Sync for Flatten<Next, IntoIter, Meta>where
Next: Sync,
<IntoIter as IntoIterator>::IntoIter: Sync,
<IntoIter as IntoIterator>::Item: Sync,
Meta: Sync,
impl<Next, IntoIter, Meta> UnsafeUnpin for Flatten<Next, IntoIter, Meta>where
Next: UnsafeUnpin,
<IntoIter as IntoIterator>::IntoIter: UnsafeUnpin,
<IntoIter as IntoIterator>::Item: UnsafeUnpin,
Meta: UnsafeUnpin,
impl<Next, IntoIter, Meta> UnwindSafe for Flatten<Next, IntoIter, Meta>where
Next: UnwindSafe,
<IntoIter as IntoIterator>::IntoIter: UnwindSafe,
<IntoIter as IntoIterator>::Item: UnwindSafe,
Meta: 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> 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