[][src]Struct pusoy_dos2::cards::Deck

pub struct Deck(_);

Methods

impl Deck[src]

pub fn new(number_of_decks: u8, number_of_jokers: u8) -> Deck[src]

pub fn shuffle(&mut self)[src]

pub fn deal(&self, players: u8) -> Vec<Vec<Card>>[src]

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

pub fn to_vec(&self) -> Vec<Card>[src]

Trait Implementations

impl Clone for Deck[src]

Auto Trait Implementations

impl RefUnwindSafe for Deck

impl Send for Deck

impl Sync for Deck

impl Unpin for Deck

impl UnwindSafe for Deck

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.