Enum sc2::data::Alliance [−][src]
pub enum Alliance {
Domestic,
Ally,
Neutral,
Enemy,
}Relationship to this player.
Variants
DomesticUnit is owned by this player.
AllyUnit is an ally of this player.
NeutralUnit is neutral to this player (usually a non-player unit).
EnemyUnit is an enemy of the player.
Trait Implementations
impl Debug for Alliance[src]
impl Debug for Alliancefn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Alliance[src]
impl PartialEq for Alliancefn eq(&self, __arg_0: &Alliance) -> bool[src]
fn eq(&self, __arg_0: &Alliance) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Alliance[src]
impl Eq for Allianceimpl Copy for Alliance[src]
impl Copy for Allianceimpl Clone for Alliance[src]
impl Clone for Alliancefn clone(&self) -> Alliance[src]
fn clone(&self) -> AllianceReturns 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