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.
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
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.
impl NumericInput for NumericValues
impl NumericSeriesInput for NumericValues
Auto Trait Implementations§
impl Forget for NumericValues
impl Freeze for NumericValues
impl Move for NumericValues
impl RefUnwindSafe for NumericValues
impl Send for NumericValues
impl Sync for NumericValues
impl Unpin for NumericValues
impl UnsafeUnpin for NumericValues
impl UnwindSafe for NumericValues
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
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.