pub struct FlatMapBuilder<'t, T, C: DrainContainer, F, I>{ /* private fields */ }
Expand description
A stream wrapper that allows the accumulation of flatmap logic.
Implementations§
Source§impl<'t, T, C: DrainContainer + Clone + 'static, F, I> FlatMapBuilder<'t, T, C, F, I>
impl<'t, T, C: DrainContainer + Clone + 'static, F, I> FlatMapBuilder<'t, T, C, F, I>
Sourcepub fn map<G: Fn(I) -> I2 + 'static, I2>(
self,
g: G,
) -> FlatMapBuilder<'t, T, C, impl Fn(C::Item<'_>) -> I2 + 'static, I2>
pub fn map<G: Fn(I) -> I2 + 'static, I2>( self, g: G, ) -> FlatMapBuilder<'t, T, C, impl Fn(C::Item<'_>) -> I2 + 'static, I2>
Transform a flatmapped stream through addiitonal logic.
Sourcepub fn into_stream<S, C2>(self) -> StreamCore<S, C2>where
I: IntoIterator,
S: Scope,
T: Map<S, C>,
C2: Container + SizableContainer + PushInto<I::Item>,
pub fn into_stream<S, C2>(self) -> StreamCore<S, C2>where
I: IntoIterator,
S: Scope,
T: Map<S, C>,
C2: Container + SizableContainer + PushInto<I::Item>,
Convert the wrapper into a stream.
Auto Trait Implementations§
impl<'t, T, C, F, I> Freeze for FlatMapBuilder<'t, T, C, F, I>where
F: Freeze,
impl<'t, T, C, F, I> RefUnwindSafe for FlatMapBuilder<'t, T, C, F, I>
impl<'t, T, C, F, I> Send for FlatMapBuilder<'t, T, C, F, I>
impl<'t, T, C, F, I> Sync for FlatMapBuilder<'t, T, C, F, I>
impl<'t, T, C, F, I> Unpin for FlatMapBuilder<'t, T, C, F, I>
impl<'t, T, C, F, I> UnwindSafe for FlatMapBuilder<'t, T, C, F, I>
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