pub struct GamePlayers {
pub multiplayer_count: MultiplayerCount,
/* private fields */
}
Fields§
§multiplayer_count: MultiplayerCount
Implementations§
Source§impl GamePlayers
impl GamePlayers
pub fn new(multiplayer_count: MultiplayerCount) -> Self
pub fn as_vec(&self) -> Vec<&Player>
pub fn register_win( &mut self, player_number: PlayerNumber, round_number: RoundNumber, ) -> Result<(), MissingPlayerError>
Trait Implementations§
Source§impl Clone for GamePlayers
impl Clone for GamePlayers
Source§fn clone(&self) -> GamePlayers
fn clone(&self) -> GamePlayers
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for GamePlayers
impl RefUnwindSafe for GamePlayers
impl Send for GamePlayers
impl Sync for GamePlayers
impl Unpin for GamePlayers
impl UnwindSafe for GamePlayers
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