#[repr(u8)]pub enum RacePreference {
Human = 1,
Orc = 2,
Nightelf = 4,
Undead = 8,
Demon = 16,
Random = 32,
UserSelectable = 64,
}Expand description
Race chosen by the player in the lobby. Bit-flag encoded.
Variants§
Trait Implementations§
Source§impl Clone for RacePreference
impl Clone for RacePreference
Source§fn clone(&self) -> RacePreference
fn clone(&self) -> RacePreference
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 RacePreference
impl Debug for RacePreference
Source§impl Hash for RacePreference
impl Hash for RacePreference
Source§impl PartialEq for RacePreference
impl PartialEq for RacePreference
Source§fn eq(&self, other: &RacePreference) -> bool
fn eq(&self, other: &RacePreference) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RacePreference
impl Eq for RacePreference
impl StructuralPartialEq for RacePreference
Auto Trait Implementations§
impl Freeze for RacePreference
impl RefUnwindSafe for RacePreference
impl Send for RacePreference
impl Sync for RacePreference
impl Unpin for RacePreference
impl UnsafeUnpin for RacePreference
impl UnwindSafe for RacePreference
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