pub struct RestartMetadata {
pub version: String,
pub timestamp: u64,
pub step: u64,
pub time: f64,
pub crate_name: String,
pub description: String,
}Expand description
Metadata stored alongside a restart snapshot.
Fields§
§version: StringFile-format version string (e.g. "1.0").
timestamp: u64UNIX timestamp (seconds since epoch) when this file was written.
step: u64Simulation step number.
time: f64Simulation time (in simulation units).
crate_name: StringName of the crate that produced this file.
description: StringFree-form human-readable description.
Implementations§
Trait Implementations§
Source§impl Clone for RestartMetadata
impl Clone for RestartMetadata
Source§fn clone(&self) -> RestartMetadata
fn clone(&self) -> RestartMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestartMetadata
impl Debug for RestartMetadata
Source§impl PartialEq for RestartMetadata
impl PartialEq for RestartMetadata
Source§fn eq(&self, other: &RestartMetadata) -> bool
fn eq(&self, other: &RestartMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RestartMetadata
Auto Trait Implementations§
impl Freeze for RestartMetadata
impl RefUnwindSafe for RestartMetadata
impl Send for RestartMetadata
impl Sync for RestartMetadata
impl Unpin for RestartMetadata
impl UnsafeUnpin for RestartMetadata
impl UnwindSafe for RestartMetadata
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.