Enum screeps::constants::EffectType
source · pub enum EffectType {
PowerEffect(PowerType),
NaturalEffect(NaturalEffectType),
}
Expand description
Translates effect types on room objects, which can include both PWR_*
and
EFFECT_*
constants.
Variants§
PowerEffect(PowerType)
NaturalEffect(NaturalEffectType)
Trait Implementations§
source§impl Clone for EffectType
impl Clone for EffectType
source§fn clone(&self) -> EffectType
fn clone(&self) -> EffectType
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 EffectType
impl Debug for EffectType
source§impl FromWasmAbi for EffectType
impl FromWasmAbi for EffectType
source§impl Hash for EffectType
impl Hash for EffectType
source§impl IntoWasmAbi for EffectType
impl IntoWasmAbi for EffectType
source§impl PartialEq for EffectType
impl PartialEq for EffectType
source§fn eq(&self, other: &EffectType) -> bool
fn eq(&self, other: &EffectType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sequence for EffectType
impl Sequence for EffectType
impl Copy for EffectType
impl Eq for EffectType
impl StructuralPartialEq for EffectType
Auto Trait Implementations§
impl Freeze for EffectType
impl RefUnwindSafe for EffectType
impl Send for EffectType
impl Sync for EffectType
impl Unpin for EffectType
impl UnwindSafe for EffectType
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.