Struct rust_sc2::units::PlayerUnits [−][src]
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: Units
All player units (includes both units and structures).
units: Units
Units only, without structures.
structures: Units
Structures only.
townhalls: Units
From all structures only townhalls here.
workers: Units
Workers only (doesn’t include MULEs).
gas_buildings: Units
The gas buildings on geysers used to gather gas.
larvas: Units
Most of zerg units are morphed from it (Populated for zergs only).
placeholders: Units
Kind of things that appear when you order worker to build something but construction didn’t started yet.
Trait Implementations
impl Clone for PlayerUnits
[src]
impl Clone for PlayerUnits
[src]fn clone(&self) -> PlayerUnits
[src]
fn clone(&self) -> PlayerUnits
[src]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 Default for PlayerUnits
[src]
impl Default for PlayerUnits
[src]fn default() -> PlayerUnits
[src]
fn default() -> PlayerUnits
[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for PlayerUnits
impl !Send for PlayerUnits
impl !Sync for PlayerUnits
impl Unpin for PlayerUnits
impl !UnwindSafe for PlayerUnits
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,