pub struct Map<M, F> {
pub module: M,
pub f: F,
}Expand description
Transform output with a pure function
Fields§
§module: M§f: FTrait Implementations§
Auto Trait Implementations§
impl<M, F> Freeze for Map<M, F>
impl<M, F> RefUnwindSafe for Map<M, F>where
M: RefUnwindSafe,
F: RefUnwindSafe,
impl<M, F> Send for Map<M, F>
impl<M, F> Sync for Map<M, F>
impl<M, F> Unpin for Map<M, F>
impl<M, F> UnsafeUnpin for Map<M, F>where
M: UnsafeUnpin,
F: UnsafeUnpin,
impl<M, F> UnwindSafe for Map<M, F>where
M: UnwindSafe,
F: 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<M> ModuleExt for Mwhere
M: Module,
impl<M> ModuleExt for Mwhere
M: Module,
Source§fn then<M: Module<In = Self::Out>>(self, next: M) -> Chain<Self, M>
fn then<M: Module<In = Self::Out>>(self, next: M) -> Chain<Self, M>
Chain this module with another (sequential composition:
>>>)Source§fn fanout<M: Module<In = Self::In>>(self, other: M) -> Fanout<Self, M>
fn fanout<M: Module<In = Self::In>>(self, other: M) -> Fanout<Self, M>
Split input to two parallel processors (
&&&)