Enum sc2::data::Alliance [−][src]
pub enum Alliance { Domestic, Ally, Neutral, Enemy, }
Relationship to this player.
Variants
Domestic
Unit is owned by this player.
Ally
Unit is an ally of this player.
Neutral
Unit is neutral to this player (usually a non-player unit).
Enemy
Unit is an enemy of the player.
Trait Implementations
impl Debug for Alliance
[src]
impl Debug for Alliance
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Alliance
[src]
impl PartialEq for Alliance
fn eq(&self, __arg_0: &Alliance) -> bool
[src]
fn eq(&self, __arg_0: &Alliance) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Alliance
[src]
impl Eq for Alliance
impl Copy for Alliance
[src]
impl Copy for Alliance
impl Clone for Alliance
[src]
impl Clone for Alliance
fn clone(&self) -> Alliance
[src]
fn clone(&self) -> Alliance
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<Alliance> for Alliance
[src]
impl From<Alliance> for Alliance