Struct parquet::data_type::Int96[][src]

pub struct Int96 { /* fields omitted */ }
Expand description

Rust representation for logical type INT96, value is backed by an array of u32. The type only takes 12 bytes, without extra padding.

Implementations

impl Int96[src]

pub fn new() -> Self[src]

Creates new INT96 type struct with no data set.

pub fn data(&self) -> &[u32][src]

Returns underlying data as slice of u32.

pub fn set_data(&mut self, elem0: u32, elem1: u32, elem2: u32)[src]

Sets data for this INT96 type.

pub fn to_i64(&self) -> i64[src]

Converts this INT96 into an i64 representing the number of MILLISECONDS since Epoch

Trait Implementations

impl AsBytes for Int96[src]

fn as_bytes(&self) -> &[u8][src]

Returns slice of bytes for this data type.

impl Clone for Int96[src]

fn clone(&self) -> Int96[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Int96[src]

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

Formats the value using the given formatter. Read more

impl Default for Int96[src]

fn default() -> Self[src]

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

impl Display for Int96[src]

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

Formats the value using the given formatter. Read more

impl From<Vec<u32, Global>> for Int96[src]

fn from(buf: Vec<u32>) -> Self[src]

Performs the conversion.

impl PartialEq<Int96> for Int96[src]

fn eq(&self, other: &Int96) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialOrd<Int96> for Int96[src]

fn partial_cmp(&self, other: &Int96) -> Option<Ordering>[src]

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

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

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

impl SliceAsBytes for Int96[src]

fn slice_as_bytes(_self: &[Self]) -> &[u8][src]

Returns slice of bytes for a slice of this data type.

unsafe fn slice_as_bytes_mut(_self: &mut [Self]) -> &mut [u8][src]

Return the internal representation as a mutable slice Read more

Auto Trait Implementations

impl RefUnwindSafe for Int96

impl Send for Int96

impl Sync for Int96

impl Unpin for Int96

impl UnwindSafe for Int96

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V