[][src]Struct pcg::PcgSeed

pub struct PcgSeed(pub [u8; 8]);

A wrapper type for the PcgSeed

This wrapper allows us to implement a SeedableRng for Pcg. There are also conversion traits defined so that you can switch between PcgSeed and U64 easily. The lowest bit in the lowest index of the underlying array corresponds to the most significant bit in the converted U64.

For example: [0, 1, 2, 3, 4, 5, 6, 7] corresponds to 01234567 when converted to the packged unsigned integer representation.

Trait Implementations

impl AsMut<[u8]> for PcgSeed[src]

impl Clone for PcgSeed[src]

impl Copy for PcgSeed[src]

impl Debug for PcgSeed[src]

impl Default for PcgSeed[src]

impl Eq for PcgSeed[src]

impl From<PcgSeed> for U64[src]

impl From<U64> for PcgSeed[src]

impl From<u64> for PcgSeed[src]

impl Hash for PcgSeed[src]

impl PartialEq<PcgSeed> for PcgSeed[src]

impl StructuralEq for PcgSeed[src]

impl StructuralPartialEq for PcgSeed[src]

Auto Trait Implementations

impl RefUnwindSafe for PcgSeed

impl Send for PcgSeed

impl Sync for PcgSeed

impl Unpin for PcgSeed

impl UnwindSafe for PcgSeed

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.