Enum rust_sc2::player::Race [−][src]
pub enum Race { Terran, Zerg, Protoss, Random, }
Expand description
Representation of game races (your gender in SC2).
Variants
Brutal mens, who try to survive in this world.
Ruthless insects of incredibly big size. What a nightmare?
Kinda high-tech guys, who build cannons and batteries near your base “just for scouting”.
Use when you didn’t decide your race yet or just want to play them all.
Implementations
Trait Implementations
impl Copy for Race
[src]
impl Eq for Race
[src]
impl StructuralEq for Race
[src]
impl StructuralPartialEq for Race
[src]
Auto Trait Implementations
impl RefUnwindSafe for Race
impl Send for Race
impl Sync for Race
impl Unpin for Race
impl UnwindSafe for Race
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,