pub struct Rng { /* private fields */ }
Trait Implementations§
Source§impl Rand for Rng
impl Rand for Rng
fn new(seed: u64) -> Self
fn rand_u32(&mut self) -> u32
fn rand_u8(&mut self) -> u8
fn rand_u16(&mut self) -> u16
fn rand_u64(&mut self) -> u64
fn rand_usize(&mut self) -> usize
fn rand_bounded_u32(&mut self, m: u32) -> u32
fn rand_bounded_u64(&mut self, m: u64) -> u64
fn rand_bounded_usize(&mut self, m: usize) -> usize
fn rand_range_u32(&mut self, a: u32, b: u32) -> u32
fn rand_range_u64(&mut self, a: u64, b: u64) -> u64
fn rand_range_i32(&mut self, a: i32, b: i32) -> i32
fn rand_range_i64(&mut self, a: i64, b: i64) -> i64
fn rand_f32(&mut self) -> f32
fn rand_f64(&mut self) -> f64
fn shuffle<T>(&mut self, a: &mut [T])
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