pub struct TimeAxisMetadata { /* private fields */ }Expand description
Public description of the temporal coordinates used by a run.
Every record always has an integer iteration. Physical time remains
optional, and its unit is legal only when a physical-coordinate name is
configured. Labels are documentation persisted once in metadata.json;
they do not change crate::system_state::SimulationTime representation.
Implementations§
Source§impl TimeAxisMetadata
impl TimeAxisMetadata
Sourcepub fn new(iteration_name: impl Into<String>) -> Self
pub fn new(iteration_name: impl Into<String>) -> Self
Creates a time-axis declaration with a mandatory iteration label.
Whitespace is retained in the builder and rejected by
SystemStateWriterBuilder::create_new_recording, keeping fluent configuration infallible
while ensuring persisted labels are never silently normalized.
Sourcepub fn with_iteration_unit(self, unit: impl Into<String>) -> Self
pub fn with_iteration_unit(self, unit: impl Into<String>) -> Self
Sets the optional unit of the iteration coordinate.
Sourcepub fn with_physical_time_name(self, name: impl Into<String>) -> Self
pub fn with_physical_time_name(self, name: impl Into<String>) -> Self
Declares the optional floating-point physical coordinate.
Sourcepub fn with_physical_time_unit(self, unit: impl Into<String>) -> Self
pub fn with_physical_time_unit(self, unit: impl Into<String>) -> Self
Sets the physical-coordinate unit.
A matching TimeAxisMetadata::with_physical_time_name is required; construction fails
at SystemStateWriterBuilder::create_new_recording if the unit is configured alone.
Trait Implementations§
Source§impl Clone for TimeAxisMetadata
impl Clone for TimeAxisMetadata
Source§fn clone(&self) -> TimeAxisMetadata
fn clone(&self) -> TimeAxisMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TimeAxisMetadata
impl Debug for TimeAxisMetadata
Source§impl Default for TimeAxisMetadata
impl Default for TimeAxisMetadata
impl Eq for TimeAxisMetadata
Source§impl PartialEq for TimeAxisMetadata
impl PartialEq for TimeAxisMetadata
impl StructuralPartialEq for TimeAxisMetadata
Auto Trait Implementations§
impl Freeze for TimeAxisMetadata
impl RefUnwindSafe for TimeAxisMetadata
impl Send for TimeAxisMetadata
impl Sync for TimeAxisMetadata
impl Unpin for TimeAxisMetadata
impl UnsafeUnpin for TimeAxisMetadata
impl UnwindSafe for TimeAxisMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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