Enum rust_sc2::player::Race [−][src]
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
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Race
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Race> for Race
[src]
impl StructuralEq for Race
[src]
impl StructuralPartialEq for Race
[src]
Auto Trait Implementations
impl RefUnwindSafe for Race
[src]
impl Send for Race
[src]
impl Sync for Race
[src]
impl Unpin for Race
[src]
impl UnwindSafe for Race
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,