Struct irox_tools::random::Random
source · pub struct Random { /* private fields */ }Expand description
Basic Random Number Generator based on the PCG-XSH-RR
Implementations§
Trait Implementations§
source§impl Bits for Random
impl Bits for Random
fn read_u8(&mut self) -> Result<u8, Error>
fn read_be_u16(&mut self) -> Result<u16, Error>
fn read_be_u32(&mut self) -> Result<u32, Error>
fn read_be_u64(&mut self) -> Result<u64, Error>
fn read_be_u128(&mut self) -> Result<u128, Error>
fn read_f32(&mut self) -> Result<f32, Error>
fn read_f64(&mut self) -> Result<f64, Error>
fn read_be_i16(&mut self) -> Result<i16, Error>
fn read_be_i32(&mut self) -> Result<i32, Error>
fn read_be_i64(&mut self) -> Result<i64, Error>
fn advance(&mut self, len: usize) -> Result<usize, Error>
Auto Trait Implementations§
impl RefUnwindSafe for Random
impl Send for Random
impl Sync for Random
impl Unpin for Random
impl UnwindSafe for Random
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