pub struct StateFile {
pub four_state: bool,
pub objects: Vec<StateObject>,
pub schedule: Option<ScheduleRecord>,
}Expand description
Contents of a state file.
Fields§
§four_state: bool§objects: Vec<StateObject>§schedule: Option<ScheduleRecord>Implementations§
Source§impl StateFile
impl StateFile
pub fn write_to(&self, writer: impl Write) -> Result<()>
pub fn read_from(reader: impl Read) -> Result<Self, StateFileError>
Sourcepub fn diff(&self, other: &Self, include_comb: bool) -> Vec<StateDifference>
pub fn diff(&self, other: &Self, include_comb: bool) -> Vec<StateDifference>
Objects whose saved values differ between self and other, by
path. Combinational objects are recomputed from the other state, so
they are compared only with include_comb; an object counts as
combinational if either file says so, which hides values that
optimizations left stale.
Trait Implementations§
impl Eq for StateFile
impl StructuralPartialEq for StateFile
Auto Trait Implementations§
impl Freeze for StateFile
impl RefUnwindSafe for StateFile
impl Send for StateFile
impl Sync for StateFile
impl Unpin for StateFile
impl UnsafeUnpin for StateFile
impl UnwindSafe for StateFile
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