Struct pcg_rand::stream::UniqueSeqStream
source · pub struct UniqueSeqStream;
Expand description
This stream provides a stream based on the current location of the generator in memory. This means that two PCG with the same seed can produce different sequences of numbers. Though if the generator is moved it will change the stream.
Trait Implementations
sourceimpl<Itype> Stream<Itype> for UniqueSeqStreamwhere
Itype: FromPrimitive + ReadByteOrder,
impl<Itype> Stream<Itype> for UniqueSeqStreamwhere
Itype: FromPrimitive + ReadByteOrder,
fn build(_: Option<&mut PcgSeeder<Itype>>) -> Self
fn increment(&self) -> Itype
fn get_stream(&self) -> Itype
fn set_stream(&mut self, _stream_seq: Itype)
Auto Trait Implementations
impl RefUnwindSafe for UniqueSeqStream
impl Send for UniqueSeqStream
impl Sync for UniqueSeqStream
impl Unpin for UniqueSeqStream
impl UnwindSafe for UniqueSeqStream
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more