pub struct Snapshot {
pub exec_name: String,
pub state_space: StateSpace,
pub state_info: StateInfo,
pub properties: Vec<PropertySnapshot>,
pub log: Log,
pub panic_message: Option<String>,
}Expand description
A snapshot of the current state of machine-check.
Provided by the backend to the frontend.
Fields§
§exec_name: String§state_space: StateSpace§state_info: StateInfo§properties: Vec<PropertySnapshot>§log: Log§panic_message: Option<String>Implementations§
Source§impl Snapshot
impl Snapshot
pub fn new( exec_name: String, state_space: StateSpace, state_info: StateInfo, properties: Vec<PropertySnapshot>, log: Log, panic_message: Option<String>, ) -> Self
pub fn last_property_index(&self) -> Option<PropertyIndex>
pub fn contains_property(&self, property_index: PropertyIndex) -> bool
pub fn contains_subproperty( &self, property_index: PropertyIndex, subproperty_index: usize, ) -> bool
pub fn subproperty_labellings( &self, property_index: PropertyIndex, subproperty_index: usize, ) -> Option<&BTreeMap<StateId, ParamValuation>>
pub fn property_snapshot( &self, property_index: PropertyIndex, ) -> &PropertySnapshot
pub fn property_snapshots(&self) -> &Vec<PropertySnapshot>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more