pub struct Options { /* private fields */ }Implementations§
Source§impl Options
impl Options
pub const DEFAULT_MAX_DEPTH: usize = 5
pub const DEFAULT_MAX_LEN: usize = 4096
pub const DEFAULT_SHRINK_TIME: Duration
pub fn with_shrink_time(self, shrink_time: Duration) -> Self
pub fn with_max_depth(self, max_depth: usize) -> Self
pub fn with_max_len(self, max_len: usize) -> Self
pub fn with_exhaustive(self, exhaustive: bool) -> Self
pub fn set_exhaustive(&mut self, exhaustive: bool) -> &mut Self
pub fn set_shrink_time(&mut self, shrink_time: Duration) -> &mut Self
pub fn set_max_depth(&mut self, max_depth: usize) -> &mut Self
pub fn set_max_len(&mut self, max_len: usize) -> &mut Self
pub fn exhaustive(&self) -> bool
pub fn max_depth(&self) -> Option<usize>
pub fn max_len(&self) -> Option<usize>
pub fn shrink_time(&self) -> Option<Duration>
pub fn max_depth_or_default(&self) -> usize
pub fn max_len_or_default(&self) -> usize
pub fn shrink_time_or_default(&self) -> Duration
pub fn merge_from(&mut self, other: &Self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more