Struct sungod::Ra[][src]

pub struct Ra { /* fields omitted */ }

The struct that holds all the random state. Can be instanced as many times as you want!


impl Ra[src]

pub fn new(seed: u64) -> Self[src]

pub fn xorwow(&mut self) -> u64[src]

The random source, spits out random u64s

pub fn sample<T: Sample>(&mut self) -> T[src]

Spits out a random of whatever.

Trait Implementations

impl Clone for Ra[src]

impl Copy for Ra[src]

impl Debug for Ra[src]

impl Default for Ra[src]

Auto Trait Implementations

impl RefUnwindSafe for Ra

impl Send for Ra

impl Sync for Ra

impl Unpin for Ra

impl UnwindSafe for Ra

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.