Struct nyx_space::io::formatter::StateHeader
source · pub struct StateHeader {
pub param: StateParameter,
pub frame_name: Option<String>,
pub epoch_fmt: Option<EpochFormat>,
}
Expand description
Allowed headers, with an optional frame. TODO: Support units
Fields§
§param: StateParameter
Stores either the state parameter or the epoch
frame_name: Option<String>
§epoch_fmt: Option<EpochFormat>
Trait Implementations§
source§impl Clone for StateHeader
impl Clone for StateHeader
source§fn clone(&self) -> StateHeader
fn clone(&self) -> StateHeader
Returns a copy 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 moresource§impl Debug for StateHeader
impl Debug for StateHeader
source§impl Display for StateHeader
impl Display for StateHeader
source§impl From<StateParameter> for StateHeader
impl From<StateParameter> for StateHeader
source§fn from(param: StateParameter) -> Self
fn from(param: StateParameter) -> Self
Converts to this type from the input type.
source§impl PartialEq<StateHeader> for StateHeader
impl PartialEq<StateHeader> for StateHeader
source§fn eq(&self, other: &StateHeader) -> bool
fn eq(&self, other: &StateHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StateHeader
impl Serialize for StateHeader
impl StructuralPartialEq for StateHeader
Auto Trait Implementations§
impl RefUnwindSafe for StateHeader
impl Send for StateHeader
impl Sync for StateHeader
impl Unpin for StateHeader
impl UnwindSafe for StateHeader
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Printing<T> for Twhere
T: Display,
impl<T> Printing<T> for Twhere T: Display,
§fn to_str(self) -> String
fn to_str(self) -> String
Method to serialize.
Decorates Vecs with square brackets and tuples with round ones.
Implementation code is in
printing.rs
. §fn to_plainstr(self) -> String
fn to_plainstr(self) -> String
Method to serialize in minimal form (space separated, no brackets)
Implementation code is in
printing.rs
.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.