pub enum Value {
Float(f64),
Integer(i64),
Str(String),
Bool(bool),
DateTime(i64),
Na,
}Expand description
Dynamic value type for DataFrame columns.
Variants§
Float(f64)
Integer(i64)
Str(String)
Bool(bool)
DateTime(i64)
Seconds since Unix epoch (1970-01-01 00:00:00 UTC).
Na
Implementations§
Source§impl Value
impl Value
Sourcepub fn is_datetime(&self) -> bool
pub fn is_datetime(&self) -> bool
Check if this is a DateTime value.
Sourcepub fn from_timestamp(secs: i64) -> Self
pub fn from_timestamp(secs: i64) -> Self
Create a DateTime from seconds since Unix epoch.
Sourcepub fn to_group_key(&self) -> String
pub fn to_group_key(&self) -> String
Convert to a string for display/grouping purposes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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,
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