Struct comfy_wgpu::kira::clock::ClockTime
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§
§impl AddAssign<u64> for ClockTime
impl AddAssign<u64> for ClockTime
§fn add_assign(&mut self, ticks: u64)
fn add_assign(&mut self, ticks: u64)
Performs the
+= operation. Read more§impl PartialOrd<ClockTime> for ClockTime
impl PartialOrd<ClockTime> for ClockTime
§fn partial_cmp(&self, other: &ClockTime) -> Option<Ordering>
fn partial_cmp(&self, other: &ClockTime) -> 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§impl SubAssign<u64> for ClockTime
impl SubAssign<u64> for ClockTime
§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 StructuralEq for ClockTime
impl StructuralPartialEq for ClockTime
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.