Struct arrow2::types::days_ms

source ·
#[repr(C)]
pub struct days_ms(pub i32, pub i32);
Expand description

The in-memory representation of the DayMillisecond variant of arrow’s “Interval” logical type.

Tuple Fields§

§0: i32§1: i32

Implementations§

source§

impl days_ms

source

pub fn new(days: i32, milliseconds: i32) -> Self

A new days_ms.

source

pub fn days(&self) -> i32

The number of days

source

pub fn milliseconds(&self) -> i32

The number of milliseconds

Trait Implementations§

source§

impl Clone for days_ms

source§

fn clone(&self) -> days_ms

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for days_ms

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for days_ms

source§

fn default() -> days_ms

Returns the “default value” for a type. Read more
source§

impl Display for days_ms

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for days_ms

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl NativeType for days_ms

source§

const PRIMITIVE: PrimitiveType = PrimitiveType::DaysMs

The corresponding variant of PrimitiveType.
§

type Bytes = [u8; 8]

Type denoting its representation as bytes. This is [u8; N] where N = size_of::<T>.
source§

fn to_le_bytes(&self) -> Self::Bytes

To bytes in little endian
source§

fn to_be_bytes(&self) -> Self::Bytes

To bytes in big endian
source§

fn from_le_bytes(bytes: Self::Bytes) -> Self

From bytes in little endian
source§

fn from_be_bytes(bytes: Self::Bytes) -> Self

From bytes in big endian
source§

impl Neg for days_ms

§

type Output = days_ms

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl PartialEq<days_ms> for days_ms

source§

fn eq(&self, other: &days_ms) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Simd for days_ms

§

type Simd = days_msx8

The SIMD type associated with this trait. This type supports SIMD operations
source§

impl Simd8 for days_ms

Available on crate feature compute_comparison only.
§

type Simd = [days_ms; 8]

The 8 lane representation of Self
source§

impl Simd8Lanes<days_ms> for [days_ms; 8]

Available on crate feature compute_comparison only.
source§

fn from_chunk(v: &[days_ms]) -> Self

loads a complete chunk
source§

fn from_incomplete_chunk(v: &[days_ms], remaining: days_ms) -> Self

loads an incomplete chunk, filling the remaining items with remaining.
source§

impl Zeroable for days_ms

source§

fn zeroed() -> Self

source§

impl Copy for days_ms

source§

impl Eq for days_ms

source§

impl Pod for days_ms

source§

impl StructuralEq for days_ms

source§

impl StructuralPartialEq for days_ms

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,

§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Allocation for Twhere T: RefUnwindSafe + Send + Sync,

source§

impl<T> AnyBitPattern for Twhere T: Pod,

source§

impl<T> NoUninit for Twhere T: Pod,