pub struct TransformationPipeline<T> { /* private fields */ }Expand description
Builder for composing analysis transformations
Implementations§
Source§impl<T> TransformationPipeline<T>
impl<T> TransformationPipeline<T>
Sourcepub fn add_transformation(self, f: fn(T) -> T) -> Self
pub fn add_transformation(self, f: fn(T) -> T) -> Self
Add a transformation to the pipeline
Sourcepub fn apply_all<I>(&self, values: I) -> Vec<T>where
I: IntoIterator<Item = T>,
pub fn apply_all<I>(&self, values: I) -> Vec<T>where
I: IntoIterator<Item = T>,
Apply transformations to an iterator of values
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TransformationPipeline<T>
impl<T> RefUnwindSafe for TransformationPipeline<T>
impl<T> Send for TransformationPipeline<T>
impl<T> Sync for TransformationPipeline<T>
impl<T> Unpin for TransformationPipeline<T>
impl<T> UnwindSafe for TransformationPipeline<T>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more