pub struct PresentationTimestamp(pub u128);
Expand description
Nanosecond timestamp used by the presentation engine.
The specific clock depends on the window system integration (WSI) API used.
WSI | Clock |
IDXGISwapchain | QueryPerformanceCounter |
IPresentationManager | QueryInterruptTimePrecise |
CAMetalLayer | mach_absolute_time |
VK_GOOGLE_display_timing | clock_gettime(CLOCK_MONOTONIC) |
Tuple Fields§
§0: u128
Timestamp in nanoseconds.
Implementations§
Source§impl PresentationTimestamp
impl PresentationTimestamp
Sourcepub const INVALID_TIMESTAMP: PresentationTimestamp = _
pub const INVALID_TIMESTAMP: PresentationTimestamp = _
A timestamp that is invalid due to the platform not having a timestamp system.
Sourcepub fn is_invalid(self) -> bool
pub fn is_invalid(self) -> bool
Returns true if this timestamp is the invalid timestamp.
Trait Implementations§
Source§impl Clone for PresentationTimestamp
impl Clone for PresentationTimestamp
Source§fn clone(&self) -> PresentationTimestamp
fn clone(&self) -> PresentationTimestamp
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 PresentationTimestamp
impl Debug for PresentationTimestamp
Source§impl Ord for PresentationTimestamp
impl Ord for PresentationTimestamp
Source§fn cmp(&self, other: &PresentationTimestamp) -> Ordering
fn cmp(&self, other: &PresentationTimestamp) -> 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 PresentationTimestamp
impl PartialEq for PresentationTimestamp
Source§impl PartialOrd for PresentationTimestamp
impl PartialOrd for PresentationTimestamp
impl Copy for PresentationTimestamp
impl Eq for PresentationTimestamp
impl StructuralPartialEq for PresentationTimestamp
Auto Trait Implementations§
impl Freeze for PresentationTimestamp
impl RefUnwindSafe for PresentationTimestamp
impl Send for PresentationTimestamp
impl Sync for PresentationTimestamp
impl Unpin for PresentationTimestamp
impl UnwindSafe for PresentationTimestamp
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.