pub enum TransducerStep {
Map(Arc<dyn Fn(&mut Cx, Value) -> Result<Value> + Send + Sync + 'static>),
Filter(Arc<dyn Fn(&mut Cx, &Value) -> Result<bool> + Send + Sync + 'static>),
}Expand description
A single stage of a TransducerPipeline.
Variants§
Map(Arc<dyn Fn(&mut Cx, Value) -> Result<Value> + Send + Sync + 'static>)
Transform each element with the given mapper.
Filter(Arc<dyn Fn(&mut Cx, &Value) -> Result<bool> + Send + Sync + 'static>)
Keep only elements satisfying the given predicate.
Trait Implementations§
Source§impl Clone for TransducerStep
impl Clone for TransducerStep
Source§fn clone(&self) -> TransducerStep
fn clone(&self) -> TransducerStep
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for TransducerStep
impl !UnwindSafe for TransducerStep
impl Freeze for TransducerStep
impl Send for TransducerStep
impl Sync for TransducerStep
impl Unpin for TransducerStep
impl UnsafeUnpin for TransducerStep
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