Struct pusherator::switch::SwitchBuild
source · pub struct SwitchBuild<Prev, Next1>where
Prev: PusheratorBuild,
Next1: Pusherator,{ /* private fields */ }
Implementations§
source§impl<Prev, Next1, Item2> SwitchBuild<Prev, Next1>
impl<Prev, Next1, Item2> SwitchBuild<Prev, Next1>
Trait Implementations§
source§impl<Prev, Next1, Item2> PusheratorBuild for SwitchBuild<Prev, Next1>
impl<Prev, Next1, Item2> PusheratorBuild for SwitchBuild<Prev, Next1>
type ItemOut = Item2
type Output<Next: Pusherator<Item = Self::ItemOut>> = <Prev as PusheratorBuild>::Output<Switch<Next1, Next>>
fn push_to<Next>(self, input: Next) -> Self::Output<Next>where
Next: Pusherator<Item = Self::ItemOut>,
fn map<Func, Out>(self, func: Func) -> MapBuild<Self, Func>
fn inspect<Func>(self, func: Func) -> InspectBuild<Self, Func>
fn filter<Func>(self, func: Func) -> FilterBuild<Self, Func>
fn unzip<Next1, Item2>(self, next1: Next1) -> UnzipBuild<Self, Next1>
fn switch<Next1, Item2>(self, next1: Next1) -> SwitchBuild<Self, Next1>
fn for_each<Func>( self, func: Func, ) -> Self::Output<ForEach<Func, Self::ItemOut>>
fn demux<Func, Nexts>( self, func: Func, nexts: Nexts, ) -> Self::Output<Demux<Func, Nexts, Self::ItemOut>>
Auto Trait Implementations§
impl<Prev, Next1> Freeze for SwitchBuild<Prev, Next1>
impl<Prev, Next1> RefUnwindSafe for SwitchBuild<Prev, Next1>where
Prev: RefUnwindSafe,
Next1: RefUnwindSafe,
impl<Prev, Next1> Send for SwitchBuild<Prev, Next1>
impl<Prev, Next1> Sync for SwitchBuild<Prev, Next1>
impl<Prev, Next1> Unpin for SwitchBuild<Prev, Next1>
impl<Prev, Next1> UnwindSafe for SwitchBuild<Prev, Next1>where
Prev: UnwindSafe,
Next1: 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