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>,
) -> NumericValues
pub fn new( name: impl Into<String>, values: impl IntoIterator<Item = f64>, ) -> NumericValues
Construct complete numeric values.
Sourcepub fn nullable(
name: impl Into<String>,
values: impl IntoIterator<Item = Option<f64>>,
) -> NumericValues
pub fn nullable( name: impl Into<String>, values: impl IntoIterator<Item = Option<f64>>, ) -> NumericValues
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
pub fn iter(&self) -> impl ExactSizeIterator
Iterate the original slots, including missing entries.
Trait Implementations§
impl AxisInput for NumericValues
Source§impl Clone for NumericValues
impl Clone for NumericValues
Source§fn clone(&self) -> NumericValues
fn clone(&self) -> NumericValues
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 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) -> AxisValues
fn from(values: NumericValues) -> AxisValues
Converts to this type from the input type.
Source§impl From<NumericValues> for ColorSource
impl From<NumericValues> for ColorSource
Source§fn from(values: NumericValues) -> ColorSource
fn from(values: NumericValues) -> ColorSource
Converts to this type from the input type.
impl NumericInput for NumericValues
impl NumericSeriesInput for NumericValues
Source§impl PartialEq for NumericValues
impl PartialEq for NumericValues
impl SignificanceMarks 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§
Source§impl<T> AlphaInput for Twhere
T: AlphaValuesInput,
impl<T> AlphaInput for Twhere
T: AlphaValuesInput,
fn bind_alpha( self, source: Option<&dyn ArraySource>, expected: Option<usize>, copies: usize, reference: Option<&DataSourceRef>, ) -> Result<AlphaEncoding, AdapterError>
Source§impl<T> AlphaValuesInput for Twhere
T: NumericInput,
impl<T> AlphaValuesInput for Twhere
T: NumericInput,
fn bind_alpha_values( self, source: Option<&dyn ArraySource>, reference: Option<&DataSourceRef>, ) -> Result<AlphaValues, AdapterError>
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<T> ColorSourceInput for Twhere
T: NumericInput,
impl<T> ColorSourceInput for Twhere
T: NumericInput,
fn bind_color_source( self, source: Option<&dyn ArraySource>, expected: usize, reference: Option<&DataSourceRef>, ) -> Result<ColorSource, AdapterError>
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.