Skip to main content

Module mutators

Module mutators 

Source
Expand description

The provided set of Mutate implementations and combinators.

It is idiomatic to import this module with the alias m:

use mutatis::mutators as m;

Structs§

Array
A mutator for fixed-size arrays.
AsciiChar
A mutator for ASCII char values.
AtomicBool
A mutator for core::sync::atomic::AtomicBool values.
AtomicIsize
A mutator for core::sync::atomic::AtomicIsize values.
AtomicUsize
A mutator for core::sync::atomic::AtomicUsize values.
BTreeMap
The default mutator for BTreeMap<K, V> values.
BTreeSet
The default mutator for BTreeSet<T> values.
BinaryHeap
The default mutator for BinaryHeap<T> values.
Bool
The default mutator for bool values.
Bound
A mutator for core::ops::Bound<T> values.
Boxed
The default mutator for Box<T> values.
CStringMutator
The default mutator for CString values.
Cell
The default mutator for Cell<T> values.
Char
A mutator for char values.
CowMutator
A mutator for Cow<'a, B> values.
Duration
A mutator for core::time::Duration values.
F32
A mutator for f32 values.
F64
A mutator for f64 values.
FromFn
A mutator constructed from a function.
HashMap
The default mutator for HashMap<K, V> values.
HashSet
The default mutator for HashSet<T> values.
I8
A mutator for i8 values.
I16
A mutator for i16 values.
I32
A mutator for i32 values.
I64
A mutator for i64 values.
I128
A mutator for i128 values.
IpAddrMutator
The default mutator for IpAddr values.
Ipv4AddrMutator
The default mutator for Ipv4Addr values.
Ipv6AddrMutator
The default mutator for Ipv6Addr values.
Isize
A mutator for isize values.
Just
A mutator that always produces the same, given value.
LinkedList
The default mutator for LinkedList<T> values.
MRange
A mutator for T values within a given range.
Map
A mutator combinator for mapping a function over the mutations produced by another mutator.
MutexMutator
The default mutator for Mutex<T> values.
NonZeroI8
A mutator for NonZero<i8> values.
NonZeroI16
A mutator for NonZero<i16> values.
NonZeroI32
A mutator for NonZero<i32> values.
NonZeroI64
A mutator for NonZero<i64> values.
NonZeroI128
A mutator for NonZero<i128> values.
NonZeroIsize
A mutator for NonZero<isize> values.
NonZeroU8
A mutator for NonZero<u8> values.
NonZeroU16
A mutator for NonZero<u16> values.
NonZeroU32
A mutator for NonZero<u32> values.
NonZeroU64
A mutator for NonZero<u64> values.
NonZeroU128
A mutator for NonZero<u128> values.
NonZeroUsize
A mutator for NonZero<usize> values.
None
A mutator for Option<T> values that always produces None values.
Nop
A mutator that doesn’t do anything.
Option
A mutator for Option<T> values.
Or
A mutator combinator for applying one of two different mutators.
OsStringMutator
The default mutator for OsString values.
PathBufMutator
The default mutator for PathBuf values.
PhantomDataMutator
A mutator for core::marker::PhantomData<T> values.
Proj
A mutator combinator for projecting a value to a sub-value and applying a mutator to that sub-value.
Range
A mutator for core::ops::Range<T> values.
RangeFrom
A mutator for core::ops::RangeFrom<T> values.
RangeInclusive
A mutator for core::ops::RangeInclusive<T> values.
RangeTo
A mutator for core::ops::RangeTo<T> values.
RangeToInclusive
A mutator for core::ops::RangeToInclusive<T> values.
RefCell
The default mutator for RefCell<T> values.
Reverse
A mutator for core::cmp::Reverse<T> values.
SocketAddrMutator
The default mutator for SocketAddr values.
SocketAddrV4Mutator
The default mutator for SocketAddrV4 values.
SocketAddrV6Mutator
The default mutator for SocketAddrV6 values.
Some
A mutator for Option<T> values that always produces Some values.
StringMutator
The default mutator for String values.
Tuple1
A mutator for tuples.
Tuple2
A mutator for tuples.
Tuple3
A mutator for tuples.
Tuple4
A mutator for tuples.
Tuple5
A mutator for tuples.
Tuple6
A mutator for tuples.
Tuple7
A mutator for tuples.
Tuple8
A mutator for tuples.
Tuple9
A mutator for tuples.
Tuple10
A mutator for tuples.
Tuple11
A mutator for tuples.
Tuple12
A mutator for tuples.
Tuple13
A mutator for tuples.
Tuple14
A mutator for tuples.
Tuple15
A mutator for tuples.
Tuple16
A mutator for tuples.
U8
A mutator for u8 values.
U16
A mutator for u16 values.
U32
A mutator for u32 values.
U64
A mutator for u64 values.
U128
A mutator for u128 values.
Unit
A unit mutator.
UnsafeCellMutator
A mutator for core::cell::UnsafeCell<T> values.
Usize
A mutator for usize values.
Vec
The default mutator for Vec<T> values.
VecDeque
The default mutator for VecDeque<T> values.
Wrapping
A mutator for core::num::Wrapping<T> values.

Functions§

