pub struct MapTransform<F>{ /* private fields */ }Expand description
Map transformation.
Implementations§
Source§impl<F> MapTransform<F>
impl<F> MapTransform<F>
Sourcepub fn apply(&self, element: StreamElement) -> StreamElement
pub fn apply(&self, element: StreamElement) -> StreamElement
Apply the transformation to an element.
Sourcepub fn apply_message(&self, message: StreamMessage) -> StreamMessage
pub fn apply_message(&self, message: StreamMessage) -> StreamMessage
Apply the transformation to a message.
Auto Trait Implementations§
impl<F> Freeze for MapTransform<F>
impl<F> RefUnwindSafe for MapTransform<F>where
F: RefUnwindSafe,
impl<F> Send for MapTransform<F>
impl<F> Sync for MapTransform<F>
impl<F> Unpin for MapTransform<F>
impl<F> UnsafeUnpin for MapTransform<F>
impl<F> UnwindSafe for MapTransform<F>where
F: RefUnwindSafe,
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