[][src]Struct x86_64::instructions::random::RdRand

pub struct RdRand(_);

Used to obtain random numbers using x86_64's RDRAND opcode

Methods

impl RdRand[src]

pub fn new() -> Option<Self>[src]

Creates Some(RdRand) if RDRAND is supported, None otherwise

pub fn get_u64(&self) -> Option<u64>[src]

Uniformly sampled u64. May fail in rare circumstances or heavy load.

pub fn get_u32(&self) -> Option<u32>[src]

Uniformly sampled u32. May fail in rare circumstances or heavy load.

pub fn get_u16(&self) -> Option<u16>[src]

Uniformly sampled u16. May fail in rare circumstances or heavy load.

Trait Implementations

impl Copy for RdRand[src]

impl Debug for RdRand[src]

impl Clone for RdRand[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for RdRand

impl Sync for RdRand

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]