array
Create a new Array mutator.
ascii_char
Create a mutator for ASCII char values.
atomic_bool
Create a new mutator for core::sync::atomic::AtomicBool values.
atomic_isize
Create a new mutator for core::sync::atomic::AtomicIsize values.
atomic_usize
Create a new mutator for core::sync::atomic::AtomicUsize values.
binary_heap
Create a new mutator for BinaryHeap<T> values.
bool
Create a new bool mutator.
bound
Create a new mutator for core::ops::Bound<T> values.
boxed
Create a new mutator for Box<T> values.
btree_map
Create a new mutator for BTreeMap<K, V> values.
btree_set
Create a new mutator for BTreeSet<T> values.
c_string
Create a new mutator for CString values.
cell
Create a new mutator for Cell<T> values.
char
Create a mutator for char values.
cow
Create a new mutator for Cow<'a, B> values.
default
A convenience function to get the default mutator for a type.
duration
Create a new mutator for core::time::Duration values.
f32
Create a mutator for f32 values.
f64
Create a mutator for f64 values.
from_fn
Create a mutator from a function.
hash_map
Create a new mutator for HashMap<K, V> values.
hash_set
Create a new mutator for HashSet<T> values.
i8
Create a new i8 mutator.
i16
Create a new i16 mutator.
i32
Create a new i32 mutator.
i64
Create a new i64 mutator.
i128
Create a new i128 mutator.
ip_addr
Create a new mutator for IpAddr values.
ipv4_addr
Create a new mutator for Ipv4Addr values.
ipv6_addr
Create a new mutator for Ipv6Addr values.
isize
Create a new isize mutator.
just
Create a mutator that always produces the same, given value.
linked_list
Create a new mutator for LinkedList<T> values.
mrange
Create a new mutator for T values, keeping them within the given range.
mutex
Create a new mutator for Mutex<T> values.
non_zero_i8
Create a new NonZero<i8> mutator.
non_zero_i16
Create a new NonZero<i16> mutator.
non_zero_i32
Create a new NonZero<i32> mutator.
non_zero_i64
Create a new NonZero<i64> mutator.
non_zero_i128
Create a new NonZero<i128> mutator.
non_zero_isize
Create a new NonZero<isize> mutator.
non_zero_u8
Create a new NonZero<u8> mutator.
non_zero_u16
Create a new NonZero<u16> mutator.
non_zero_u32
Create a new NonZero<u32> mutator.
non_zero_u64
Create a new NonZero<u64> mutator.
non_zero_u128
Create a new NonZero<u128> mutator.
non_zero_usize
Create a new NonZero<usize> mutator.
none
Create a new mutator for Option<T> values that always produces None values.
nop
Create a mutator that doesn’t do anything.
option
Create a new mutator for Option<T> values.
os_string
Create a new mutator for OsString values.
path_buf
Create a new mutator for PathBuf values.
phantom_data
Create a new mutator for core::marker::PhantomData<T> values.
range
Create a new mutator for core::ops::Range<T> values.
range_from
Create a new mutator for core::ops::RangeFrom<T> values.
range_inclusive
Create a new mutator for core::ops::RangeInclusive<T> values.
range_to
Create a new mutator for core::ops::RangeTo<T> values.
range_to_inclusive
Create a new mutator for core::ops::RangeToInclusive<T> values.
range_with
Like range but uses the given mutator rather than the T’s default mutator.
ref_cell
Create a new mutator for RefCell<T> values.
result
Create a new Result mutator.
reverse
Create a new mutator for core::cmp::Reverse<T> values.
socket_addr
Create a new mutator for SocketAddr values.
socket_addr_v4
Create a new mutator for SocketAddrV4 values.
socket_addr_v6
Create a new mutator for SocketAddrV6 values.
some
Create a new mutator for Option<T> values that always produces Some values.
string
Create a new mutator for String values.
tuple1
Create a new mutator for a tuple of tuples! (@ count M0) elements.
tuple2
Create a new mutator for a tuple of tuples! (@ count M0 M1) elements.
tuple3
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2) elements.
tuple4
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3) elements.
tuple5
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4) elements.
tuple6
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5) elements.
tuple7
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5 M6) elements.
tuple8
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5 M6 M7) elements.
tuple9
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5 M6 M7 M8) elements.
tuple10
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5 M6 M7 M8 M9) elements.
tuple11
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 M10) elements.
tuple12
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11) elements.
tuple13
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12) elements.
tuple14
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12 M13) elements.
tuple15
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12 M13 M14) elements.
tuple16
Create a new mutator for a tuple of tuples! (@ count M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12 M13 M14 M15) elements.
u8
Create a new u8 mutator.
u16
Create a new u16 mutator.
u32
Create a new u32 mutator.
u64
Create a new u64 mutator.
u128
Create a new u128 mutator.
unit
Create a new unit (a.k.a zero-element tuple) mutator.
unsafe_cell
Create a new mutator for core::cell::UnsafeCell<T> values.
usize
Create a new usize mutator.
vec
Create a new mutator for Vec<T> values.
vec_deque
Create a new mutator for VecDeque<T> values.
wrapping
Create a new mutator for core::num::Wrapping<T> values.