pub struct SnapshotEntry {
pub id: String,
pub sim_time: f64,
pub path: String,
pub file_size: usize,
pub loaded: bool,
pub tags: Vec<String>,
}Expand description
Metadata for a single simulation snapshot.
Fields§
§id: StringSnapshot identifier (e.g. "frame_0042").
sim_time: f64Simulation time at which this snapshot was taken (s).
path: StringFile path or URI for lazy loading (empty = not yet saved).
file_size: usizeFile size in bytes (0 if unknown).
loaded: boolWhether this snapshot has been loaded into memory.
Optional per-snapshot tags.
Implementations§
Trait Implementations§
Source§impl Clone for SnapshotEntry
impl Clone for SnapshotEntry
Source§fn clone(&self) -> SnapshotEntry
fn clone(&self) -> SnapshotEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SnapshotEntry
impl RefUnwindSafe for SnapshotEntry
impl Send for SnapshotEntry
impl Sync for SnapshotEntry
impl Unpin for SnapshotEntry
impl UnsafeUnpin for SnapshotEntry
impl UnwindSafe for SnapshotEntry
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.