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
Trait Implementations§
Auto Trait Implementations§
impl Forget for Value
impl Freeze for Value
impl Move for Value
impl RefUnwindSafe for Value
impl Send for Valuewhere
RawVecInner: Send,
impl Sync for Valuewhere
RawVecInner: Sync,
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Valuewhere
RawVecInner: UnwindSafe,
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
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