Enum polars_arrow::datatypes::IntervalUnit
source · pub enum IntervalUnit {
YearMonth,
DayTime,
MonthDayNano,
}
Expand description
Interval units defined in Arrow
Variants§
YearMonth
The number of elapsed whole months.
DayTime
The number of elapsed days and milliseconds,
stored as 2 contiguous i32
MonthDayNano
The number of elapsed months (i32), days (i32) and nanoseconds (i64).
Trait Implementations§
source§impl Clone for IntervalUnit
impl Clone for IntervalUnit
source§fn clone(&self) -> IntervalUnit
fn clone(&self) -> IntervalUnit
Returns a copy of the value. Read more
1.0.0 · 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 IntervalUnit
impl Debug for IntervalUnit
source§impl From<IntervalUnit> for IntervalUnit
impl From<IntervalUnit> for IntervalUnit
source§fn from(value: IntervalUnit) -> Self
fn from(value: IntervalUnit) -> Self
Converts to this type from the input type.
source§impl From<IntervalUnit> for IntervalUnit
impl From<IntervalUnit> for IntervalUnit
source§fn from(value: IntervalUnit) -> Self
fn from(value: IntervalUnit) -> Self
Converts to this type from the input type.
source§impl Hash for IntervalUnit
impl Hash for IntervalUnit
source§impl PartialEq for IntervalUnit
impl PartialEq for IntervalUnit
source§fn eq(&self, other: &IntervalUnit) -> bool
fn eq(&self, other: &IntervalUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IntervalUnit
impl Eq for IntervalUnit
impl StructuralPartialEq for IntervalUnit
Auto Trait Implementations§
impl Freeze for IntervalUnit
impl RefUnwindSafe for IntervalUnit
impl Send for IntervalUnit
impl Sync for IntervalUnit
impl Unpin for IntervalUnit
impl UnwindSafe for IntervalUnit
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.