pub struct Criterion { /* private fields */ }Expand description
Search limits used when finding solutions (e.g., node, fail, restart, backtrack).
Implementations§
Source§impl Criterion
impl Criterion
Sourcepub fn with_node_limit(self, limit: i64) -> Self
pub fn with_node_limit(self, limit: i64) -> Self
Sets a node limit for the criterion.
Sourcepub fn with_fail_limit(self, limit: i64) -> Self
pub fn with_fail_limit(self, limit: i64) -> Self
Sets a fail limit for the criterion.
Sourcepub fn with_restart_limit(self, limit: i64) -> Self
pub fn with_restart_limit(self, limit: i64) -> Self
Sets a restart limit for the criterion.
Sourcepub fn with_backtrack_limit(self, limit: i64) -> Self
pub fn with_backtrack_limit(self, limit: i64) -> Self
Sets a backtrack limit for the criterion.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Criterion
impl RefUnwindSafe for Criterion
impl Send for Criterion
impl Sync for Criterion
impl Unpin for Criterion
impl UnsafeUnpin for Criterion
impl UnwindSafe for Criterion
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