[][src]Struct loaded_dice::LoadedDiceSampler

pub struct LoadedDiceSampler<R: Rng> { /* fields omitted */ }

Implementations

impl<R: Rng> LoadedDiceSampler<R>[src]

pub fn new(probs: Vec<f64>, rng: R) -> Self[src]

pub fn sample(&mut self) -> usize[src]

Trait Implementations

impl<R: Clone + Rng> Clone for LoadedDiceSampler<R>[src]

impl<R: Debug + Rng> Debug for LoadedDiceSampler<R>[src]

impl<R: PartialEq + Rng> PartialEq<LoadedDiceSampler<R>> for LoadedDiceSampler<R>[src]

impl<R: Rng> StructuralPartialEq for LoadedDiceSampler<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for LoadedDiceSampler<R> where
    R: RefUnwindSafe

impl<R> Send for LoadedDiceSampler<R> where
    R: Send

impl<R> Sync for LoadedDiceSampler<R> where
    R: Sync

impl<R> Unpin for LoadedDiceSampler<R> where
    R: Unpin

impl<R> UnwindSafe for LoadedDiceSampler<R> where
    R: UnwindSafe

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