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 PartialOrd for TimeInNs
impl PartialOrd for TimeInNs
Source§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 StructuralPartialEq for TimeInNs
Auto Trait Implementations§
impl Freeze for TimeInNs
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