Struct libcoinche::cards::Hand [] [src]

pub struct Hand(_);

Represents an unordered set of cards.

Methods

impl Hand
[src]

Returns an empty hand.

Add card to self.

No effect if self already contains card.

Removes card from self.

No effect if self does not contains card.

Remove all cards from self.

Returns true if self contains card.

Returns true if the hand contains any card of the given suit.

Returns true if self contains no card.

Returns a card from self.

Returns an invalid card if self is empty.

Returns the cards contained in self as a Vec.

Returns the number of cards in self.

Trait Implementations

impl PartialEq for Hand
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Hand
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Hand
[src]

impl Debug for Hand
[src]

Formats the value using the given formatter.

impl ToString for Hand
[src]

Returns a string representation of self.