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 PartialOrd for Int96
impl PartialOrd for Int96
source§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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)