Struct mt19937::MT19937 [−][src]
rand::Rng instance implementing the mt19937 mersenne twister algorithm
Implementations
impl MT19937
[src]
pub fn new_with_slice_seed(init_key: &[u32]) -> Self
[src]
pub fn seed_slice(&mut self, init_key: &[u32])
[src]
initialize by an array with array-length
Trait Implementations
impl Debug for MT19937
[src]
impl Default for MT19937
[src]
impl RngCore for MT19937
[src]
fn next_u32(&mut self) -> u32
[src]
fn next_u64(&mut self) -> u64
[src]
fn fill_bytes(&mut self, dest: &mut [u8])
[src]
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>
[src]
impl SeedableRng for MT19937
[src]
Auto Trait Implementations
impl RefUnwindSafe for MT19937
impl Send for MT19937
impl Sync for MT19937
impl Unpin for MT19937
impl UnwindSafe for MT19937
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,