Struct polars_arrow::types::months_days_ns

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

The in-memory representation of the MonthDayNano variant of the “Interval” logical type.

Tuple Fields§

§0: i32§1: i32§2: i64

Implementations§

source§

impl months_days_ns

source

pub fn new(months: i32, days: i32, nanoseconds: i64) -> Self

source

pub fn months(&self) -> i32

The number of months

source

pub fn days(&self) -> i32

The number of days

source

pub fn ns(&self) -> i64

The number of nanoseconds

Trait Implementations§

source§

impl Clone for months_days_ns

source§

fn clone(&self) -> months_days_ns

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 months_days_ns

source§

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

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

impl Default for months_days_ns

source§

fn default() -> months_days_ns

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

impl Display for months_days_ns

source§

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

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

impl Hash for months_days_ns

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 IsNull for months_days_ns

source§

impl MinMax for months_days_ns

source§

fn nan_min_lt(&self, other: &Self) -> bool

source§

fn nan_max_lt(&self, other: &Self) -> bool

source§

fn min_propagate_nan(self, other: Self) -> Self

source§

fn max_propagate_nan(self, other: Self) -> Self

source§

fn min_ignore_nan(self, other: Self) -> Self

source§

fn max_ignore_nan(self, other: Self) -> Self

source§

impl NativeType for months_days_ns

source§

const PRIMITIVE: PrimitiveType = PrimitiveType::MonthDayNano

The corresponding variant of PrimitiveType.
§

type Bytes = [u8; 16]

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 months_days_ns

§

type Output = months_days_ns

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Ord for months_days_ns

source§

fn cmp(&self, other: &months_days_ns) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for months_days_ns

source§

fn eq(&self, other: &months_days_ns) -> 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 PartialOrd for months_days_ns

source§

fn partial_cmp(&self, other: &months_days_ns) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Simd for months_days_ns

§

type Simd = months_days_nsx8

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

impl TotalEq for months_days_ns

source§

fn tot_eq(&self, other: &Self) -> bool

source§

fn tot_ne(&self, other: &Self) -> bool

source§

impl TotalOrd for months_days_ns

source§

fn tot_cmp(&self, other: &Self) -> Ordering

source§

fn tot_lt(&self, other: &Self) -> bool

source§

fn tot_gt(&self, other: &Self) -> bool

source§

fn tot_le(&self, other: &Self) -> bool

source§

fn tot_ge(&self, other: &Self) -> bool

source§

impl Zeroable for months_days_ns

source§

fn zeroed() -> Self

source§

impl Copy for months_days_ns

source§

impl Eq for months_days_ns

source§

impl Pod for months_days_ns

source§

impl StructuralPartialEq for months_days_ns

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedBitPattern for T
where 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> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<T> DynClone for T
where T: Clone,

source§

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

source§

impl<Q, K> Equivalent<K> for Q
where 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 Q
where 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.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where 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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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 T
where 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 T
where T: RefUnwindSafe + Send + Sync,

source§

impl<T> AnyBitPattern for T
where T: Pod,

source§

impl<T> NoUninit for T
where T: Pod,