pub struct Successor<'a> {
pub state: &'a [Option<Value>],
pub action: &'a Action,
pub ordinal: u64,
}Expand description
A successor or initial state handed to the sink.
Fields§
§state: &'a [Option<Value>]The state, by dive_ir::VarId; None where the action left a
variable unassigned.
action: &'a ActionThe action (or initial predicate) that produced it.
ordinal: u64Its position among the states generated from the same expanded state (or among the initial states), from 0.
Implementations§
Source§impl Successor<'_>
impl Successor<'_>
Sourcepub fn complete(&self) -> bool
pub fn complete(&self) -> bool
Whether every variable is assigned (TLCState.allAssigned). TLC’s
functor reports an incomplete state as
TLC_STATE_NOT_COMPLETELY_SPECIFIED_NEXT (or _INITIAL).
Sourcepub fn unassigned(&self) -> Vec<usize>
pub fn unassigned(&self) -> Vec<usize>
The variables left unassigned, by dive_ir::VarId index.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Successor<'a>
impl<'a> !UnwindSafe for Successor<'a>
impl<'a> Forget for Successor<'a>
impl<'a> Freeze for Successor<'a>
impl<'a> Move for Successor<'a>
impl<'a> Send for Successor<'a>
impl<'a> Sync for Successor<'a>
impl<'a> Unpin for Successor<'a>
impl<'a> UnsafeUnpin for Successor<'a>
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