pub struct Contramap<M, F, U> {
pub module: M,
pub f: F,
pub _phantom: PhantomData<U>,
}Expand description
Transform input with a pure function
Fields§
§module: M§f: F§_phantom: PhantomData<U>Trait Implementations§
Auto Trait Implementations§
impl<M, F, U> Freeze for Contramap<M, F, U>
impl<M, F, U> RefUnwindSafe for Contramap<M, F, U>
impl<M, F, U> Send for Contramap<M, F, U>
impl<M, F, U> Sync for Contramap<M, F, U>
impl<M, F, U> Unpin for Contramap<M, F, U>
impl<M, F, U> UnsafeUnpin for Contramap<M, F, U>where
M: UnsafeUnpin,
F: UnsafeUnpin,
impl<M, F, U> UnwindSafe for Contramap<M, F, U>
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 (
&&&)