Enum rust_sc2::player::Race[][src]

pub enum Race {
    Terran,
    Zerg,
    Protoss,
    Random,
}

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

impl Race[src]

pub fn is_terran(self) -> bool[src]

pub fn is_zerg(self) -> bool[src]

pub fn is_protoss(self) -> bool[src]

pub fn is_random(self) -> bool[src]

Trait Implementations

impl Clone for Race[src]

impl Copy for Race[src]

impl Debug for Race[src]

impl Default for Race[src]

impl Eq for Race[src]

impl FromStr for Race[src]

type Err = ParseEnumError

The associated error which can be returned from parsing.

impl Hash for Race[src]

impl PartialEq<Race> for Race[src]

impl StructuralEq for Race[src]

impl StructuralPartialEq for Race[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,