Struct CheckStrategySanityOptions

pub struct CheckStrategySanityOptions { pub strict_complicate_after_simplify: bool, pub error_on_local_rejects: bool, /* private fields */ }

Options passed to check_strategy_sanity().

Fields

strict_complicate_after_simplify: bool

If true (the default), require that complicate() return true at least once after any call to simplify() which itself returns once.

This property is not required by contract, but many strategies are designed in a way that this is expected to hold.

error_on_local_rejects: bool

If true, cause local rejects to return an error instead of retrying. Defaults to false. Useful for testing behaviors around error handling.

Trait Implementations

impl Clone for CheckStrategySanityOptions

fn clone(&self) -> CheckStrategySanityOptions

impl Copy for CheckStrategySanityOptions

impl Debug for CheckStrategySanityOptions

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for CheckStrategySanityOptions

fn default() -> Self

Auto Trait Implementations

impl Freeze for CheckStrategySanityOptions

impl RefUnwindSafe for CheckStrategySanityOptions

impl Send for CheckStrategySanityOptions

impl Sync for CheckStrategySanityOptions

impl Unpin for CheckStrategySanityOptions

impl UnsafeUnpin for CheckStrategySanityOptions

impl UnwindSafe for CheckStrategySanityOptions

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for CheckStrategySanityOptions where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for CheckStrategySanityOptions where ST: ?Sized, DT: ?Sized,

impl<T> Any for CheckStrategySanityOptions where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for CheckStrategySanityOptions where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for CheckStrategySanityOptions where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for CheckStrategySanityOptions where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for CheckStrategySanityOptions

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Read<Exclusive, BecauseExclusive> for CheckStrategySanityOptions where T: ?Sized,

impl<T> ToOwned for CheckStrategySanityOptions where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for CheckStrategySanityOptions where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for CheckStrategySanityOptions where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for CheckStrategySanityOptions where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip<V> for CheckStrategySanityOptions where V: MultiLane<T>,

fn vzip(self) -> V