pub enum PlayerType {
Participant,
Computer,
Observer,
}
Expand description
Type of the player, used when joining a game.
Variants§
Participant
Bot or Human.
Computer
In-game AI (aka Computer).
Observer
Player who just watch game or replay.
Trait Implementations§
Source§impl Clone for PlayerType
impl Clone for PlayerType
Source§fn clone(&self) -> PlayerType
fn clone(&self) -> PlayerType
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 moreSource§impl PartialEq for PlayerType
impl PartialEq for PlayerType
impl Copy for PlayerType
impl Eq for PlayerType
impl StructuralPartialEq for PlayerType
Auto Trait Implementations§
impl Freeze for PlayerType
impl RefUnwindSafe for PlayerType
impl Send for PlayerType
impl Sync for PlayerType
impl Unpin for PlayerType
impl UnwindSafe for PlayerType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.