Enum screeps::constants::ResourceType  
source · #[repr(u32)]
pub enum ResourceType {
Show 43 variants
    Energy,
    Power,
    Hydrogen,
    Oxygen,
    Utrium,
    Lemergium,
    Keanium,
    Zynthium,
    Catalyst,
    Ghodium,
    Hydroxide,
    ZynthiumKeanite,
    UtriumLemergite,
    UtriumHydride,
    UtriumOxide,
    KeaniumHydride,
    KeaniumOxide,
    LemergiumHydride,
    LemergiumOxide,
    ZynthiumHydride,
    ZynthiumOxide,
    GhodiumHydride,
    GhodiumOxide,
    UtriumAcid,
    UtriumAlkalide,
    KeaniumAcid,
    KeaniumAlkalide,
    LemergiumAcid,
    LemergiumAlkalide,
    ZynthiumAcid,
    ZynthiumAlkalide,
    GhodiumAcid,
    GhodiumAlkalide,
    CatalyzedUtriumAcid,
    CatalyzedUtriumAlkalide,
    CatalyzedKeaniumAcid,
    CatalyzedKeaniumAlkalide,
    CatalyzedLemergiumAcid,
    CatalyzedLemergiumAlkalide,
    CatalyzedZynthiumAcid,
    CatalyzedZynthiumAlkalide,
    CatalyzedGhodiumAcid,
    CatalyzedGhodiumAlkalide,
}Variants
Energy
"energy"
Power
"power"
Hydrogen
"H"
Oxygen
"O"
Utrium
"U"
Lemergium
"L"
Keanium
"K"
Zynthium
"Z"
Catalyst
"X"
Ghodium
"G"
Hydroxide
"OH"
ZynthiumKeanite
"ZK"
UtriumLemergite
"UL"
UtriumHydride
"UH"
UtriumOxide
"UO"
KeaniumHydride
"KH"
KeaniumOxide
"KO"
LemergiumHydride
"LH"
LemergiumOxide
"LO"
ZynthiumHydride
"ZH"
ZynthiumOxide
"ZO"
GhodiumHydride
"GH"
GhodiumOxide
"GO"
UtriumAcid
"UH2O"
UtriumAlkalide
"UHO2"
KeaniumAcid
"KH2O"
KeaniumAlkalide
"KHO2"
LemergiumAcid
"LH2O"
LemergiumAlkalide
"LHO2"
ZynthiumAcid
"ZH2O"
ZynthiumAlkalide
"ZHO2"
GhodiumAcid
"GH2O"
GhodiumAlkalide
"GHO2"
CatalyzedUtriumAcid
"XUH2O"
CatalyzedUtriumAlkalide
"XUHO2"
CatalyzedKeaniumAcid
"XKH2O"
CatalyzedKeaniumAlkalide
"XKHO2"
CatalyzedLemergiumAcid
"XLH2O"
CatalyzedLemergiumAlkalide
"XLHO2"
CatalyzedZynthiumAcid
"XZH2O"
CatalyzedZynthiumAlkalide
"XZHO2"
CatalyzedGhodiumAcid
"XGH2O"
CatalyzedGhodiumAlkalide
"XGHO2"
Implementations
sourceimpl ResourceType
 
impl ResourceType
sourcepub fn reaction_time(self) -> u32
 
pub fn reaction_time(self) -> u32
Returns REACTION_TIME for this resource. 0 for energy and base minerals.
Trait Implementations
sourceimpl Clone for ResourceType
 
impl Clone for ResourceType
sourcefn clone(&self) -> ResourceType
 
fn clone(&self) -> ResourceType
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 moresourceimpl Debug for ResourceType
 
impl Debug for ResourceType
sourceimpl PartialEq<ResourceType> for ResourceType
 
impl PartialEq<ResourceType> for ResourceType
sourcefn eq(&self, other: &ResourceType) -> bool
 
fn eq(&self, other: &ResourceType) -> bool
sourceimpl TryFrom<Value> for ResourceType
 
impl TryFrom<Value> for ResourceType
impl Copy for ResourceType
impl StructuralPartialEq for ResourceType
Auto Trait Implementations
impl RefUnwindSafe for ResourceType
impl Send for ResourceType
impl Sync for ResourceType
impl Unpin for ResourceType
impl UnwindSafe for ResourceType
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