ToDice

Trait ToDice 

Source
pub trait ToDice: Faces
where Self: Index<usize> + Sized, <Self as Index<usize>>::Output: Sized,
{ // Provided methods fn to_dice<Rng>(self, rng: Rng) -> Dice<Self, Rng> where Self: Sized, Rng: CryptoRng + Rng { ... } fn dice(self) -> Dice<Self, ThreadRng> { ... } }

Provided Methods§

Source

fn to_dice<Rng>(self, rng: Rng) -> Dice<Self, Rng>
where Self: Sized, Rng: CryptoRng + Rng,

Source

fn dice(self) -> Dice<Self, ThreadRng>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> ToDice for T
where T: Faces + Index<usize> + Sized, <T as Index<usize>>::Output: Sized,