pub struct PlayerUnits {
pub all: Units,
pub units: Units,
pub structures: Units,
pub townhalls: Units,
pub workers: Units,
pub gas_buildings: Units,
pub larvas: Units,
pub placeholders: Units,
}Expand description
Structured player units (yours or opponent’s).
Fields§
§all: UnitsAll player units (includes both units and structures).
units: UnitsUnits only, without structures.
structures: UnitsStructures only.
townhalls: UnitsFrom all structures only townhalls here.
workers: UnitsWorkers only (doesn’t include MULEs).
gas_buildings: UnitsThe gas buildings on geysers used to gather gas.
larvas: UnitsMost of zerg units are morphed from it (Populated for zergs only).
placeholders: UnitsKind of things that appear when you order worker to build something but construction didn’t started yet.
Trait Implementations§
Source§impl Clone for PlayerUnits
impl Clone for PlayerUnits
Source§fn clone(&self) -> PlayerUnits
fn clone(&self) -> PlayerUnits
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PlayerUnits
impl Default for PlayerUnits
Source§fn default() -> PlayerUnits
fn default() -> PlayerUnits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlayerUnits
impl !RefUnwindSafe for PlayerUnits
impl !Send for PlayerUnits
impl !Sync for PlayerUnits
impl Unpin for PlayerUnits
impl !UnwindSafe for PlayerUnits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more