pub struct Picoseconds(pub i128);
Expand description
extra-precise duration type for short-ish durations.
Tuple Fields§
§0: i128
Implementations§
Trait Implementations§
Source§impl Add for Picoseconds
impl Add for Picoseconds
Source§impl AddAssign for Picoseconds
impl AddAssign for Picoseconds
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl Clone for Picoseconds
impl Clone for Picoseconds
Source§fn clone(&self) -> Picoseconds
fn clone(&self) -> Picoseconds
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 Picoseconds
impl Debug for Picoseconds
Source§impl Default for Picoseconds
impl Default for Picoseconds
Source§fn default() -> Picoseconds
fn default() -> Picoseconds
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Picoseconds
impl<'de> Deserialize<'de> for Picoseconds
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 Div<i128> for Picoseconds
impl Div<i128> for Picoseconds
Source§impl DivAssign<i128> for Picoseconds
impl DivAssign<i128> for Picoseconds
Source§fn div_assign(&mut self, rhs: i128)
fn div_assign(&mut self, rhs: i128)
Performs the
/=
operation. Read moreSource§impl Mul<Picoseconds> for i128
impl Mul<Picoseconds> for i128
Source§type Output = Picoseconds
type Output = Picoseconds
The resulting type after applying the
*
operator.Source§impl Mul<i128> for Picoseconds
impl Mul<i128> for Picoseconds
Source§impl MulAssign<i128> for Picoseconds
impl MulAssign<i128> for Picoseconds
Source§fn mul_assign(&mut self, rhs: i128)
fn mul_assign(&mut self, rhs: i128)
Performs the
*=
operation. Read moreSource§impl Ord for Picoseconds
impl Ord for Picoseconds
Source§fn cmp(&self, other: &Picoseconds) -> Ordering
fn cmp(&self, other: &Picoseconds) -> 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 for Picoseconds
impl PartialEq for Picoseconds
Source§impl PartialOrd for Picoseconds
impl PartialOrd for Picoseconds
Source§impl Serialize for Picoseconds
impl Serialize for Picoseconds
Source§impl Sub for Picoseconds
impl Sub for Picoseconds
Source§impl SubAssign for Picoseconds
impl SubAssign for Picoseconds
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreSource§impl Sum for Picoseconds
impl Sum for Picoseconds
impl Copy for Picoseconds
impl Eq for Picoseconds
impl StructuralPartialEq for Picoseconds
Auto Trait Implementations§
impl Freeze for Picoseconds
impl RefUnwindSafe for Picoseconds
impl Send for Picoseconds
impl Sync for Picoseconds
impl Unpin for Picoseconds
impl UnwindSafe for Picoseconds
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.