pub struct GenerationConfig { /* private fields */ }Expand description
Explicit generation controls used by the document-level fuzzer API.
GenerationConfig::default uses the crate’s standard recursion depth and
retry budget. Use GenerationConfig::new when only depth needs to change.
Implementations§
Source§impl GenerationConfig
impl GenerationConfig
Sourcepub fn new(depth: u8) -> Self
pub fn new(depth: u8) -> Self
Build a generation config with the default retry budget and a recursion depth limit.
Sourcepub fn with_max_generation_attempts(
self,
max_generation_attempts: NonZeroUsize,
) -> Self
pub fn with_max_generation_attempts( self, max_generation_attempts: NonZeroUsize, ) -> Self
Override the number of raw-validator-checked candidates to try before
returning GenerateError::ExhaustedAttempts.
Sourcepub const fn max_generation_attempts(self) -> NonZeroUsize
pub const fn max_generation_attempts(self) -> NonZeroUsize
Return the maximum number of candidates checked before retry exhaustion.
Trait Implementations§
Source§impl Clone for GenerationConfig
impl Clone for GenerationConfig
Source§fn clone(&self) -> GenerationConfig
fn clone(&self) -> GenerationConfig
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 GenerationConfig
impl Debug for GenerationConfig
Source§impl Default for GenerationConfig
impl Default for GenerationConfig
Source§impl PartialEq for GenerationConfig
impl PartialEq for GenerationConfig
impl Copy for GenerationConfig
impl Eq for GenerationConfig
impl StructuralPartialEq for GenerationConfig
Auto Trait Implementations§
impl Freeze for GenerationConfig
impl RefUnwindSafe for GenerationConfig
impl Send for GenerationConfig
impl Sync for GenerationConfig
impl Unpin for GenerationConfig
impl UnsafeUnpin for GenerationConfig
impl UnwindSafe for GenerationConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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