pub struct LogicLimits {
pub max_depth: usize,
pub max_answers: Option<usize>,
pub max_goals: usize,
pub max_clause_scan: usize,
}Expand description
Resource ceilings that bound a single logic query.
Each limit aborts the query with an error rather than looping forever.
Fields§
§max_depth: usizeMaximum resolution depth before the query is aborted.
max_answers: Option<usize>Maximum number of answers to collect, or None for unbounded.
max_goals: usizeMaximum number of pending goals allowed in a single state.
max_clause_scan: usizeMaximum number of candidate clauses scanned across the whole query.
Trait Implementations§
Source§impl Clone for LogicLimits
impl Clone for LogicLimits
Source§fn clone(&self) -> LogicLimits
fn clone(&self) -> LogicLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LogicLimits
Source§impl Debug for LogicLimits
impl Debug for LogicLimits
Source§impl Default for LogicLimits
impl Default for LogicLimits
impl Eq for LogicLimits
Source§impl PartialEq for LogicLimits
impl PartialEq for LogicLimits
Source§fn eq(&self, other: &LogicLimits) -> bool
fn eq(&self, other: &LogicLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LogicLimits
Auto Trait Implementations§
impl Freeze for LogicLimits
impl RefUnwindSafe for LogicLimits
impl Send for LogicLimits
impl Sync for LogicLimits
impl Unpin for LogicLimits
impl UnsafeUnpin for LogicLimits
impl UnwindSafe for LogicLimits
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§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.