pub struct NumericValues { /* private fields */ }Expand description
Named nullable numeric values stored as immutable native f64 data.
Implementations§
Source§impl NumericValues
impl NumericValues
Sourcepub fn new(
name: impl Into<String>,
values: impl IntoIterator<Item = f64>,
) -> Self
pub fn new( name: impl Into<String>, values: impl IntoIterator<Item = f64>, ) -> Self
Construct complete numeric values.
Sourcepub fn nullable(
name: impl Into<String>,
values: impl IntoIterator<Item = Option<f64>>,
) -> Self
pub fn nullable( name: impl Into<String>, values: impl IntoIterator<Item = Option<f64>>, ) -> Self
Construct nullable numeric values without conflating nulls with NaN.
Sourcepub fn get(&self, row: usize) -> Option<Option<f64>>
pub fn get(&self, row: usize) -> Option<Option<f64>>
Read one original numeric slot; outer None is out of bounds, and inner None is missing. Present NaN, infinity and signed zero are retained.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = Option<f64>> + '_
pub fn iter(&self) -> impl ExactSizeIterator<Item = Option<f64>> + '_
Iterate the original slots, including missing entries.
Trait Implementations§
Source§impl Clone for NumericValues
impl Clone for NumericValues
Source§impl Debug for NumericValues
impl Debug for NumericValues
impl Eq for NumericValues
Source§impl From<NumericValues> for AxisValues
impl From<NumericValues> for AxisValues
Source§fn from(values: NumericValues) -> Self
fn from(values: NumericValues) -> Self
Converts to this type from the input type.
Source§impl From<NumericValues> for ColorSource
impl From<NumericValues> for ColorSource
Source§fn from(values: NumericValues) -> Self
fn from(values: NumericValues) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NumericValues
impl PartialEq for NumericValues
Source§impl TryFrom<NumericValues> for AlphaValues
impl TryFrom<NumericValues> for AlphaValues
Auto Trait Implementations§
impl Forget for NumericValues
impl Freeze for NumericValueswhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<[f64]> is !null: Freeze,
PhantomData<ArcInner<[f64]>>: Freeze,
*const ArcInner<[u64]> is !null: Freeze,
PhantomData<ArcInner<[u64]>>: Freeze,
*const ArcInner<(RawKey, Arc<str>)> is !null: Freeze,
PhantomData<ArcInner<(RawKey, Arc<str>)>>: Freeze,
*const ArcInner<SourceInfo> is !null: Freeze,
PhantomData<ArcInner<SourceInfo>>: Freeze,
*const ArcInner<SourceProjection> is !null: Freeze,
PhantomData<ArcInner<SourceProjection>>: Freeze,
impl Move for NumericValues
impl RefUnwindSafe for NumericValues
impl Send for NumericValues
impl Sync for NumericValues
impl Unpin for NumericValues
impl UnsafeUnpin for NumericValueswhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[f64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[f64]>>: UnsafeUnpin,
*const ArcInner<[u64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u64]>>: UnsafeUnpin,
*const ArcInner<(RawKey, Arc<str>)> is !null: UnsafeUnpin,
PhantomData<ArcInner<(RawKey, Arc<str>)>>: UnsafeUnpin,
*const ArcInner<SourceInfo> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceInfo>>: UnsafeUnpin,
*const ArcInner<SourceProjection> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceProjection>>: UnsafeUnpin,
impl UnwindSafe for NumericValueswhere
Arc<str>: UnwindSafe,
Arc<[f64]>: UnwindSafe,
Arc<[u64]>: UnwindSafe,
Arc<(RawKey, Arc<str>)>: UnwindSafe,
Arc<SourceInfo>: UnwindSafe,
Arc<SourceProjection>: 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.