pub struct Player { /* private fields */ }Implementations§
Source§impl Player
impl Player
pub fn new(id: Uuid, is_bot: bool, cards: [Option<usize>; 13]) -> Self
pub fn get_cards(&self) -> [Option<&Card>; 13]
pub fn get_cards_and_pos_in_deck(&self) -> [Option<(PositionInDeck, &Card)>; 13]
pub fn has_card(&self, card_p: usize) -> bool
pub fn get_score(&self) -> usize
pub fn get_id(&self) -> Uuid
pub fn is_bot(&self) -> bool
Trait Implementations§
impl Copy for Player
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more