Struct modality_api::types::Nanoseconds
source · #[repr(transparent)]pub struct Nanoseconds(_);
Expand description
A timestamp in nanoseconds
Implementations§
Trait Implementations§
source§impl Clone for Nanoseconds
impl Clone for Nanoseconds
source§fn clone(&self) -> Nanoseconds
fn clone(&self) -> Nanoseconds
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Nanoseconds
impl Debug for Nanoseconds
source§impl Display for Nanoseconds
impl Display for Nanoseconds
source§impl Encode for Nanoseconds
impl Encode for Nanoseconds
source§impl From<Nanoseconds> for AttrVal
impl From<Nanoseconds> for AttrVal
source§fn from(ns: Nanoseconds) -> AttrVal
fn from(ns: Nanoseconds) -> AttrVal
Converts to this type from the input type.
source§impl From<u64> for Nanoseconds
impl From<u64> for Nanoseconds
source§impl FromStr for Nanoseconds
impl FromStr for Nanoseconds
source§impl Hash for Nanoseconds
impl Hash for Nanoseconds
source§impl Ord for Nanoseconds
impl Ord for Nanoseconds
source§fn cmp(&self, other: &Nanoseconds) -> Ordering
fn cmp(&self, other: &Nanoseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<Nanoseconds> for Nanoseconds
impl PartialEq<Nanoseconds> for Nanoseconds
source§fn eq(&self, other: &Nanoseconds) -> bool
fn eq(&self, other: &Nanoseconds) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Nanoseconds> for Nanoseconds
impl PartialOrd<Nanoseconds> for Nanoseconds
source§fn partial_cmp(&self, other: &Nanoseconds) -> Option<Ordering>
fn partial_cmp(&self, other: &Nanoseconds) -> Option<Ordering>
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 more