pub struct Snapshot { /* private fields */ }Expand description
What a running simulation has come to apart from its machine (Sim::snapshot): the integrated state, the controller
with its drives (loops, filters, windings, thermal and overload images), the parts’ warmth and the obstacle record.
Sim::restore takes it back into a simulation built from the same machine and config; what the machine itself keeps
between steps (payload, brakes, dwelling, the parts’ temperatures, its memory) is set again from it.
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 !RefUnwindSafe for Snapshot
impl !UnwindSafe for Snapshot
impl Freeze for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin 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