#[repr(C)]pub struct IntervalDayTime {
pub days: i32,
pub milliseconds: i32,
}
Expand description
Value of an IntervalDayTime array
§Representation
This type is stored as a single 64 bit integer, interpreted as two i32 fields:
- the number of elapsed days
- The number of milliseconds (no leap seconds),
┌──────────────┬──────────────┐
│ Days │ Milliseconds │
│ (32 bits) │ (32 bits) │
└──────────────┴──────────────┘
0 31 63 bit offset
Please see the Arrow Spec for more details
§Note on Comparing and Ordering for Calendar Types
Values of IntervalDayTime
are compared using their binary representation,
which can lead to surprising results. Please see the description of ordering on
IntervalMonthDayNano
for more details
Fields§
§days: i32
Number of days
milliseconds: i32
Number of milliseconds
Implementations§
Source§impl IntervalDayTime
impl IntervalDayTime
Sourcepub const fn new(days: i32, milliseconds: i32) -> Self
pub const fn new(days: i32, milliseconds: i32) -> Self
Create a new IntervalDayTime
Sourcepub fn wrapping_abs(self) -> Self
pub fn wrapping_abs(self) -> Self
Computes the absolute value
Sourcepub fn checked_abs(self) -> Option<Self>
pub fn checked_abs(self) -> Option<Self>
Computes the absolute value
Sourcepub fn wrapping_neg(self) -> Self
pub fn wrapping_neg(self) -> Self
Negates the value
Sourcepub fn checked_neg(self) -> Option<Self>
pub fn checked_neg(self) -> Option<Self>
Negates the value
Sourcepub fn wrapping_add(self, other: Self) -> Self
pub fn wrapping_add(self, other: Self) -> Self
Performs wrapping addition
Sourcepub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add(self, other: Self) -> Option<Self>
Performs checked addition
Sourcepub fn wrapping_sub(self, other: Self) -> Self
pub fn wrapping_sub(self, other: Self) -> Self
Performs wrapping subtraction
Sourcepub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
Performs checked subtraction
Sourcepub fn wrapping_mul(self, other: Self) -> Self
pub fn wrapping_mul(self, other: Self) -> Self
Performs wrapping multiplication
Sourcepub fn checked_mul(self, other: Self) -> Option<Self>
pub fn checked_mul(self, other: Self) -> Option<Self>
Performs checked multiplication
Sourcepub fn wrapping_div(self, other: Self) -> Self
pub fn wrapping_div(self, other: Self) -> Self
Performs wrapping division
Sourcepub fn checked_div(self, other: Self) -> Option<Self>
pub fn checked_div(self, other: Self) -> Option<Self>
Performs checked division
Sourcepub fn wrapping_rem(self, other: Self) -> Self
pub fn wrapping_rem(self, other: Self) -> Self
Performs wrapping remainder
Sourcepub fn checked_rem(self, other: Self) -> Option<Self>
pub fn checked_rem(self, other: Self) -> Option<Self>
Performs checked remainder
Sourcepub fn wrapping_pow(self, exp: u32) -> Self
pub fn wrapping_pow(self, exp: u32) -> Self
Performs wrapping exponentiation
Sourcepub fn checked_pow(self, exp: u32) -> Option<Self>
pub fn checked_pow(self, exp: u32) -> Option<Self>
Performs checked exponentiation
Trait Implementations§
Source§impl<'a, 'b> Add<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Add<&'b IntervalDayTime> for &'a IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
+
operator.Source§impl<'a> Add<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Add<&'a IntervalDayTime> for IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
+
operator.Source§impl<'a> Add<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Add<IntervalDayTime> for &'a IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
+
operator.Source§impl Add for IntervalDayTime
impl Add for IntervalDayTime
Source§impl AddAssign for IntervalDayTime
impl AddAssign for IntervalDayTime
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl ArrowNativeType for IntervalDayTime
impl ArrowNativeType for IntervalDayTime
Source§fn get_byte_width() -> usize
fn get_byte_width() -> usize
Source§impl Clone for IntervalDayTime
impl Clone for IntervalDayTime
Source§fn clone(&self) -> IntervalDayTime
fn clone(&self) -> IntervalDayTime
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IntervalDayTime
impl Debug for IntervalDayTime
Source§impl Default for IntervalDayTime
impl Default for IntervalDayTime
Source§fn default() -> IntervalDayTime
fn default() -> IntervalDayTime
Source§impl<'a, 'b> Div<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Div<&'b IntervalDayTime> for &'a IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
/
operator.Source§impl<'a> Div<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Div<&'a IntervalDayTime> for IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
/
operator.Source§impl<'a> Div<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Div<IntervalDayTime> for &'a IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
/
operator.Source§impl Div for IntervalDayTime
impl Div for IntervalDayTime
Source§impl DivAssign for IntervalDayTime
impl DivAssign for IntervalDayTime
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl Hash for IntervalDayTime
impl Hash for IntervalDayTime
Source§impl<'a, 'b> Mul<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Mul<&'b IntervalDayTime> for &'a IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
*
operator.Source§impl<'a> Mul<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Mul<&'a IntervalDayTime> for IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
*
operator.Source§impl<'a> Mul<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Mul<IntervalDayTime> for &'a IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
*
operator.Source§impl Mul for IntervalDayTime
impl Mul for IntervalDayTime
Source§impl MulAssign for IntervalDayTime
impl MulAssign for IntervalDayTime
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl Neg for IntervalDayTime
impl Neg for IntervalDayTime
Source§impl Ord for IntervalDayTime
impl Ord for IntervalDayTime
Source§fn cmp(&self, other: &IntervalDayTime) -> Ordering
fn cmp(&self, other: &IntervalDayTime) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for IntervalDayTime
impl PartialEq for IntervalDayTime
Source§impl PartialOrd for IntervalDayTime
impl PartialOrd for IntervalDayTime
Source§impl<'a, 'b> Rem<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Rem<&'b IntervalDayTime> for &'a IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
%
operator.Source§impl<'a> Rem<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Rem<&'a IntervalDayTime> for IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
%
operator.Source§impl<'a> Rem<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Rem<IntervalDayTime> for &'a IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
%
operator.Source§impl Rem for IntervalDayTime
impl Rem for IntervalDayTime
Source§impl RemAssign for IntervalDayTime
impl RemAssign for IntervalDayTime
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl<'a, 'b> Sub<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Sub<&'b IntervalDayTime> for &'a IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
-
operator.Source§impl<'a> Sub<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Sub<&'a IntervalDayTime> for IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
-
operator.Source§impl<'a> Sub<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Sub<IntervalDayTime> for &'a IntervalDayTime
Source§type Output = IntervalDayTime
type Output = IntervalDayTime
-
operator.Source§impl Sub for IntervalDayTime
impl Sub for IntervalDayTime
Source§impl SubAssign for IntervalDayTime
impl SubAssign for IntervalDayTime
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more