pub struct CoordinateSpec {
pub dtype: CoordinateDType,
pub ordered: bool,
pub values: CoordinateValues,
}Expand description
Typed coordinate contract for an axis, so methods can machine-rely on the coordinate dtype, ordering and (for numeric) regular-grid structure rather than re-deriving them from untyped JSON.
datetime coordinates are canonical RFC 3339 UTC second-precision strings
(YYYY-MM-DDThh:mm:ssZ); richer precision / offsets are a future extension.
Fields§
§dtype: CoordinateDType§ordered: bool§values: CoordinateValuesImplementations§
Trait Implementations§
Source§impl Clone for CoordinateSpec
impl Clone for CoordinateSpec
Source§fn clone(&self) -> CoordinateSpec
fn clone(&self) -> CoordinateSpec
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 CoordinateSpec
impl Debug for CoordinateSpec
Source§impl<'de> Deserialize<'de> for CoordinateSpec
impl<'de> Deserialize<'de> for CoordinateSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoordinateSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoordinateSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CoordinateSpec
impl PartialEq for CoordinateSpec
Source§fn eq(&self, other: &CoordinateSpec) -> bool
fn eq(&self, other: &CoordinateSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CoordinateSpec
impl Serialize for CoordinateSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CoordinateSpec
Auto Trait Implementations§
impl Freeze for CoordinateSpec
impl RefUnwindSafe for CoordinateSpec
impl Send for CoordinateSpec
impl Sync for CoordinateSpec
impl Unpin for CoordinateSpec
impl UnsafeUnpin for CoordinateSpec
impl UnwindSafe for CoordinateSpec
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