pub enum ColumnData {
Number(Float64Column),
Decimal(DecimalColumn),
String(StringColumn),
Boolean(BooleanColumn),
Array(ArrayColumn),
}Expand description
What a value column holds: numbers, exact decimals, text, true/false values, or arrays.
Variants§
Number(Float64Column)
Numbers (f64, NaN marks a gap).
Decimal(DecimalColumn)
Exact decimals.
String(StringColumn)
Text.
Boolean(BooleanColumn)
True/false values.
Array(ArrayColumn)
Arrays of scalars.
Implementations§
Source§impl ColumnData
impl ColumnData
Sourcepub fn missing_count(&self) -> usize
pub fn missing_count(&self) -> usize
Number of gaps.
Sourcepub fn is_present(&self, i: usize) -> bool
pub fn is_present(&self, i: usize) -> bool
True when row i holds a value. Panics if i is out of range.
Sourcepub fn kind(&self) -> ColumnKind
pub fn kind(&self) -> ColumnKind
What the column holds: ColumnKind::Number, Decimal, String,
Boolean or Array.
Trait Implementations§
Source§impl Clone for ColumnData
impl Clone for ColumnData
Source§impl Debug for ColumnData
impl Debug for ColumnData
Source§impl From<ArrayColumn> for ColumnData
impl From<ArrayColumn> for ColumnData
Source§fn from(c: ArrayColumn) -> Self
fn from(c: ArrayColumn) -> Self
Converts to this type from the input type.
Source§impl From<BooleanColumn> for ColumnData
impl From<BooleanColumn> for ColumnData
Source§fn from(c: BooleanColumn) -> Self
fn from(c: BooleanColumn) -> Self
Converts to this type from the input type.
Source§impl From<DecimalColumn> for ColumnData
impl From<DecimalColumn> for ColumnData
Source§fn from(c: DecimalColumn) -> Self
fn from(c: DecimalColumn) -> Self
Converts to this type from the input type.
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 From<StringColumn> for ColumnData
impl From<StringColumn> for ColumnData
Source§fn from(c: StringColumn) -> Self
fn from(c: StringColumn) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ColumnData
impl PartialEq for ColumnData
impl StructuralPartialEq for ColumnData
Auto Trait Implementations§
impl !RefUnwindSafe for ColumnData
impl !UnwindSafe for ColumnData
impl Freeze for ColumnData
impl Send for ColumnData
impl Sync for ColumnData
impl Unpin for ColumnData
impl UnsafeUnpin for ColumnData
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> 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