pub struct Config {
pub chaos: u8,
pub deletions: u8,
pub language: Language,
pub inter_splices: usize,
pub max_size: usize,
pub node_types: NodeTypes,
pub reparse: usize,
pub seed: u64,
}
Expand description
Splicing configuration
Fields§
§chaos: u8
Percent chance to perform chaotic mutation
Chaotic mutations may result in invalid syntax.
deletions: u8
Percent chance to perform a deletion.
By default, deletes optional nodes. Chaotic deletions delete any node.
language: Language
§inter_splices: usize
Perform anywhere from zero to this many inter-file splices per test.
max_size: usize
Approximate maximum file size to produce (bytes)
Some of the input tests should be below this size.
node_types: NodeTypes
§reparse: usize
Re-parse the file after this many mutations.
When this is more than inter_splices
, never re-parse.
seed: u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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