pub struct Config {
pub state: Path,
pub nondet: Path,
}Expand description
Configuration for a Driver that specifies where to find state and nondeterministic
picks within a Quint specification.
By default, both paths are empty (&[]). Empty paths indicate that:
- State is extracted from the top level of the specification’s state space
- Nondeterministic picks are extracted from Quint’s builtin
mbt::actionTakenandmbt::nondetPicksvariables
Override these paths when your specification nests the relevant state within a larger structure, or when tracking nondeterminism manually rather than using Quint’s builtin variables.
§Examples
Specifying custom paths for nested state:
use quint_connect::{Driver, Config};
impl Driver for MyDriver {
type State = MyState;
fn config() -> Config {
Config {
state: &["global_var", "nested_record", "my_state"],
nondet: &["global_var", "nondet_choices"],
}
}
fn step(&mut self, step: &Step) -> Result {
// ...
}
}Fields§
§state: PathPath to the state within the Quint specification’s state space.
An empty path (&[]) indicates the state is at the top level.
nondet: PathPath to nondeterministic picks within the Quint specification’s state space.
An empty path (&[]) uses Quint’s builtin mbt::actionTaken and mbt::nondetPicks
variables.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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