Skip to main content

RngExt

Trait RngExt 

Source
pub trait RngExt: Rng + Sized {
    // Provided method
    fn gen_usable_block(&mut self, modulus: u16) -> U8x16 { ... }
}
Expand description

Extra [rand::Rng] functionality, useful for testing.

Provided Methods§

Source

fn gen_usable_block(&mut self, modulus: u16) -> U8x16

Randomly generate a valid Block.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<R: Rng + Sized> RngExt for R