pub struct Limits {
pub max_expansions: Option<u64>,
}Expand description
Simple counter limits. The default is unlimited.
Fields§
§max_expansions: Option<u64>Stop once this many states have been expanded. None is unbounded.
Implementations§
Trait Implementations§
Source§impl Budget<Stats> for Limits
Asked before every expansion, with the counters so far, so a search stopped by
Limits::max_expansions = n has expanded exactly n states. Closures
FnMut(&Stats) -> bool are budgets too, which lets callers with a clock (this crate is
no_std) add a time limit; annotate the argument (|stats: &Stats| ...).
impl Budget<Stats> for Limits
Asked before every expansion, with the counters so far, so a search stopped by
Limits::max_expansions = n has expanded exactly n states. Closures
FnMut(&Stats) -> bool are budgets too, which lets callers with a clock (this crate is
no_std) add a time limit; annotate the argument (|stats: &Stats| ...).
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl Move for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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