pub enum PlayerRole {
Player,
AI,
}Variants§
Trait Implementations§
Source§impl Clone for PlayerRole
impl Clone for PlayerRole
Source§fn clone(&self) -> PlayerRole
fn clone(&self) -> PlayerRole
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 Debug for PlayerRole
impl Debug for PlayerRole
Source§impl<'de> Deserialize<'de> for PlayerRole
impl<'de> Deserialize<'de> for PlayerRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlayerRole
impl PartialEq for PlayerRole
Source§impl Serialize for PlayerRole
impl Serialize for PlayerRole
impl Copy for PlayerRole
impl Eq for PlayerRole
impl StructuralPartialEq for PlayerRole
Auto Trait Implementations§
impl Freeze for PlayerRole
impl RefUnwindSafe for PlayerRole
impl Send for PlayerRole
impl Sync for PlayerRole
impl Unpin for PlayerRole
impl UnwindSafe for PlayerRole
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