#[repr(u8)]pub enum PlayerGameResult {
Victory = 0,
Defeat = 1,
Tie = 2,
Neutral = 3,
}Expand description
End-of-game result for a player.
Variants§
Trait Implementations§
Source§impl Clone for PlayerGameResult
impl Clone for PlayerGameResult
Source§fn clone(&self) -> PlayerGameResult
fn clone(&self) -> PlayerGameResult
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 PlayerGameResult
impl Debug for PlayerGameResult
Source§impl Hash for PlayerGameResult
impl Hash for PlayerGameResult
Source§impl PartialEq for PlayerGameResult
impl PartialEq for PlayerGameResult
Source§fn eq(&self, other: &PlayerGameResult) -> bool
fn eq(&self, other: &PlayerGameResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PlayerGameResult
impl Eq for PlayerGameResult
impl StructuralPartialEq for PlayerGameResult
Auto Trait Implementations§
impl Freeze for PlayerGameResult
impl RefUnwindSafe for PlayerGameResult
impl Send for PlayerGameResult
impl Sync for PlayerGameResult
impl Unpin for PlayerGameResult
impl UnsafeUnpin for PlayerGameResult
impl UnwindSafe for PlayerGameResult
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