Enum sc2::data::PlayerSetup [−][src]
pub enum PlayerSetup {
Computer(Race, Difficulty),
Player(Race),
}Settings for players.
Variants
Computer(Race, Difficulty)Add a built-in StarCraft II bot with the given race and difficulty.
Player(Race)Add a user-controlled player.
Methods
impl PlayerSetup[src]
impl PlayerSetuppub fn is_player(&self) -> bool[src]
pub fn is_player(&self) -> boolDoes the PlayerSetup represent a player?
pub fn is_computer(&self) -> bool[src]
pub fn is_computer(&self) -> boolDoes the PlayerSetup represent a computer?
Trait Implementations
impl Debug for PlayerSetup[src]
impl Debug for PlayerSetupfn 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 Copy for PlayerSetup[src]
impl Copy for PlayerSetupimpl Clone for PlayerSetup[src]
impl Clone for PlayerSetupfn clone(&self) -> PlayerSetup[src]
fn clone(&self) -> PlayerSetupReturns 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
Auto Trait Implementations
impl Send for PlayerSetup
impl Send for PlayerSetupimpl Sync for PlayerSetup
impl Sync for PlayerSetup