pub struct Player { /* private fields */ }
Implementations§
Source§impl Player
impl Player
pub fn new(player_number: PlayerNumber) -> Self
pub fn number(&self) -> PlayerNumber
pub fn register_win(&mut self, round_number: RoundNumber)
pub fn wins(&self) -> &HashSet<RoundNumber>
Trait Implementations§
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