pub enum DecodedColumn {
I64(Vec<i64>),
U64(Vec<u64>),
F64(Vec<f64>),
Bool(Vec<bool>),
String(Vec<String>),
Decimal(Vec<i128>),
NullableI64(Vec<Option<i64>>),
NullableU64(Vec<Option<u64>>),
NullableF64(Vec<Option<f64>>),
NullableBool(Vec<Option<bool>>),
NullableString(Vec<Option<String>>),
NullableDecimal(Vec<Option<i128>>),
}Expand description
Typed column values returned by ColumnDecoder.
Each variant wraps a Vec of the corresponding Rust type. Nullable
variants use Option<T> where None represents a null value.
Has a custom PartialEq implementation that uses bitwise comparison
for f64 values so that NaN == NaN holds.
Variants§
I64(Vec<i64>)
Signed 64-bit integers (timestamps or i64 fields).
U64(Vec<u64>)
Unsigned 64-bit integers.
F64(Vec<f64>)
64-bit floating point values.
Bool(Vec<bool>)
Boolean values.
String(Vec<String>)
UTF-8 string values.
Decimal(Vec<i128>)
Exact decimal mantissas — mantissa × 10⁻ˢᶜᵃˡᵉ, with the scale held
by the column rather than by each value.
NullableI64(Vec<Option<i64>>)
Nullable signed 64-bit integers.
NullableU64(Vec<Option<u64>>)
Nullable unsigned 64-bit integers.
NullableF64(Vec<Option<f64>>)
Nullable 64-bit floating point values.
NullableBool(Vec<Option<bool>>)
Nullable boolean values.
NullableString(Vec<Option<String>>)
Nullable UTF-8 string values.
NullableDecimal(Vec<Option<i128>>)
Nullable decimal mantissas.
Implementations§
Trait Implementations§
Source§impl Clone for DecodedColumn
impl Clone for DecodedColumn
Source§fn clone(&self) -> DecodedColumn
fn clone(&self) -> DecodedColumn
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 DecodedColumn
impl Debug for DecodedColumn
Auto Trait Implementations§
impl Freeze for DecodedColumn
impl RefUnwindSafe for DecodedColumn
impl Send for DecodedColumn
impl Sync for DecodedColumn
impl Unpin for DecodedColumn
impl UnsafeUnpin for DecodedColumn
impl UnwindSafe for DecodedColumn
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