pub struct RunnerOptions { /* private fields */ }Expand description
Configuration for proptest-driven run behavior.
Downstream crates cannot construct this type via a struct literal; use
RunnerOptions::new to ensure invariants are validated.
ⓘ
use tooltest_core::RunnerOptions;
let _ = RunnerOptions {
cases: 0,
sequence_len: 0..=0,
};Implementations§
Source§impl RunnerOptions
impl RunnerOptions
Sourcepub fn new(
cases: u32,
sequence_len: RangeInclusive<usize>,
) -> Result<Self, String>
pub fn new( cases: u32, sequence_len: RangeInclusive<usize>, ) -> Result<Self, String>
Creates runner options, validating that cases >= 1 and the sequence length range is valid.
Sourcepub fn sequence_len(&self) -> RangeInclusive<usize>
pub fn sequence_len(&self) -> RangeInclusive<usize>
Returns the configured sequence length range.
Trait Implementations§
Source§impl Clone for RunnerOptions
impl Clone for RunnerOptions
Source§fn clone(&self) -> RunnerOptions
fn clone(&self) -> RunnerOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunnerOptions
impl Debug for RunnerOptions
Auto Trait Implementations§
impl Freeze for RunnerOptions
impl RefUnwindSafe for RunnerOptions
impl Send for RunnerOptions
impl Sync for RunnerOptions
impl Unpin for RunnerOptions
impl UnsafeUnpin for RunnerOptions
impl UnwindSafe for RunnerOptions
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