pub struct ClockTime {
pub clock: ClockId,
pub ticks: u64,
}Expand description
An instant in time associated with a clock.
ClockTimes implement PartialOrd. They can be compared as long
as both times are associated with the same clock. If the clocks are
different, a.cmp(b) will return None.
Fields§
§clock: ClockIdThe clock this time is associated with.
ticks: u64The elapsed time in ticks.
Trait Implementations§
Source§impl AddAssign<u64> for ClockTime
impl AddAssign<u64> for ClockTime
Source§fn add_assign(&mut self, ticks: u64)
fn add_assign(&mut self, ticks: u64)
Performs the
+= operation. Read moreSource§impl PartialOrd for ClockTime
impl PartialOrd for ClockTime
Source§impl SubAssign<u64> for ClockTime
impl SubAssign<u64> for ClockTime
Source§fn sub_assign(&mut self, ticks: u64)
fn sub_assign(&mut self, ticks: u64)
Performs the
-= operation. Read moreimpl Copy for ClockTime
impl Eq for ClockTime
impl StructuralPartialEq for ClockTime
Auto Trait Implementations§
impl Freeze for ClockTime
impl RefUnwindSafe for ClockTime
impl Send for ClockTime
impl Sync for ClockTime
impl Unpin for ClockTime
impl UnwindSafe for ClockTime
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> 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§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.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more