[][src]Struct rvs::Seed

pub struct Seed(_);

Implementations

impl Seed[src]

pub fn from_u32(seed: u32) -> Seed[src]

Generates a 128-bit seed from a 32-bit seed

This is done via two steps:

  1. Create a low quality 128-bit seed (LQS)

    This is done with simple bit manipulation of the 32-bit seed.

  2. Create a higher quality 128-bit seed (HQS)

    This is done by seeding an Rng with the LQS then using the Rng to generate the HQS.

pub fn from_u32_array(x: [u32; 4]) -> Seed[src]

pub fn to_rng(&self) -> Pcg32[src]

Trait Implementations

impl Clone for Seed[src]

impl Default for Seed[src]

Auto Trait Implementations

impl RefUnwindSafe for Seed

impl Send for Seed

impl Sync for Seed

impl Unpin for Seed

impl UnwindSafe for Seed

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,