[][src]Struct kurobako_core::rng::ArcRng

pub struct ArcRng(_);

The random number generator for kurobako.

Methods

impl ArcRng[src]

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

Makes a new ArcRng with the given random seed.

pub fn with_lock<F, T>(&self, f: F) -> Result<T> where
    F: FnOnce(&mut StdRng) -> T, 
[src]

Acquires the lock of this instance and invokes f with the internal RNG.

Trait Implementations

impl Clone for ArcRng[src]

impl Debug for ArcRng[src]

impl RngCore for ArcRng[src]

Auto Trait Implementations

impl RefUnwindSafe for ArcRng

impl Send for ArcRng

impl Sync for ArcRng

impl Unpin for ArcRng

impl UnwindSafe for ArcRng

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<R> Rng for R where
    R: RngCore + ?Sized
[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 = !

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>,