#[non_exhaustive]pub enum ColumnValues {
Float(Arc<[f64]>),
Int(Arc<[i64]>),
Bool(Arc<[bool]>),
Text(Arc<[String]>),
Date(Arc<[i64]>),
Time(Arc<[i64]>),
Category(Arc<[String]>),
}Available on crate feature
data only.Expand description
The storage of one column. Strings are shared with Arc<[String]>, so a clone is
cheap and a derived column can keep the same backing storage.
§Example
use crisol_core::data::ColumnValues;Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Float(Arc<[f64]>)
Floats.
Int(Arc<[i64]>)
Integers.
Bool(Arc<[bool]>)
Booleans.
Text(Arc<[String]>)
Text.
Date(Arc<[i64]>)
Dates as days since the epoch.
Time(Arc<[i64]>)
Times as nanoseconds since the epoch.
Category(Arc<[String]>)
Categories as text.
Implementations§
Trait Implementations§
Source§impl Clone for ColumnValues
impl Clone for ColumnValues
Source§impl Debug for ColumnValues
impl Debug for ColumnValues
Source§impl<'de> Deserialize<'de> for ColumnValues
impl<'de> Deserialize<'de> for ColumnValues
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
Source§impl PartialEq for ColumnValues
impl PartialEq for ColumnValues
Source§impl Serialize for ColumnValues
impl Serialize for ColumnValues
impl StructuralPartialEq for ColumnValues
Auto Trait Implementations§
impl Forget for ColumnValues
impl Freeze for ColumnValueswhere
*const ArcInner<[f64]> is !null: Freeze,
PhantomData<ArcInner<[f64]>>: Freeze,
*const ArcInner<[i64]> is !null: Freeze,
PhantomData<ArcInner<[i64]>>: Freeze,
*const ArcInner<[bool]> is !null: Freeze,
PhantomData<ArcInner<[bool]>>: Freeze,
*const ArcInner<[String]> is !null: Freeze,
PhantomData<ArcInner<[String]>>: Freeze,
impl Move for ColumnValues
impl RefUnwindSafe for ColumnValues
impl Send for ColumnValues
impl Sync for ColumnValues
impl Unpin for ColumnValues
impl UnsafeUnpin for ColumnValueswhere
*const ArcInner<[f64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[f64]>>: UnsafeUnpin,
*const ArcInner<[i64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[i64]>>: UnsafeUnpin,
*const ArcInner<[bool]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[bool]>>: UnsafeUnpin,
*const ArcInner<[String]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[String]>>: UnsafeUnpin,
impl UnwindSafe for ColumnValueswhere
Arc<[f64]>: UnwindSafe,
Arc<[i64]>: UnwindSafe,
Arc<[bool]>: UnwindSafe,
Arc<[String]>: UnwindSafe,
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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