pub struct GcOpsMutator { /* private fields */ }Expand description
Mutator for GcOps.
Trait Implementations§
Source§impl Debug for GcOpsMutator
impl Debug for GcOpsMutator
Source§impl Default for GcOpsMutator
impl Default for GcOpsMutator
Source§impl Generate<GcOp> for GcOpsMutator
impl Generate<GcOp> for GcOpsMutator
Source§impl Generate<GcOps> for GcOpsMutator
impl Generate<GcOps> for GcOpsMutator
Source§impl Mutate<GcOp> for GcOpsMutator
impl Mutate<GcOp> for GcOpsMutator
Source§fn mutate(&mut self, c: &mut Candidates<'_>, value: &mut GcOp) -> MutResult<()>
fn mutate(&mut self, c: &mut Candidates<'_>, value: &mut GcOp) -> MutResult<()>
Pseudo-randomly mutate the given value. Read more
§fn mutation_count(&self, value: &T, shrink: bool) -> Option<u32>
fn mutation_count(&self, value: &T, shrink: bool) -> Option<u32>
Return the number of mutations that [
mutate][Mutate::mutate] would
register for the given value. Read more§fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
Create a new mutator that performs either this mutation or the
other
mutation. Read more§fn map<F>(self, f: F) -> Map<Self, F>
fn map<F>(self, f: F) -> Map<Self, F>
Map a function over the mutations produced by this mutator. Read more
Source§impl Mutate<GcOps> for GcOpsMutator
impl Mutate<GcOps> for GcOpsMutator
Source§fn mutate(&mut self, c: &mut Candidates<'_>, ops: &mut GcOps) -> MutResult<()>
fn mutate(&mut self, c: &mut Candidates<'_>, ops: &mut GcOps) -> MutResult<()>
Pseudo-randomly mutate the given value. Read more
§fn mutation_count(&self, value: &T, shrink: bool) -> Option<u32>
fn mutation_count(&self, value: &T, shrink: bool) -> Option<u32>
Return the number of mutations that [
mutate][Mutate::mutate] would
register for the given value. Read more§fn generate_via_mutate(
&mut self,
context: &mut Context,
iters: usize,
) -> Result<T, Error>
fn generate_via_mutate( &mut self, context: &mut Context, iters: usize, ) -> Result<T, Error>
Generate a new value by mutating its default value
iters times. Read more§fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
Create a new mutator that performs either this mutation or the
other
mutation. Read more§fn map<F>(self, f: F) -> Map<Self, F>
fn map<F>(self, f: F) -> Map<Self, F>
Map a function over the mutations produced by this mutator. Read more
Auto Trait Implementations§
impl Freeze for GcOpsMutator
impl RefUnwindSafe for GcOpsMutator
impl Send for GcOpsMutator
impl Sync for GcOpsMutator
impl Unpin for GcOpsMutator
impl UnsafeUnpin for GcOpsMutator
impl UnwindSafe for GcOpsMutator
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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