Struct pcg_rand::stream::SpecificSeqStream [−][src]
By default this stream provides the same stream as OneSeqStream. The advantage to this stream is it can be changed at runtime. This incurs an extra Itype of storage overhead.
Implementations
impl<Itype> SpecificSeqStream<Itype> where
Itype: Zero,
[src]
Itype: Zero,
pub fn new() -> SpecificSeqStream<Itype>
[src]
Trait Implementations
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 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 SpecificSeqStream<u64>
[src]
Auto Trait Implementations
impl<Itype> RefUnwindSafe for SpecificSeqStream<Itype> where
Itype: RefUnwindSafe,
[src]
Itype: RefUnwindSafe,
impl<Itype> Send for SpecificSeqStream<Itype> where
Itype: Send,
[src]
Itype: Send,
impl<Itype> Sync for SpecificSeqStream<Itype> where
Itype: Sync,
[src]
Itype: Sync,
impl<Itype> Unpin for SpecificSeqStream<Itype> where
Itype: Unpin,
[src]
Itype: Unpin,
impl<Itype> UnwindSafe for SpecificSeqStream<Itype> where
Itype: UnwindSafe,
[src]
Itype: UnwindSafe,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,