pub struct TransducerPipeline { /* private fields */ }Expand description
An ordered chain of TransducerSteps applied per element in one pass.
The composable core of the sequence organ’s map/filter/reduce surface:
steps are fused so a source is traversed once, returning None for dropped
elements.
Implementations§
Source§impl TransducerPipeline
impl TransducerPipeline
Sourcepub fn map(
self,
mapper: Arc<dyn Fn(&mut Cx, Value) -> Result<Value> + Send + Sync + 'static>,
) -> Self
pub fn map( self, mapper: Arc<dyn Fn(&mut Cx, Value) -> Result<Value> + Send + Sync + 'static>, ) -> Self
Append a mapping step, consuming and returning the pipeline.
Trait Implementations§
Source§impl Clone for TransducerPipeline
impl Clone for TransducerPipeline
Source§fn clone(&self) -> TransducerPipeline
fn clone(&self) -> TransducerPipeline
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for TransducerPipeline
impl Default for TransducerPipeline
Source§fn default() -> TransducerPipeline
fn default() -> TransducerPipeline
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TransducerPipeline
impl !UnwindSafe for TransducerPipeline
impl Freeze for TransducerPipeline
impl Send for TransducerPipeline
impl Sync for TransducerPipeline
impl Unpin for TransducerPipeline
impl UnsafeUnpin for TransducerPipeline
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