Struct arrow_buffer::IntervalDayTime
source · #[repr(C)]pub struct IntervalDayTime {
pub days: i32,
pub milliseconds: i32,
}
Expand description
Value of an IntervalDayTime array
Fields§
§days: i32
§milliseconds: i32
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
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
+
operator.source§impl<'a> Add<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Add<&'a IntervalDayTime> for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
+
operator.source§impl<'a> Add<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Add<IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
+
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)
Performs the
+=
operation. Read moresource§impl ArrowNativeType for IntervalDayTime
impl ArrowNativeType for IntervalDayTime
source§fn get_byte_width() -> usize
fn get_byte_width() -> usize
Returns the byte width of this native type.
source§fn from_i32(_: i32) -> Option<Self>
fn from_i32(_: i32) -> Option<Self>
👎Deprecated: please use
Option::Some
insteadConvert native type from i32. Read more
source§impl Clone for IntervalDayTime
impl Clone for IntervalDayTime
source§fn clone(&self) -> IntervalDayTime
fn clone(&self) -> IntervalDayTime
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 IntervalDayTime
impl Debug for IntervalDayTime
source§impl Default for IntervalDayTime
impl Default for IntervalDayTime
source§fn default() -> IntervalDayTime
fn default() -> IntervalDayTime
Returns the “default value” for a type. Read more
source§impl<'a, 'b> Div<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Div<&'b IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
/
operator.source§impl<'a> Div<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Div<&'a IntervalDayTime> for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
/
operator.source§impl<'a> Div<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Div<IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
/
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)
Performs the
/=
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
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
*
operator.source§impl<'a> Mul<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Mul<&'a IntervalDayTime> for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
*
operator.source§impl<'a> Mul<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Mul<IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
*
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)
Performs the
*=
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,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for IntervalDayTime
impl PartialEq for IntervalDayTime
source§fn eq(&self, other: &IntervalDayTime) -> bool
fn eq(&self, other: &IntervalDayTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for IntervalDayTime
impl PartialOrd for IntervalDayTime
source§fn partial_cmp(&self, other: &IntervalDayTime) -> Option<Ordering>
fn partial_cmp(&self, other: &IntervalDayTime) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> Rem<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Rem<&'b IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
%
operator.source§impl<'a> Rem<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Rem<&'a IntervalDayTime> for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
%
operator.source§impl<'a> Rem<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Rem<IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
%
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)
Performs the
%=
operation. Read moresource§impl<'a, 'b> Sub<&'b IntervalDayTime> for &'a IntervalDayTime
impl<'a, 'b> Sub<&'b IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
-
operator.source§impl<'a> Sub<&'a IntervalDayTime> for IntervalDayTime
impl<'a> Sub<&'a IntervalDayTime> for IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
-
operator.source§impl<'a> Sub<IntervalDayTime> for &'a IntervalDayTime
impl<'a> Sub<IntervalDayTime> for &'a IntervalDayTime
§type Output = IntervalDayTime
type Output = IntervalDayTime
The resulting type after applying the
-
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)
Performs the
-=
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
Mutably borrows from an owned value. Read more
source§impl<T> ToByteSlice for Twhere
T: ArrowNativeType,
impl<T> ToByteSlice for Twhere
T: ArrowNativeType,
source§fn to_byte_slice(&self) -> &[u8] ⓘ
fn to_byte_slice(&self) -> &[u8] ⓘ
Converts this instance into a byte slice