pub struct AugmentationPipeline {
pub steps: Vec<AugmentationStep>,
pub rng_seed: u64,
}Expand description
A composable, ordered sequence of augmentation steps.
Steps are applied left-to-right. Each step receives its own AugRng
derived from the pipeline seed advanced by the step index so results
are deterministic given the same seed.
Fields§
§steps: Vec<AugmentationStep>The ordered list of augmentation steps.
rng_seed: u64Seed used to derive per-step RNG states.
Implementations§
Source§impl AugmentationPipeline
impl AugmentationPipeline
Sourcepub fn add_step(self, step: AugmentationStep) -> Self
pub fn add_step(self, step: AugmentationStep) -> Self
Append a step and return self (builder pattern).
Trait Implementations§
Source§impl Clone for AugmentationPipeline
impl Clone for AugmentationPipeline
Source§fn clone(&self) -> AugmentationPipeline
fn clone(&self) -> AugmentationPipeline
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AugmentationPipeline
impl RefUnwindSafe for AugmentationPipeline
impl Send for AugmentationPipeline
impl Sync for AugmentationPipeline
impl Unpin for AugmentationPipeline
impl UnsafeUnpin for AugmentationPipeline
impl UnwindSafe for AugmentationPipeline
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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