pub struct Mapper<In, Out, Func>where
Func: Fn(In) -> Out,{ /* private fields */ }
Expand description
A pipeline entry representing a function to be run on each value and its result to be sent down the pipeline
Implementations§
Trait Implementations§
Source§impl<In, Out, Func> PipelineEntry<In, Out> for Mapper<In, Out, Func>where
Func: Fn(In) -> Out,
impl<In, Out, Func> PipelineEntry<In, Out> for Mapper<In, Out, Func>where
Func: Fn(In) -> Out,
fn process<I: IntoIterator<Item = In>>(self, tx: Sender<Out>, rx: I)
impl<In, Out, Func> Copy for Mapper<In, Out, Func>
Auto Trait Implementations§
impl<In, Out, Func> Freeze for Mapper<In, Out, Func>where
Func: Freeze,
impl<In, Out, Func> RefUnwindSafe for Mapper<In, Out, Func>
impl<In, Out, Func> Send for Mapper<In, Out, Func>
impl<In, Out, Func> Sync for Mapper<In, Out, Func>
impl<In, Out, Func> Unpin for Mapper<In, Out, Func>
impl<In, Out, Func> UnwindSafe for Mapper<In, Out, Func>
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