pub struct WrappingU64Duration(pub u64);Expand description
A duration in a WrappingU64Time domain. The inner value is an unsigned tick count.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for WrappingU64Duration
impl Clone for WrappingU64Duration
Source§fn clone(&self) -> WrappingU64Duration
fn clone(&self) -> WrappingU64Duration
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 WrappingU64Duration
Source§impl Debug for WrappingU64Duration
impl Debug for WrappingU64Duration
Source§impl DurationCalibration<WrappingU64Duration> for U64Calibration
impl DurationCalibration<WrappingU64Duration> for U64Calibration
Source§fn convert_to_ns(&self, d: WrappingU64Duration) -> u64
fn convert_to_ns(&self, d: WrappingU64Duration) -> u64
Converts a duration to nanoseconds, rounding to the nearest nanosecond.
Source§fn convert_from_ns(&self, ns: u64) -> WrappingU64Duration
fn convert_from_ns(&self, ns: u64) -> WrappingU64Duration
Converts a nanosecond value to this clock’s native duration type.
fn to_std(&self, d: D) -> Durationwhere
Self: Sized,
fn convert_from_std(&self, d: Duration) -> Dwhere
Self: Sized,
impl Eq for WrappingU64Duration
Source§impl Hash for WrappingU64Duration
impl Hash for WrappingU64Duration
Source§impl PartialEq for WrappingU64Duration
impl PartialEq for WrappingU64Duration
impl StructuralPartialEq for WrappingU64Duration
Auto Trait Implementations§
impl Freeze for WrappingU64Duration
impl RefUnwindSafe for WrappingU64Duration
impl Send for WrappingU64Duration
impl Sync for WrappingU64Duration
impl Unpin for WrappingU64Duration
impl UnsafeUnpin for WrappingU64Duration
impl UnwindSafe for WrappingU64Duration
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