Enum screeps::constants::EffectType
source · [−]pub enum EffectType {
PowerEffect(PowerType),
NaturalEffect(NaturalEffectType),
}
Expand description
Translates effect types which can include both PWR_*
and EFFECT_*
constants.
Variants
PowerEffect(PowerType)
NaturalEffect(NaturalEffectType)
Trait Implementations
sourceimpl Clone for EffectType
impl Clone for EffectType
sourcefn clone(&self) -> EffectType
fn clone(&self) -> EffectType
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 EffectType
impl Debug for EffectType
sourceimpl<'de> Deserialize<'de> for EffectType
impl<'de> Deserialize<'de> for EffectType
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 Hash for EffectType
impl Hash for EffectType
sourceimpl PartialEq<EffectType> for EffectType
impl PartialEq<EffectType> for EffectType
sourcefn 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 ==
. Read more
impl Copy for EffectType
impl Eq for EffectType
impl StructuralEq for EffectType
impl StructuralPartialEq for EffectType
Auto Trait Implementations
impl RefUnwindSafe for EffectType
impl Send for EffectType
impl Sync for EffectType
impl Unpin for EffectType
impl UnwindSafe for EffectType
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