pub struct VecMutator<T: Clone, M: Mutator<T>> {
pub rng: Rng,
pub m: M,
/* private fields */
}
Fields§
§rng: Rng
§m: M
Implementations§
Trait Implementations§
Source§impl<T: Clone, M> Default for VecMutator<T, M>
impl<T: Clone, M> Default for VecMutator<T, M>
Source§impl<T: Clone, M: Mutator<T>> Mutator<Vec<T>> for VecMutator<T, M>
impl<T: Clone, M: Mutator<T>> Mutator<Vec<T>> for VecMutator<T, M>
type Cache = VecMutatorCache<<M as Mutator<T>>::Cache>
type MutationStep = MutationStep<<M as Mutator<T>>::MutationStep>
type ArbitraryStep = bool
type UnmutateToken = UnmutateVecToken<T, M>
Source§fn cache_from_value(&self, value: &Vec<T>) -> Self::Cache
fn cache_from_value(&self, value: &Vec<T>) -> Self::Cache
Compute the cache for the given value
Source§fn initial_step_from_value(&self, value: &Vec<T>) -> Self::MutationStep
fn initial_step_from_value(&self, value: &Vec<T>) -> Self::MutationStep
Compute the initial mutation step for the given value
Source§fn max_complexity(&self) -> f64
fn max_complexity(&self) -> f64
The maximum complexity of an input of this type
Source§fn min_complexity(&self) -> f64
fn min_complexity(&self) -> f64
The minimum complexity of an input of this type
fn complexity(&self, value: &Vec<T>, cache: &Self::Cache) -> f64
fn ordered_arbitrary( &self, step: &mut Self::ArbitraryStep, max_cplx: f64, ) -> Option<(Vec<T>, Self::Cache)>
fn random_arbitrary(&self, max_cplx: f64) -> (Vec<T>, Self::Cache)
fn ordered_mutate( &self, value: &mut Vec<T>, cache: &mut Self::Cache, step: &mut Self::MutationStep, max_cplx: f64, ) -> Option<Self::UnmutateToken>
fn random_mutate( &self, value: &mut Vec<T>, cache: &mut Self::Cache, max_cplx: f64, ) -> Self::UnmutateToken
fn unmutate( &self, value: &mut Vec<T>, cache: &mut Self::Cache, t: Self::UnmutateToken, )
Auto Trait Implementations§
impl<T, M> !Freeze for VecMutator<T, M>
impl<T, M> !RefUnwindSafe for VecMutator<T, M>
impl<T, M> Send for VecMutator<T, M>
impl<T, M> !Sync for VecMutator<T, M>
impl<T, M> Unpin for VecMutator<T, M>
impl<T, M> UnwindSafe for VecMutator<T, M>where
M: UnwindSafe,
T: UnwindSafe,
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