Skip to main content

mach_timebase_info

Struct mach_timebase_info 

Source
#[repr(C)]
pub struct mach_timebase_info { pub numer: u32, pub denom: u32, }
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

Fieldsยง

ยงnumer: u32
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

ยงdenom: u32
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

Trait Implementationsยง

Sourceยง

impl Clone for mach_timebase_info

Sourceยง

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)ยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Copy for mach_timebase_info

Sourceยง

impl Debug for mach_timebase_info

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Default for mach_timebase_info

Sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl Eq for mach_timebase_info

Sourceยง

impl Hash for mach_timebase_info

Sourceยง

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given [Hasher]. Read more
1.3.0ยง

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given [Hasher]. Read more
Sourceยง

impl PartialEq for mach_timebase_info

Sourceยง

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable)ยง

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Sourceยง

impl StructuralPartialEq for mach_timebase_info

Auto Trait Implementationsยง

ยง

impl Freeze for mach_timebase_info

ยง

impl RefUnwindSafe for mach_timebase_info

ยง

impl Send for mach_timebase_info

ยง

impl Sync for mach_timebase_info

ยง

impl Unpin for mach_timebase_info

ยง

impl UnsafeUnpin for mach_timebase_info

ยง

impl UnwindSafe for mach_timebase_info

Blanket Implementationsยง

ยง

impl<T> Any for T
where T: 'static + ?Sized,

ยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
ยง

impl<T> Borrow<T> for T
where T: ?Sized,

ยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
ยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

ยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
ยง

impl<T> CloneToUninit for T
where T: Clone,

ยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
ยง

impl<T> From<T> for T

ยง

fn from(t: T) -> T

Returns the argument unchanged.

ยง

impl<T, U> Into<U> for T
where U: From<T>,

ยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

ยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

ยง

type Error = !

The type returned in the event of a conversion error.
ยง

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
ยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
ยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.