[][src]Struct stateright::StateRecorder

pub struct StateRecorder<M: Model>(_);

A CheckerVisitor that records states evaluated by the model checker. Does not record generated states that are still pending property evaluation.

Example

let (recorder, accessor) = StateRecorder::new_with_accessor();
model.checker().visitor(recorder).spawn_dfs().join();
assert_eq!(accessor(), expected_states);

Implementations

impl<M> StateRecorder<M> where
    M: Model,
    M::State: Clone
[src]

pub fn new_with_accessor() -> (Self, impl Fn() -> Vec<M::State>)[src]

Instantiates a (StateRecorder, accessor) pair.

Trait Implementations

impl<M> CheckerVisitor<M> for StateRecorder<M> where
    M: Model,
    M::State: Clone
[src]

Auto Trait Implementations

impl<M> RefUnwindSafe for StateRecorder<M>[src]

impl<M> Send for StateRecorder<M> where
    <M as Model>::State: Send
[src]

impl<M> Sync for StateRecorder<M> where
    <M as Model>::State: Send
[src]

impl<M> Unpin for StateRecorder<M>[src]

impl<M> UnwindSafe for StateRecorder<M>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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