pub enum Attribute {
Light,
Armored,
Biological,
Mechanical,
Robotic,
Psionic,
Massive,
Structure,
Hover,
Heroic,
Summoned,
}
Expand description
Differents attributes of units.
Variants§
Implementations§
Source§impl Attribute
impl Attribute
pub fn is_light(self) -> bool
pub fn is_armored(self) -> bool
pub fn is_biological(self) -> bool
pub fn is_mechanical(self) -> bool
pub fn is_robotic(self) -> bool
pub fn is_psionic(self) -> bool
pub fn is_massive(self) -> bool
pub fn is_structure(self) -> bool
pub fn is_hover(self) -> bool
pub fn is_heroic(self) -> bool
pub fn is_summoned(self) -> bool
Trait Implementations§
impl Copy for Attribute
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.