#[repr(u8)]pub enum PlayerType {
Empty = 0,
Player = 1,
Computer = 2,
Neutral = 3,
Observer = 4,
None = 5,
Other = 6,
}Expand description
What occupies a player slot.
Variants§
Trait Implementations§
Source§impl Clone for PlayerType
impl Clone for PlayerType
Source§fn clone(&self) -> PlayerType
fn clone(&self) -> PlayerType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerType
impl Debug for PlayerType
Source§impl Hash for PlayerType
impl Hash for PlayerType
Source§impl PartialEq for PlayerType
impl PartialEq for PlayerType
Source§fn eq(&self, other: &PlayerType) -> bool
fn eq(&self, other: &PlayerType) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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