Trait rdeck::ToDeck

source ·
pub trait ToDeck<R: Rng> {
    type Out: Deck;

    // Required method
    fn to_deck(self, r: R) -> Self::Out;
}
Expand description

convert a container-like type into a Deck that can be drawn from.

Required Associated Types§

Required Methods§

source

fn to_deck(self, r: R) -> Self::Out

construct a Deck using the given rng.

Implementations on Foreign Types§

source§

impl<'a, R: Rng, T> ToDeck<R> for &'a [T]

§

type Out = SliceDeck<'a, R, T>

source§

fn to_deck(self, r: R) -> Self::Out

source§

impl<R: Rng> ToDeck<R> for Range<usize>

§

type Out = RangeDeck<R>

source§

fn to_deck(self, r: R) -> Self::Out

Implementors§