Trait pcg_rand::stream::Stream[][src]

pub trait Stream<Itype> {
    const SERIALIZER_ID: &'static str;

    fn build(seed: Option<Itype>) -> Self;
fn increment(&self) -> Itype;
fn get_stream(&self) -> Itype; fn set_stream(&mut self, _stream_seq: Itype) { ... } }

A stream provides the increment to the LCG. This increment should be an odd number or the period of the generator will not be the full size of the state.

Associated Constants

const SERIALIZER_ID: &'static str[src]

Loading content...

Required methods

fn build(seed: Option<Itype>) -> Self[src]

fn increment(&self) -> Itype[src]

fn get_stream(&self) -> Itype[src]

Loading content...

Provided methods

fn set_stream(&mut self, _stream_seq: Itype)[src]

Loading content...

Implementors

impl Stream<u32> for NoSeqStream[src]

impl Stream<u32> for OneSeqStream[src]

impl Stream<u32> for SpecificSeqStream<u32>[src]

impl Stream<u64> for NoSeqStream[src]

impl Stream<u64> for OneSeqStream[src]

impl Stream<u64> for SpecificSeqStream<u64>[src]

impl Stream<u128> for NoSeqStream[src]

impl Stream<u128> for OneSeqStream[src]

impl Stream<u128> for SpecificSeqStream<u128>[src]

impl<Itype> Stream<Itype> for UniqueSeqStream where
    Itype: FromPrimitive + ReadByteOrder
[src]

Loading content...