pub struct Int96 { /* private fields */ }
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§
source§impl Int96
impl Int96
sourcepub fn to_i64(&self) -> i64
pub fn to_i64(&self) -> i64
Converts this INT96 into an i64 representing the number of MILLISECONDS since Epoch
sourcepub fn to_nanos(&self) -> i64
pub fn to_nanos(&self) -> i64
Converts this INT96 into an i64 representing the number of NANOSECONDS since EPOCH
Will wrap around on overflow
sourcepub fn to_seconds_and_nanos(&self) -> (i64, i64)
pub fn to_seconds_and_nanos(&self) -> (i64, i64)
Converts this INT96 to a number of seconds and nanoseconds since EPOCH
Trait Implementations§
source§impl PartialEq for Int96
impl PartialEq for Int96
source§impl PartialOrd for Int96
impl PartialOrd for Int96
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 SliceAsBytes for Int96
impl SliceAsBytes for Int96
impl Copy for Int96
impl Eq for Int96
impl StructuralPartialEq for Int96
Auto Trait Implementations§
impl Freeze for Int96
impl RefUnwindSafe for Int96
impl Send for Int96
impl Sync for Int96
impl Unpin for Int96
impl UnwindSafe for Int96
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreCreates a shared type from an unshared type.