pub struct Conf {
pub example_count: u32,
pub seed: u64,
}Expand description
Configuration for executing monkey tests.
Fields§
§example_count: u32See Conf::with_seed.
seed: u64See Conf::with_seed.
Implementations§
Source§impl Conf
impl Conf
Sourcepub fn with_generator<E>(&self, generator: BoxGen<E>) -> ConfAndGen<E>where
E: Clone,
pub fn with_generator<E>(&self, generator: BoxGen<E>) -> ConfAndGen<E>where
E: Clone,
Specify which single generator to use in test.
Sourcepub fn with_example_count(&self, example_count: u32) -> Conf
pub fn with_example_count(&self, example_count: u32) -> Conf
Specify the number of examples to use in test. If not specified, the default number of examples are used. If the default number of examples are explicitly changed, it is set to 100.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Conf
impl RefUnwindSafe for Conf
impl Send for Conf
impl Sync for Conf
impl Unpin for Conf
impl UnwindSafe for Conf
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