pub trait ToDice: Faces{
// 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§
fn to_dice<Rng>(self, rng: Rng) -> Dice<Self, Rng>
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.