[][src]Struct pusoy_dos2::game::Round

pub struct Round { /* fields omitted */ }

Methods

impl Round[src]

pub fn new(
    players: Vec<Player>,
    next_player: Option<String>,
    last_move: Option<Hand>,
    last_player: Option<String>,
    suit_order: [Suit; 4],
    rank_order: [Rank; 13],
    ruleset: Ruleset
) -> Round
[src]

pub fn get_next_player(&self) -> Option<String>[src]

pub fn submit_move(
    &self,
    user_id: &str,
    cards: Vec<PlayedCard>
) -> Result<Round, SubmitError>
[src]

pub fn get_player(&self, user_id: &str) -> Option<Player>[src]

pub fn get_last_move(&self) -> Option<Hand>[src]

pub fn get_last_player(&self) -> Option<String>[src]

pub fn get_suit_order(&self) -> [Suit; 4][src]

pub fn get_rank_order(&self) -> [Rank; 13][src]

Trait Implementations

impl Clone for Round[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Round[src]

Auto Trait Implementations

impl Send for Round

impl Sync for Round

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]