Enum screeps::constants::PowerCreepClass
source · pub enum PowerCreepClass {
Operator = 0,
// some variants omitted
}
Expand description
Translates the POWER_CLASS
constants, which are classes of power creeps
Variants§
Operator = 0
Implementations§
source§impl PowerCreepClass
impl PowerCreepClass
pub fn from_js_value(obj: &JsValue) -> Option<PowerCreepClass>
Trait Implementations§
source§impl Clone for PowerCreepClass
impl Clone for PowerCreepClass
source§fn clone(&self) -> PowerCreepClass
fn clone(&self) -> PowerCreepClass
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 PowerCreepClass
impl Debug for PowerCreepClass
source§impl<'de> Deserialize<'de> for PowerCreepClass
impl<'de> Deserialize<'de> for PowerCreepClass
source§fn 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
source§impl Display for PowerCreepClass
impl Display for PowerCreepClass
source§impl From<PowerCreepClass> for JsValue
impl From<PowerCreepClass> for JsValue
source§fn from(obj: PowerCreepClass) -> JsValue
fn from(obj: PowerCreepClass) -> JsValue
Converts to this type from the input type.
source§impl FromStr for PowerCreepClass
impl FromStr for PowerCreepClass
source§impl FromWasmAbi for PowerCreepClass
impl FromWasmAbi for PowerCreepClass
source§impl Hash for PowerCreepClass
impl Hash for PowerCreepClass
source§impl IntoWasmAbi for PowerCreepClass
impl IntoWasmAbi for PowerCreepClass
source§impl OptionFromWasmAbi for PowerCreepClass
impl OptionFromWasmAbi for PowerCreepClass
source§impl OptionIntoWasmAbi for PowerCreepClass
impl OptionIntoWasmAbi for PowerCreepClass
source§impl PartialEq for PowerCreepClass
impl PartialEq for PowerCreepClass
source§fn eq(&self, other: &PowerCreepClass) -> bool
fn eq(&self, other: &PowerCreepClass) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sequence for PowerCreepClass
impl Sequence for PowerCreepClass
source§impl Serialize for PowerCreepClass
impl Serialize for PowerCreepClass
impl Copy for PowerCreepClass
impl Eq for PowerCreepClass
impl StructuralEq for PowerCreepClass
impl StructuralPartialEq for PowerCreepClass
Auto Trait Implementations§
impl RefUnwindSafe for PowerCreepClass
impl Send for PowerCreepClass
impl Sync for PowerCreepClass
impl Unpin for PowerCreepClass
impl UnwindSafe for PowerCreepClass
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
.