Enum screeps::objects::AttackType
source · [−]#[repr(u8)]
pub enum AttackType {
Melee,
Ranged,
RangedMass,
Dismantle,
HitBack,
Nuke,
}Variants
Melee
Ranged
RangedMass
Dismantle
HitBack
Nuke
Trait Implementations
sourceimpl Clone for AttackType
impl Clone for AttackType
sourcefn clone(&self) -> AttackType
fn clone(&self) -> AttackType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AttackType
impl Debug for AttackType
sourceimpl<'de> Deserialize<'de> for AttackType
impl<'de> Deserialize<'de> for AttackType
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<AttackType> for AttackType
impl PartialEq<AttackType> for AttackType
sourcefn eq(&self, other: &AttackType) -> bool
fn eq(&self, other: &AttackType) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for AttackType
impl Serialize for AttackType
impl Eq for AttackType
impl StructuralEq for AttackType
impl StructuralPartialEq for AttackType
Auto Trait Implementations
impl RefUnwindSafe for AttackType
impl Send for AttackType
impl Sync for AttackType
impl Unpin for AttackType
impl UnwindSafe for AttackType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more