pub enum Race {
Terran,
Zerg,
Protoss,
Random,
}Expand description
Representation of game races (your gender in SC2).
Variants§
Terran
Brutal mens, who try to survive in this world.
Zerg
Ruthless insects of incredibly big size. What a nightmare?
Protoss
Kinda high-tech guys, who build cannons and batteries near your base “just for scouting”.
Random
Use when you didn’t decide your race yet or just want to play them all.
Implementations§
Trait Implementations§
impl Copy for Race
impl Eq for Race
impl StructuralPartialEq for Race
Auto Trait Implementations§
impl Freeze for Race
impl RefUnwindSafe for Race
impl Send for Race
impl Sync for Race
impl Unpin for Race
impl UnwindSafe for Race
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.