pub enum ColumnData {
Integer {
validity: Bitmask,
values: SharedVec<i64>,
},
Float {
validity: Bitmask,
values: SharedVec<f64>,
},
Any(SharedVec<ResultData>),
}Expand description
A column of computed values
Variants§
Integer
All-integer, or integer-and-blank.
Fields
Float
Numeric with at least one non-integer, or integer-and-blank promoted.
Fields
Any(SharedVec<ResultData>)
Mixed: anything the numeric representations cannot hold – text, booleans, errors.
Implementations§
Source§impl ColumnData
impl ColumnData
Sourcepub fn get(&self, index: usize) -> Option<ResultData>
pub fn get(&self, index: usize) -> Option<ResultData>
The value at index, or None if that is past the end.
A blank within the column’s range reads as
Some(ResultData::None), which is what distinguishes it from an
out-of-range index.
Trait Implementations§
Source§impl Clone for ColumnData
impl Clone for ColumnData
Source§fn clone(&self) -> ColumnData
fn clone(&self) -> ColumnData
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 ColumnData
impl Debug for ColumnData
Source§impl Default for ColumnData
impl Default for ColumnData
Source§impl<'de> Deserialize<'de> for ColumnData
impl<'de> Deserialize<'de> for ColumnData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ColumnData
impl RefUnwindSafe for ColumnData
impl Send for ColumnData
impl Sync for ColumnData
impl Unpin for ColumnData
impl UnsafeUnpin for ColumnData
impl UnwindSafe 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