Trait pcg_rand::stream::Stream [−][src]
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]
Required methods
fn build(seed: Option<Itype>) -> Self
[src]
fn increment(&self) -> Itype
[src]
fn get_stream(&self) -> Itype
[src]
Provided methods
fn set_stream(&mut self, _stream_seq: Itype)
[src]
Implementors
impl Stream<u32> for NoSeqStream
[src]
const SERIALIZER_ID: &'static str
[src]
fn build(_: Option<u32>) -> Self
[src]
fn increment(&self) -> u32
[src]
fn get_stream(&self) -> u32
[src]
impl Stream<u32> for OneSeqStream
[src]
const SERIALIZER_ID: &'static str
[src]
fn build(_: Option<u32>) -> Self
[src]
fn increment(&self) -> u32
[src]
fn get_stream(&self) -> u32
[src]
impl Stream<u32> for SpecificSeqStream<u32>
[src]
const SERIALIZER_ID: &'static str
[src]
fn build(seed: Option<u32>) -> Self
[src]
fn set_stream(&mut self, stream_seq: u32)
[src]
fn increment(&self) -> u32
[src]
fn get_stream(&self) -> u32
[src]
impl Stream<u64> for NoSeqStream
[src]
const SERIALIZER_ID: &'static str
[src]
fn build(_: Option<u64>) -> Self
[src]
fn increment(&self) -> u64
[src]
fn get_stream(&self) -> u64
[src]
impl Stream<u64> for OneSeqStream
[src]
const SERIALIZER_ID: &'static str
[src]
fn build(_: Option<u64>) -> Self
[src]
fn increment(&self) -> u64
[src]
fn get_stream(&self) -> u64
[src]
impl Stream<u64> for SpecificSeqStream<u64>
[src]
const SERIALIZER_ID: &'static str
[src]
fn build(seed: Option<u64>) -> Self
[src]
fn set_stream(&mut self, stream_seq: u64)
[src]
fn increment(&self) -> u64
[src]
fn get_stream(&self) -> u64
[src]
impl Stream<u128> for NoSeqStream
[src]
const SERIALIZER_ID: &'static str
[src]
fn build(_: Option<u128>) -> Self
[src]
fn increment(&self) -> u128
[src]
fn get_stream(&self) -> u128
[src]
impl Stream<u128> for OneSeqStream
[src]
const SERIALIZER_ID: &'static str
[src]
fn build(_: Option<u128>) -> Self
[src]
fn increment(&self) -> u128
[src]
fn get_stream(&self) -> u128
[src]
impl Stream<u128> for SpecificSeqStream<u128>
[src]
const SERIALIZER_ID: &'static str
[src]
fn build(seed: Option<u128>) -> Self
[src]
fn set_stream(&mut self, stream_seq: u128)
[src]
fn increment(&self) -> u128
[src]
fn get_stream(&self) -> u128
[src]
impl<Itype> Stream<Itype> for UniqueSeqStream where
Itype: FromPrimitive + ReadByteOrder,
[src]
Itype: FromPrimitive + ReadByteOrder,