Struct ex3_timestamp::TimeInNs
source · pub struct TimeInNs(pub u64);Tuple Fields§
§0: u64Implementations§
source§impl TimeInNs
impl TimeInNs
sourcepub fn checked_add(self, rhs: Self) -> Option<Self>
pub fn checked_add(self, rhs: Self) -> Option<Self>
Checked add return None if overflow
sourcepub fn checked_sub(self, rhs: Self) -> Option<Self>
pub fn checked_sub(self, rhs: Self) -> Option<Self>
Checked sub return None if overflow
Trait Implementations§
source§impl<'de> Deserialize<'de> for TimeInNs
impl<'de> Deserialize<'de> for TimeInNs
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for TimeInNs
impl Ord for TimeInNs
source§impl PartialEq for TimeInNs
impl PartialEq for TimeInNs
source§impl PartialOrd for TimeInNs
impl PartialOrd for TimeInNs
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 Storable for TimeInNs
impl Storable for TimeInNs
source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Copy for TimeInNs
impl Eq for TimeInNs
impl StructuralEq for TimeInNs
impl StructuralPartialEq for TimeInNs
Auto Trait Implementations§
impl RefUnwindSafe for TimeInNs
impl Send for TimeInNs
impl Sync for TimeInNs
impl Unpin for TimeInNs
impl UnwindSafe for TimeInNs
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