#[non_exhaustive]pub struct Options {
pub symmetry_breaking: bool,
pub budget: Budget,
pub steps: usize,
pub predicate_length: usize,
pub slicing: bool,
}Expand description
How a search runs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symmetry_breaking: boolBreak symmetries (LOGIC.md 12.5). On by default; off for counting.
budget: BudgetThe budget of each solve. There is always one (AGENTS.md law 22).
steps: usizeThe most states a trace may have (LOGIC.md 13.4).
predicate_length: usizeThe most entries the symmetry predicate compares per pair of atoms (LOGIC.md 12.5).
slicing: boolTry a smaller problem with the same verdict before the whole one (DESIGN.md section 7.9). On by default; off, every check is solved whole, which gives the reference answer slicing is compared with.
Implementations§
Source§impl Options
impl Options
Sourcepub fn symmetry_breaking(self, on: bool) -> Options
pub fn symmetry_breaking(self, on: bool) -> Options
The same options with symmetry breaking on or off.
Sourcepub fn predicate_length(self, length: usize) -> Options
pub fn predicate_length(self, length: usize) -> Options
The same options with another length of the symmetry predicate.
Trait Implementations§
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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