XorShift

Trait XorShift 

Source
pub trait XorShift {
    // Required method
    fn xorshift(&mut self) -> Self;
}

Required Methods§

Source

fn xorshift(&mut self) -> Self

Returns the next value in the xorshift sequence.

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.

Implementations on Foreign Types§

Source§

impl XorShift for u8

Source§

fn xorshift(&mut self) -> Self

Source§

impl XorShift for u16

Source§

fn xorshift(&mut self) -> Self

Source§

impl XorShift for u32

Source§

fn xorshift(&mut self) -> Self

Source§

impl XorShift for u64

Source§

fn xorshift(&mut self) -> Self

Source§

impl XorShift for usize

Source§

fn xorshift(&mut self) -> Self

Implementors§