pub struct Rng { /* private fields */ }
Expand description
Random number provider which provides access to all rand_core::RngCore functions.
Example use:
use rand_core::RngCore;
// ...
let mut rand_source = dp.RNG.constrain(clocks);
let rand_u32: u32 = rand_source.next_u32();
let rand_u64: u64 = rand_source.next_u64();
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rng
impl RefUnwindSafe for Rng
impl Send for Rng
impl !Sync for Rng
impl Unpin for Rng
impl UnwindSafe for Rng
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more