Skip to main content

Config

Struct Config 

Source
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::actionTaken and mbt::nondetPicks variables

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: Path

Path to the state within the Quint specification’s state space.

An empty path (&[]) indicates the state is at the top level.

§nondet: Path

Path 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§

Source§

impl Default for Config

Source§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V