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.
- Ascii
Char - A mutator for ASCII
charvalues. - Atomic
Bool - A mutator for
core::sync::atomic::AtomicBoolvalues. - Atomic
Isize - A mutator for
core::sync::atomic::AtomicIsizevalues. - Atomic
Usize - A mutator for
core::sync::atomic::AtomicUsizevalues. - BTree
Map - The default mutator for
BTreeMap<K, V>values. - BTree
Set - The default mutator for
BTreeSet<T>values. - Binary
Heap - The default mutator for
BinaryHeap<T>values. - Bool
- The default mutator for
boolvalues. - Bound
- A mutator for
core::ops::Bound<T>values. - Boxed
- The default mutator for
Box<T>values. - CString
Mutator - The default mutator for
CStringvalues. - Cell
- The default mutator for
Cell<T>values. - Char
- A mutator for
charvalues. - CowMutator
- A mutator for
Cow<'a, B>values. - Duration
- A mutator for
core::time::Durationvalues. - F32
- A mutator for
f32values. - F64
- A mutator for
f64values. - 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
i8values. - I16
- A mutator for
i16values. - I32
- A mutator for
i32values. - I64
- A mutator for
i64values. - I128
- A mutator for
i128values. - IpAddr
Mutator - The default mutator for
IpAddrvalues. - Ipv4
Addr Mutator - The default mutator for
Ipv4Addrvalues. - Ipv6
Addr Mutator - The default mutator for
Ipv6Addrvalues. - Isize
- A mutator for
isizevalues. - Just
- A mutator that always produces the same, given value.
- Linked
List - The default mutator for
LinkedList<T>values. - MRange
- A mutator for
Tvalues within a given range. - Map
- A mutator combinator for mapping a function over the mutations produced by another mutator.
- Mutex
Mutator - The default mutator for
Mutex<T>values. - NonZero
I8 - A mutator for
NonZero<i8>values. - NonZero
I16 - A mutator for
NonZero<i16>values. - NonZero
I32 - A mutator for
NonZero<i32>values. - NonZero
I64 - A mutator for
NonZero<i64>values. - NonZero
I128 - A mutator for
NonZero<i128>values. - NonZero
Isize - A mutator for
NonZero<isize>values. - NonZero
U8 - A mutator for
NonZero<u8>values. - NonZero
U16 - A mutator for
NonZero<u16>values. - NonZero
U32 - A mutator for
NonZero<u32>values. - NonZero
U64 - A mutator for
NonZero<u64>values. - NonZero
U128 - A mutator for
NonZero<u128>values. - NonZero
Usize - A mutator for
NonZero<usize>values. - None
- A mutator for
Option<T>values that always producesNonevalues. - 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.
- OsString
Mutator - The default mutator for
OsStringvalues. - Path
BufMutator - The default mutator for
PathBufvalues. - Phantom
Data Mutator - 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. - Range
From - A mutator for
core::ops::RangeFrom<T>values. - Range
Inclusive - A mutator for
core::ops::RangeInclusive<T>values. - RangeTo
- A mutator for
core::ops::RangeTo<T>values. - Range
ToInclusive - 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. - Socket
Addr Mutator - The default mutator for
SocketAddrvalues. - Socket
Addr V4Mutator - The default mutator for
SocketAddrV4values. - Socket
Addr V6Mutator - The default mutator for
SocketAddrV6values. - Some
- A mutator for
Option<T>values that always producesSomevalues. - String
Mutator - The default mutator for
Stringvalues. - 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
u8values. - U16
- A mutator for
u16values. - U32
- A mutator for
u32values. - U64
- A mutator for
u64values. - U128
- A mutator for
u128values. - Unit
- A unit mutator.
- Unsafe
Cell Mutator - A mutator for
core::cell::UnsafeCell<T>values. - Usize
- A mutator for
usizevalues. - 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
Arraymutator. - ascii_
char - Create a mutator for ASCII
charvalues. - atomic_
bool - Create a new mutator for
core::sync::atomic::AtomicBoolvalues. - atomic_
isize - Create a new mutator for
core::sync::atomic::AtomicIsizevalues. - atomic_
usize - Create a new mutator for
core::sync::atomic::AtomicUsizevalues. - binary_
heap - Create a new mutator for
BinaryHeap<T>values. - bool
- Create a new
boolmutator. - 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
CStringvalues. - cell
- Create a new mutator for
Cell<T>values. - char
- Create a mutator for
charvalues. - 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::Durationvalues. - f32
- Create a mutator for
f32values. - f64
- Create a mutator for
f64values. - 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
i8mutator. - i16
- Create a new
i16mutator. - i32
- Create a new
i32mutator. - i64
- Create a new
i64mutator. - i128
- Create a new
i128mutator. - ip_addr
- Create a new mutator for
IpAddrvalues. - ipv4_
addr - Create a new mutator for
Ipv4Addrvalues. - ipv6_
addr - Create a new mutator for
Ipv6Addrvalues. - isize
- Create a new
isizemutator. - 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
Tvalues, 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 producesNonevalues. - 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
OsStringvalues. - path_
buf - Create a new mutator for
PathBufvalues. - 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
rangebut uses the givenmutatorrather than theT’s default mutator. - ref_
cell - Create a new mutator for
RefCell<T>values. - result
- Create a new
Resultmutator. - reverse
- Create a new mutator for
core::cmp::Reverse<T>values. - socket_
addr - Create a new mutator for
SocketAddrvalues. - socket_
addr_ v4 - Create a new mutator for
SocketAddrV4values. - socket_
addr_ v6 - Create a new mutator for
SocketAddrV6values. - some
- Create a new mutator for
Option<T>values that always producesSomevalues. - string
- Create a new mutator for
Stringvalues. - 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
u8mutator. - u16
- Create a new
u16mutator. - u32
- Create a new
u32mutator. - u64
- Create a new
u64mutator. - u128
- Create a new
u128mutator. - 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
usizemutator. - 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.