pub struct Failure {
pub site: Site,
pub message: String,
pub initial: bool,
pub parent: Option<Vec<Handle>>,
pub state: Option<Vec<Handle>>,
pub action: Option<usize>,
pub init_action: Option<usize>,
pub in_model: bool,
pub emitted: u64,
}Expand description
An evaluation error that ended the search, or the search’s replay.
Fields§
§site: SiteWhere.
message: StringThe core’s message (not TLC’s text; the caller classifies).
initial: boolWhether it was raised on, or while generating, the initial states.
parent: Option<Vec<Handle>>The state being expanded (persistent handles), unless initial.
state: Option<Vec<Handle>>The state checked (persistent handles; empty handles are unassigned variables), for a check or an incomplete state.
action: Option<usize>The action that emitted Failure::state (None: initial).
init_action: Option<usize>Actual compiled Init action index; distinct from a next-state action.
in_model: boolWhether Failure::state passed the constraints (for an invariant).
emitted: u64For Site::Init and Site::Next: the states the failing
predicate or action emitted before the error.
Implementations§
Trait Implementations§
impl Eq for Failure
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl Forget for Failure
impl Freeze for Failure
impl Move for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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