Skip to main content

St

Struct St 

Source
pub struct St {
    pub s0: StateRef,
    pub s1: StateRef,
    /* private fields */
}
Expand description

The states and control flags an expression is evaluated under: TLC’s (s0, s1, control).

Fields§

§s0: StateRef

The current state (s0).

§s1: StateRef

The successor (s1).

Implementations§

Source§

impl St

Source

pub fn diagnostic(&self) -> Self

Re-evaluates this context with TLC’s diagnostic source-attachment hook.

Only receivers actually constructed in the evaluation acquire a source; previously computed or stored values retain their original provenance.

Source

pub fn constant() -> Self

Constant-level evaluation, as TLC evaluates ASSUMEs (Tool.isValid(expr): Empty, Empty, EvalControl.Const).

Source

pub fn empty() -> Self

TLC’s (TLCState.Empty, TLCState.Empty, EvalControl.Clear): what Tool.getActions evaluates the arguments of inlined operators and the domains of split \Es in.

Source

pub fn state(state: Arc<[Option<Value>]>) -> Self

A state predicate in state (Empty successor, Clear).

Source

pub fn initial(state: Arc<[Option<Value>]>) -> Self

An initial predicate on a supplied state (Empty successor, Init).

Unlike ordinary state checks, this evaluates TLCGet("level") as 0. Use Self::state for invariants and implied initial properties, which are checked after the initial state has been generated.

use dive_eval::St;
use std::sync::Arc;
let initial = St::initial(Arc::from([Some(0.into())]));
Source

pub fn action(s0: Arc<[Option<Value>]>, s1: Arc<[Option<Value>]>) -> Self

An action between s0 and s1 (Clear).

Source

pub fn enabled_candidate(&self, successor: Arc<NamedState>) -> Self

Evaluates a query relation in the supplied partial named successor while retaining the current state.

Source

pub fn enabled_current(&self) -> Self

Reads the current side of an ENABLED query, preserving its cutoff control.

Source

pub fn primed_successor(&self) -> Self

Moves the whole successor into the current position for primed evaluation. Hidden named assignments are retained.

Trait Implementations§

Source§

impl Clone for St

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for St

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for St

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl !RefUnwindSafe for St

§

impl !UnwindSafe for St

§

impl Forget for St

§

impl Freeze for St

§

impl Move for St

§

impl Send for St

§

impl Sync for St

§

impl Unpin for St

§

impl UnsafeUnpin for St

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.