Trait vector_lib::transform::FunctionTransform
pub trait FunctionTransform: Send + DynClone + Sync {
// Required method
fn transform(&mut self, output: &mut OutputBuffer, event: Event);
}
Expand description
Transforms that are simple, and don’t require attention to coordination. You can run them as simple functions over events in any order.
§Invariants
- It is an illegal invariant to implement
FunctionTransform
for aTaskTransform
or vice versa.
Required Methods§
fn transform(&mut self, output: &mut OutputBuffer, event: Event)
Trait Implementations§
§impl<'clone> Clone for Box<dyn FunctionTransform + 'clone>
impl<'clone> Clone for Box<dyn FunctionTransform + 'clone>
§fn clone(&self) -> Box<dyn FunctionTransform + 'clone>
fn clone(&self) -> Box<dyn FunctionTransform + 'clone>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more