Struct IntervalDayTime
#[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§
§impl IntervalDayTime
impl IntervalDayTime
pub const ZERO: IntervalDayTime = _
pub const ZERO: IntervalDayTime = _
The additive identity i.e. 0
.
pub const ONE: IntervalDayTime = _
pub const ONE: IntervalDayTime = _
The multiplicative identity, i.e. 1
.
pub const MINUS_ONE: IntervalDayTime = _
pub const MINUS_ONE: IntervalDayTime = _
The multiplicative inverse, i.e. -1
.
pub const MAX: IntervalDayTime = _
pub const MAX: IntervalDayTime = _
The maximum value that can be represented
pub const MIN: IntervalDayTime = _
pub const MIN: IntervalDayTime = _
The minimum value that can be represented
pub const fn new(days: i32, milliseconds: i32) -> IntervalDayTime
pub const fn new(days: i32, milliseconds: i32) -> IntervalDayTime
Create a new IntervalDayTime
pub fn wrapping_abs(self) -> IntervalDayTime
pub fn wrapping_abs(self) -> IntervalDayTime
Computes the absolute value
pub fn checked_abs(self) -> Option<IntervalDayTime>
pub fn checked_abs(self) -> Option<IntervalDayTime>
Computes the absolute value
pub fn wrapping_neg(self) -> IntervalDayTime
pub fn wrapping_neg(self) -> IntervalDayTime
Negates the value
pub fn checked_neg(self) -> Option<IntervalDayTime>
pub fn checked_neg(self) -> Option<IntervalDayTime>
Negates the value
pub fn wrapping_add(self, other: IntervalDayTime) -> IntervalDayTime
pub fn wrapping_add(self, other: IntervalDayTime) -> IntervalDayTime
Performs wrapping addition
pub fn checked_add(self, other: IntervalDayTime) -> Option<IntervalDayTime>
pub fn checked_add(self, other: IntervalDayTime) -> Option<IntervalDayTime>
Performs checked addition
pub fn wrapping_sub(self, other: IntervalDayTime) -> IntervalDayTime
pub fn wrapping_sub(self, other: IntervalDayTime) -> IntervalDayTime
Performs wrapping subtraction
pub fn checked_sub(self, other: IntervalDayTime) -> Option<IntervalDayTime>
pub fn checked_sub(self, other: IntervalDayTime) -> Option<IntervalDayTime>
Performs checked subtraction
pub fn wrapping_mul(self, other: IntervalDayTime) -> IntervalDayTime
pub fn wrapping_mul(self, other: IntervalDayTime) -> IntervalDayTime
Performs wrapping multiplication
pub fn checked_mul(self, other: IntervalDayTime) -> Option<IntervalDayTime>
pub fn checked_mul(self, other: IntervalDayTime) -> Option<IntervalDayTime>
Performs checked multiplication
pub fn wrapping_div(self, other: IntervalDayTime) -> IntervalDayTime
pub fn wrapping_div(self, other: IntervalDayTime) -> IntervalDayTime
Performs wrapping division
pub fn checked_div(self, other: IntervalDayTime) -> Option<IntervalDayTime>
pub fn checked_div(self, other: IntervalDayTime) -> Option<IntervalDayTime>
Performs checked division
pub fn wrapping_rem(self, other: IntervalDayTime) -> IntervalDayTime
pub fn wrapping_rem(self, other: IntervalDayTime) -> IntervalDayTime
Performs wrapping remainder
pub fn checked_rem(self, other: IntervalDayTime) -> Option<IntervalDayTime>
pub fn checked_rem(self, other: IntervalDayTime) -> Option<IntervalDayTime>
Performs checked remainder
pub fn wrapping_pow(self, exp: u32) -> IntervalDayTime
pub fn wrapping_pow(self, exp: u32) -> IntervalDayTime
Performs wrapping exponentiation
pub fn checked_pow(self, exp: u32) -> Option<IntervalDayTime>
pub fn checked_pow(self, exp: u32) -> Option<IntervalDayTime>
Performs checked exponentiation
Trait Implementations§
§impl<'a, 'b> Add<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Add<&'b IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
+
operator.§fn add(
self,
rhs: &'b IntervalDayTime,
) -> <&'a IntervalDayTime as Add<&'b IntervalDayTime>>::Output
fn add( self, rhs: &'b IntervalDayTime, ) -> <&'a IntervalDayTime as Add<&'b IntervalDayTime>>::Output
+
operation. Read more§impl<'a> Add<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Add<&'a IntervalDayTime> for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
+
operator.§fn add(
self,
rhs: &'a IntervalDayTime,
) -> <IntervalDayTime as Add<&'a IntervalDayTime>>::Output
fn add( self, rhs: &'a IntervalDayTime, ) -> <IntervalDayTime as Add<&'a IntervalDayTime>>::Output
+
operation. Read more§impl<'a> Add<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Add<IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
+
operator.§fn add(
self,
rhs: IntervalDayTime,
) -> <&'a IntervalDayTime as Add<IntervalDayTime>>::Output
fn add( self, rhs: IntervalDayTime, ) -> <&'a IntervalDayTime as Add<IntervalDayTime>>::Output
+
operation. Read more§impl Add for IntervalDayTime
impl Add for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
+
operator.§fn add(self, rhs: IntervalDayTime) -> <IntervalDayTime as Add>::Output
fn add(self, rhs: IntervalDayTime) -> <IntervalDayTime as Add>::Output
+
operation. Read more§impl AddAssign for IntervalDayTime
impl AddAssign for IntervalDayTime
§fn add_assign(&mut self, rhs: IntervalDayTime)
fn add_assign(&mut self, rhs: IntervalDayTime)
+=
operation. Read more§impl ArrowNativeType for IntervalDayTime
impl ArrowNativeType for IntervalDayTime
§fn from_usize(_: usize) -> Option<IntervalDayTime>
fn from_usize(_: usize) -> Option<IntervalDayTime>
§fn usize_as(i: usize) -> IntervalDayTime
fn usize_as(i: usize) -> IntervalDayTime
as
operator§fn get_byte_width() -> usize
fn get_byte_width() -> usize
§fn from_i32(_: i32) -> Option<Self>
fn from_i32(_: i32) -> Option<Self>
Option::Some
insteadSource§impl ArrowNativeTypeOp for IntervalDayTime
impl ArrowNativeTypeOp for IntervalDayTime
Source§const MIN_TOTAL_ORDER: Self = IntervalDayTime::MIN
const MIN_TOTAL_ORDER: Self = IntervalDayTime::MIN
max
aggregation.
Note that the aggregation uses the total order predicate for floating point values,
which means that this value is a negative NaN.Source§const MAX_TOTAL_ORDER: Self = IntervalDayTime::MAX
const MAX_TOTAL_ORDER: Self = IntervalDayTime::MAX
min
aggregation.
Note that the aggregation uses the total order predicate for floating point values,
which means that this value is a positive NaN.Source§fn add_checked(self, rhs: Self) -> Result<Self, ArrowError>
fn add_checked(self, rhs: Self) -> Result<Self, ArrowError>
Source§fn add_wrapping(self, rhs: Self) -> Self
fn add_wrapping(self, rhs: Self) -> Self
Source§fn sub_checked(self, rhs: Self) -> Result<Self, ArrowError>
fn sub_checked(self, rhs: Self) -> Result<Self, ArrowError>
Source§fn sub_wrapping(self, rhs: Self) -> Self
fn sub_wrapping(self, rhs: Self) -> Self
Source§fn mul_checked(self, rhs: Self) -> Result<Self, ArrowError>
fn mul_checked(self, rhs: Self) -> Result<Self, ArrowError>
Source§fn mul_wrapping(self, rhs: Self) -> Self
fn mul_wrapping(self, rhs: Self) -> Self
Source§fn div_checked(self, rhs: Self) -> Result<Self, ArrowError>
fn div_checked(self, rhs: Self) -> Result<Self, ArrowError>
Source§fn div_wrapping(self, rhs: Self) -> Self
fn div_wrapping(self, rhs: Self) -> Self
Source§fn mod_checked(self, rhs: Self) -> Result<Self, ArrowError>
fn mod_checked(self, rhs: Self) -> Result<Self, ArrowError>
Source§fn mod_wrapping(self, rhs: Self) -> Self
fn mod_wrapping(self, rhs: Self) -> Self
Source§fn neg_checked(self) -> Result<Self, ArrowError>
fn neg_checked(self) -> Result<Self, ArrowError>
Source§fn pow_checked(self, exp: u32) -> Result<Self, ArrowError>
fn pow_checked(self, exp: u32) -> Result<Self, ArrowError>
Source§fn pow_wrapping(self, exp: u32) -> Self
fn pow_wrapping(self, exp: u32) -> Self
Source§fn neg_wrapping(self) -> Self
fn neg_wrapping(self) -> Self
§impl Clone for IntervalDayTime
impl Clone for IntervalDayTime
§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 more§impl Debug for IntervalDayTime
impl Debug for IntervalDayTime
§impl Default for IntervalDayTime
impl Default for IntervalDayTime
§fn default() -> IntervalDayTime
fn default() -> IntervalDayTime
§impl<'a, 'b> Div<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Div<&'b IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
/
operator.§fn div(
self,
rhs: &'b IntervalDayTime,
) -> <&'a IntervalDayTime as Div<&'b IntervalDayTime>>::Output
fn div( self, rhs: &'b IntervalDayTime, ) -> <&'a IntervalDayTime as Div<&'b IntervalDayTime>>::Output
/
operation. Read more§impl<'a> Div<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Div<&'a IntervalDayTime> for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
/
operator.§fn div(
self,
rhs: &'a IntervalDayTime,
) -> <IntervalDayTime as Div<&'a IntervalDayTime>>::Output
fn div( self, rhs: &'a IntervalDayTime, ) -> <IntervalDayTime as Div<&'a IntervalDayTime>>::Output
/
operation. Read more§impl<'a> Div<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Div<IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
/
operator.§fn div(
self,
rhs: IntervalDayTime,
) -> <&'a IntervalDayTime as Div<IntervalDayTime>>::Output
fn div( self, rhs: IntervalDayTime, ) -> <&'a IntervalDayTime as Div<IntervalDayTime>>::Output
/
operation. Read more§impl Div for IntervalDayTime
impl Div for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
/
operator.§fn div(self, rhs: IntervalDayTime) -> <IntervalDayTime as Div>::Output
fn div(self, rhs: IntervalDayTime) -> <IntervalDayTime as Div>::Output
/
operation. Read more§impl DivAssign for IntervalDayTime
impl DivAssign for IntervalDayTime
§fn div_assign(&mut self, rhs: IntervalDayTime)
fn div_assign(&mut self, rhs: IntervalDayTime)
/=
operation. Read more§impl Hash for IntervalDayTime
impl Hash for IntervalDayTime
§impl<'a, 'b> Mul<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Mul<&'b IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
*
operator.§fn mul(
self,
rhs: &'b IntervalDayTime,
) -> <&'a IntervalDayTime as Mul<&'b IntervalDayTime>>::Output
fn mul( self, rhs: &'b IntervalDayTime, ) -> <&'a IntervalDayTime as Mul<&'b IntervalDayTime>>::Output
*
operation. Read more§impl<'a> Mul<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Mul<&'a IntervalDayTime> for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
*
operator.§fn mul(
self,
rhs: &'a IntervalDayTime,
) -> <IntervalDayTime as Mul<&'a IntervalDayTime>>::Output
fn mul( self, rhs: &'a IntervalDayTime, ) -> <IntervalDayTime as Mul<&'a IntervalDayTime>>::Output
*
operation. Read more§impl<'a> Mul<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Mul<IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
*
operator.§fn mul(
self,
rhs: IntervalDayTime,
) -> <&'a IntervalDayTime as Mul<IntervalDayTime>>::Output
fn mul( self, rhs: IntervalDayTime, ) -> <&'a IntervalDayTime as Mul<IntervalDayTime>>::Output
*
operation. Read more§impl Mul for IntervalDayTime
impl Mul for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
*
operator.§fn mul(self, rhs: IntervalDayTime) -> <IntervalDayTime as Mul>::Output
fn mul(self, rhs: IntervalDayTime) -> <IntervalDayTime as Mul>::Output
*
operation. Read more§impl MulAssign for IntervalDayTime
impl MulAssign for IntervalDayTime
§fn mul_assign(&mut self, rhs: IntervalDayTime)
fn mul_assign(&mut self, rhs: IntervalDayTime)
*=
operation. Read more§impl Neg for IntervalDayTime
impl Neg for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
-
operator.§impl Ord for IntervalDayTime
impl Ord for IntervalDayTime
§impl PartialEq for IntervalDayTime
impl PartialEq for IntervalDayTime
§impl PartialOrd for IntervalDayTime
impl PartialOrd for IntervalDayTime
§impl<'a, 'b> Rem<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Rem<&'b IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
%
operator.§fn rem(
self,
rhs: &'b IntervalDayTime,
) -> <&'a IntervalDayTime as Rem<&'b IntervalDayTime>>::Output
fn rem( self, rhs: &'b IntervalDayTime, ) -> <&'a IntervalDayTime as Rem<&'b IntervalDayTime>>::Output
%
operation. Read more§impl<'a> Rem<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Rem<&'a IntervalDayTime> for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
%
operator.§fn rem(
self,
rhs: &'a IntervalDayTime,
) -> <IntervalDayTime as Rem<&'a IntervalDayTime>>::Output
fn rem( self, rhs: &'a IntervalDayTime, ) -> <IntervalDayTime as Rem<&'a IntervalDayTime>>::Output
%
operation. Read more§impl<'a> Rem<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Rem<IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
%
operator.§fn rem(
self,
rhs: IntervalDayTime,
) -> <&'a IntervalDayTime as Rem<IntervalDayTime>>::Output
fn rem( self, rhs: IntervalDayTime, ) -> <&'a IntervalDayTime as Rem<IntervalDayTime>>::Output
%
operation. Read more§impl Rem for IntervalDayTime
impl Rem for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
%
operator.§fn rem(self, rhs: IntervalDayTime) -> <IntervalDayTime as Rem>::Output
fn rem(self, rhs: IntervalDayTime) -> <IntervalDayTime as Rem>::Output
%
operation. Read more§impl RemAssign for IntervalDayTime
impl RemAssign for IntervalDayTime
§fn rem_assign(&mut self, rhs: IntervalDayTime)
fn rem_assign(&mut self, rhs: IntervalDayTime)
%=
operation. Read more§impl<'a, 'b> Sub<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Sub<&'b IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
-
operator.§fn sub(
self,
rhs: &'b IntervalDayTime,
) -> <&'a IntervalDayTime as Sub<&'b IntervalDayTime>>::Output
fn sub( self, rhs: &'b IntervalDayTime, ) -> <&'a IntervalDayTime as Sub<&'b IntervalDayTime>>::Output
-
operation. Read more§impl<'a> Sub<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Sub<&'a IntervalDayTime> for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
-
operator.§fn sub(
self,
rhs: &'a IntervalDayTime,
) -> <IntervalDayTime as Sub<&'a IntervalDayTime>>::Output
fn sub( self, rhs: &'a IntervalDayTime, ) -> <IntervalDayTime as Sub<&'a IntervalDayTime>>::Output
-
operation. Read more§impl<'a> Sub<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Sub<IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
-
operator.§fn sub(
self,
rhs: IntervalDayTime,
) -> <&'a IntervalDayTime as Sub<IntervalDayTime>>::Output
fn sub( self, rhs: IntervalDayTime, ) -> <&'a IntervalDayTime as Sub<IntervalDayTime>>::Output
-
operation. Read more§impl Sub for IntervalDayTime
impl Sub for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
-
operator.§fn sub(self, rhs: IntervalDayTime) -> <IntervalDayTime as Sub>::Output
fn sub(self, rhs: IntervalDayTime) -> <IntervalDayTime as Sub>::Output
-
operation. Read more§impl SubAssign for IntervalDayTime
impl SubAssign for IntervalDayTime
§fn sub_assign(&mut self, rhs: IntervalDayTime)
fn sub_assign(&mut self, rhs: IntervalDayTime)
-=
operation. Read moreimpl Copy for IntervalDayTime
impl Eq for IntervalDayTime
impl StructuralPartialEq for IntervalDayTime
Auto Trait Implementations§
impl Freeze for IntervalDayTime
impl RefUnwindSafe for IntervalDayTime
impl Send for IntervalDayTime
impl Sync for IntervalDayTime
impl Unpin for IntervalDayTime
impl UnwindSafe for IntervalDayTime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)