Enum screeps::constants::power::PowerCreepClass
source · #[non_exhaustive]#[repr(u32)]pub enum PowerCreepClass {
Operator = 0,
}
Expand description
Translates the POWER_CLASS
constants, which are classes of power creeps
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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(val: PowerCreepClass) -> Self
fn from(val: PowerCreepClass) -> Self
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§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 StructuralPartialEq for PowerCreepClass
Auto Trait Implementations§
impl Freeze for PowerCreepClass
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
.