Struct bwapi_wrapper::BWAPI_UnitType
source · #[repr(C)]pub struct BWAPI_UnitType {
pub _base: u32,
}
Expand description
The UnitType is used to get information about a particular type of unit, such as its cost, build time, weapon, hit points, abilities, etc.
@see UnitInterface::getType, UnitTypes @ingroup TypeClasses
Fields§
§_base: u32
Trait Implementations§
source§impl Clone for BWAPI_UnitType
impl Clone for BWAPI_UnitType
source§fn clone(&self) -> BWAPI_UnitType
fn clone(&self) -> BWAPI_UnitType
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 Debug for BWAPI_UnitType
impl Debug for BWAPI_UnitType
source§impl Hash for BWAPI_UnitType
impl Hash for BWAPI_UnitType
source§impl PartialEq for BWAPI_UnitType
impl PartialEq for BWAPI_UnitType
source§fn eq(&self, other: &BWAPI_UnitType) -> bool
fn eq(&self, other: &BWAPI_UnitType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BWAPI_UnitType
impl Eq for BWAPI_UnitType
impl StructuralPartialEq for BWAPI_UnitType
Auto Trait Implementations§
impl RefUnwindSafe for BWAPI_UnitType
impl Send for BWAPI_UnitType
impl Sync for BWAPI_UnitType
impl Unpin for BWAPI_UnitType
impl UnwindSafe for BWAPI_UnitType
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