pub struct DataCoordinate(/* private fields */);Expand description
A raw scientific coordinate. Category and series names are never aliases.
Implementations§
Source§impl DataCoordinate
impl DataCoordinate
Sourcepub fn numeric(value: f64) -> Result<DataCoordinate, Error>
pub fn numeric(value: f64) -> Result<DataCoordinate, Error>
A finite numeric data value, transformed by the actual scientific scale.
Sourcepub fn category(raw: impl Into<String>) -> DataCoordinate
pub fn category(raw: impl Into<String>) -> DataCoordinate
An exact raw category identity, resolved against the actual local domain.
Sourcepub fn category_series(
category: impl Into<String>,
series: impl Into<String>,
) -> DataCoordinate
pub fn category_series( category: impl Into<String>, series: impl Into<String>, ) -> DataCoordinate
An exact raw category and positioned-series identity.
Sourcepub const fn get_numeric_value(&self) -> Option<f64>
pub const fn get_numeric_value(&self) -> Option<f64>
Numeric payload, absent for category references.
Sourcepub fn get_category_value(&self) -> Option<&str>
pub fn get_category_value(&self) -> Option<&str>
Borrow the raw category of an unqualified category reference.
Sourcepub fn get_category_series_value(&self) -> Option<(&str, &str)>
pub fn get_category_series_value(&self) -> Option<(&str, &str)>
Borrow the exact raw category and positioned-series identities.
Trait Implementations§
Source§impl Clone for DataCoordinate
impl Clone for DataCoordinate
Source§fn clone(&self) -> DataCoordinate
fn clone(&self) -> DataCoordinate
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 DataCoordinate
impl Debug for DataCoordinate
impl Eq for DataCoordinate
Source§impl PartialEq for DataCoordinate
impl PartialEq for DataCoordinate
impl StructuralPartialEq for DataCoordinate
Auto Trait Implementations§
impl Forget for DataCoordinate
impl Freeze for DataCoordinate
impl Move for DataCoordinate
impl RefUnwindSafe for DataCoordinate
impl Send for DataCoordinatewhere
RawVecInner: Send,
impl Sync for DataCoordinatewhere
RawVecInner: Sync,
impl Unpin for DataCoordinate
impl UnsafeUnpin for DataCoordinate
impl UnwindSafe for DataCoordinatewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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
Compare self to
key and return true if they are equal.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
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.