pub struct DurationNs(pub i64);Tuple Fields§
§0: i64Implementations§
Source§impl DurationNs
impl DurationNs
pub fn as_duration(&self) -> Duration
Trait Implementations§
Source§impl Clone for DurationNs
impl Clone for DurationNs
Source§fn clone(&self) -> DurationNs
fn clone(&self) -> DurationNs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DurationNs
Source§impl Debug for DurationNs
impl Debug for DurationNs
Source§impl Default for DurationNs
impl Default for DurationNs
Source§fn default() -> DurationNs
fn default() -> DurationNs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DurationNs
impl<'de> Deserialize<'de> for DurationNs
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
impl Eq for DurationNs
Source§impl Hash for DurationNs
impl Hash for DurationNs
Source§impl Ord for DurationNs
impl Ord for DurationNs
Source§fn cmp(&self, other: &DurationNs) -> Ordering
fn cmp(&self, other: &DurationNs) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DurationNs
impl PartialEq for DurationNs
Source§impl PartialOrd for DurationNs
impl PartialOrd for DurationNs
Source§impl Serialize for DurationNs
impl Serialize for DurationNs
impl StructuralPartialEq for DurationNs
Auto Trait Implementations§
impl Freeze for DurationNs
impl RefUnwindSafe for DurationNs
impl Send for DurationNs
impl Sync for DurationNs
impl Unpin for DurationNs
impl UnsafeUnpin for DurationNs
impl UnwindSafe for DurationNs
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