Struct mach::clock_types::mach_timespec
source · #[repr(C)]pub struct mach_timespec {
pub tv_sec: c_uint,
pub tv_nsec: clock_res_t,
}
Fields§
§tv_sec: c_uint
§tv_nsec: clock_res_t
Trait Implementations§
source§impl Clone for mach_timespec
impl Clone for mach_timespec
source§fn clone(&self) -> mach_timespec
fn clone(&self) -> mach_timespec
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 mach_timespec
impl Debug for mach_timespec
source§impl Default for mach_timespec
impl Default for mach_timespec
source§fn default() -> mach_timespec
fn default() -> mach_timespec
Returns the “default value” for a type. Read more
source§impl Hash for mach_timespec
impl Hash for mach_timespec
source§impl Ord for mach_timespec
impl Ord for mach_timespec
source§fn cmp(&self, other: &mach_timespec) -> Ordering
fn cmp(&self, other: &mach_timespec) -> 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<mach_timespec> for mach_timespec
impl PartialEq<mach_timespec> for mach_timespec
source§fn eq(&self, other: &mach_timespec) -> bool
fn eq(&self, other: &mach_timespec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<mach_timespec> for mach_timespec
impl PartialOrd<mach_timespec> for mach_timespec
source§fn partial_cmp(&self, other: &mach_timespec) -> Option<Ordering>
fn partial_cmp(&self, other: &mach_timespec) -> 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 moreimpl Copy for mach_timespec
impl Eq for mach_timespec
impl StructuralEq for mach_timespec
impl StructuralPartialEq for mach_timespec
Auto Trait Implementations§
impl RefUnwindSafe for mach_timespec
impl Send for mach_timespec
impl Sync for mach_timespec
impl Unpin for mach_timespec
impl UnwindSafe for mach_timespec
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