Enum screeps::constants::ResourceType [] [src]

#[repr(u32)]
pub enum ResourceType { 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"

"power"

"H"

"O"

"U"

"L"

"K"

"Z"

"X"

"G"

"OH"

"ZK"

"UL"

"UH"

"UO"

"KH"

"KO"

"LH"

"LO"

"ZH"

"ZO"

"GH"

"GO"

"UH2O"

"UHO2"

"KH2O"

"KHO2"

"LH2O"

"LHO2"

"ZH2O"

"ZHO2"

"GH2O"

"GHO2"

"XUH2O"

"XUHO2"

"XKH2O"

"XKHO2"

"XLH2O"

"XLHO2"

"XZH2O"

"XZHO2"

"XGH2O"

"XGHO2"

Methods

impl ResourceType
[src]

[src]

Returns REACTION_TIME for this resource. 0 for energy and base minerals.

Trait Implementations

impl Copy for ResourceType
[src]

impl Clone for ResourceType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ResourceType
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ResourceType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl TryFrom<Value> for ResourceType
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ResourceType

impl Sync for ResourceType