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) -> Self

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<T> Any for CheckStrategySanityOptions where T: 'static + ?Sized,

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

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

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

impl<T> From<T> for CheckStrategySanityOptions

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

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

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

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