[−][src]Struct x86_64::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(&self) -> u64
[src]
Deprecated:
This method does not check for errors and will be removed in the next breaking release. Use get_u64() instead.
Uniformly sampled u64
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]
Performs copy-assignment from source
. Read more
impl Debug for RdRand
[src]
impl Copy for RdRand
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut 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,