pub struct Float64Column { /* private fields */ }Expand description
A column of f64 values where any non-finite value (NaN, ±inf) is a
gap. Reading a gap gives None.
Implementations§
Source§impl Float64Column
impl Float64Column
Sourcepub fn from_values(values: Vec<f64>) -> Self
pub fn from_values(values: Vec<f64>) -> Self
Build from raw values; non-finite values become gaps.
Sourcepub fn from_options(values: impl IntoIterator<Item = Option<f64>>) -> Self
pub fn from_options(values: impl IntoIterator<Item = Option<f64>>) -> Self
Build from optional values; None is a gap.
Sourcepub fn get(&self, i: usize) -> Option<f64>
pub fn get(&self, i: usize) -> Option<f64>
The value at i, or None for a gap. Panics if i is out of range.
Sourcepub fn all_finite(&self) -> bool
pub fn all_finite(&self) -> bool
True when the column has no gaps.
Sourcepub fn missing_count(&self) -> usize
pub fn missing_count(&self) -> usize
Number of gaps.
Trait Implementations§
Source§impl Clone for Float64Column
impl Clone for Float64Column
Source§impl Debug for Float64Column
impl Debug for Float64Column
Source§impl From<Float64Column> for ColumnData
impl From<Float64Column> for ColumnData
Source§fn from(c: Float64Column) -> Self
fn from(c: Float64Column) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Float64Column
Two number columns are equal when they hold the same values, bit for bit
(so -0.0 and 0.0 differ), and gaps in the same rows, however each gap
is stored (NaN or an infinity).
impl PartialEq for Float64Column
Two number columns are equal when they hold the same values, bit for bit
(so -0.0 and 0.0 differ), and gaps in the same rows, however each gap
is stored (NaN or an infinity).
Auto Trait Implementations§
impl Freeze for Float64Column
impl RefUnwindSafe for Float64Column
impl Send for Float64Column
impl Sync for Float64Column
impl Unpin for Float64Column
impl UnsafeUnpin for Float64Column
impl UnwindSafe for Float64Column
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more