Struct sys_metrics::CLOCK_TICKS [−][src]
pub struct CLOCK_TICKS { /* fields omitted */ }
Time units in jiffies (USER_HZ) (https://en.wikipedia.org/wiki/Jiffy_(time))
Methods from Deref<Target = u64>
pub const MIN: u64
1.43.0[src]
pub const MAX: u64
1.43.0[src]
pub const BITS: u32
1.53.0[src]
pub fn as_ne_bytes(&self) -> &[u8; 8]
[src]
🔬 This is a nightly-only experimental API. (
num_as_ne_bytes
)Return the memory representation of this integer as a byte array in native byte order.
to_ne_bytes
should be preferred over this whenever possible.
Examples
#![feature(num_as_ne_bytes)] let num = 0x1234567890123456u64; let bytes = num.as_ne_bytes(); assert_eq!( bytes, if cfg!(target_endian = "big") { &[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56] } else { &[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12] } );
Trait Implementations
impl Deref for CLOCK_TICKS
[src]
impl Deref for CLOCK_TICKS
[src]impl LazyStatic for CLOCK_TICKS
[src]
impl LazyStatic for CLOCK_TICKS
[src]fn initialize(lazy: &Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for CLOCK_TICKS
impl RefUnwindSafe for CLOCK_TICKS
impl Send for CLOCK_TICKS
impl Send for CLOCK_TICKS
impl Sync for CLOCK_TICKS
impl Sync for CLOCK_TICKS
impl Unpin for CLOCK_TICKS
impl Unpin for CLOCK_TICKS
impl UnwindSafe for CLOCK_TICKS
impl UnwindSafe for CLOCK_TICKS