[−][src]Struct x86_64::instructions::random::RdRand
Used to obtain random numbers using x86_64's RDRAND opcode
Implementations
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 Clone for RdRand
[src]
fn clone(&self) -> RdRand
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RdRand
[src]
impl Debug for RdRand
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,