[−][src]Struct x86_64::instructions::random::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
Auto Trait Implementations
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
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>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,