#[non_exhaustive]#[repr(u32)]pub enum ResourceType {
Show 108 variants
    Energy = 0,
    Power = 1,
    Hydrogen = 2,
    Oxygen = 3,
    Utrium = 4,
    Lemergium = 5,
    Keanium = 6,
    Zynthium = 7,
    Catalyst = 8,
    Ghodium = 9,
    Silicon = 10,
    Metal = 11,
    Biomass = 12,
    Mist = 13,
    Hydroxide = 14,
    ZynthiumKeanite = 15,
    UtriumLemergite = 16,
    UtriumHydride = 17,
    UtriumOxide = 18,
    KeaniumHydride = 19,
    KeaniumOxide = 20,
    LemergiumHydride = 21,
    LemergiumOxide = 22,
    ZynthiumHydride = 23,
    ZynthiumOxide = 24,
    GhodiumHydride = 25,
    GhodiumOxide = 26,
    UtriumAcid = 27,
    UtriumAlkalide = 28,
    KeaniumAcid = 29,
    KeaniumAlkalide = 30,
    LemergiumAcid = 31,
    LemergiumAlkalide = 32,
    ZynthiumAcid = 33,
    ZynthiumAlkalide = 34,
    GhodiumAcid = 35,
    GhodiumAlkalide = 36,
    CatalyzedUtriumAcid = 37,
    CatalyzedUtriumAlkalide = 38,
    CatalyzedKeaniumAcid = 39,
    CatalyzedKeaniumAlkalide = 40,
    CatalyzedLemergiumAcid = 41,
    CatalyzedLemergiumAlkalide = 42,
    CatalyzedZynthiumAcid = 43,
    CatalyzedZynthiumAlkalide = 44,
    CatalyzedGhodiumAcid = 45,
    CatalyzedGhodiumAlkalide = 46,
    Ops = 47,
    UtriumBar = 48,
    LemergiumBar = 49,
    ZynthiumBar = 50,
    KeaniumBar = 51,
    GhodiumMelt = 52,
    Oxidant = 53,
    Reductant = 54,
    Purifier = 55,
    Battery = 56,
    Composite = 57,
    Crystal = 58,
    Liquid = 59,
    Wire = 60,
    Switch = 61,
    Transistor = 62,
    Microchip = 63,
    Circuit = 64,
    Device = 65,
    Cell = 66,
    Phlegm = 67,
    Tissue = 68,
    Muscle = 69,
    Organoid = 70,
    Organism = 71,
    Alloy = 72,
    Tube = 73,
    Fixtures = 74,
    Frame = 75,
    Hydraulics = 76,
    Machine = 77,
    Condensate = 78,
    Concentrate = 79,
    Extract = 80,
    Spirit = 81,
    Emanation = 82,
    Essence = 83,
    Score = 84,
    SymbolAleph = 85,
    SymbolBeth = 86,
    SymbolGimmel = 87,
    SymbolDaleth = 88,
    SymbolHe = 89,
    SymbolWaw = 90,
    SymbolZayin = 91,
    SymbolHeth = 92,
    SymbolTeth = 93,
    SymbolYodh = 94,
    SymbolKaph = 95,
    SymbolLamedh = 96,
    SymbolMem = 97,
    SymbolNun = 98,
    SymbolSamekh = 99,
    SymbolAyin = 100,
    SymbolPe = 101,
    SymbolTsade = 102,
    SymbolQoph = 103,
    SymbolRes = 104,
    SymbolSin = 105,
    SymbolTaw = 106,
    Thorium = 107,
}Expand description
Translates the values of the RESOURCES_ALL constant, representing all
possible in-game (non-intershard) resources.
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.
Energy = 0
Power = 1
Hydrogen = 2
Oxygen = 3
Utrium = 4
Lemergium = 5
Keanium = 6
Zynthium = 7
Catalyst = 8
Ghodium = 9
Silicon = 10
Metal = 11
Biomass = 12
Mist = 13
Hydroxide = 14
ZynthiumKeanite = 15
UtriumLemergite = 16
UtriumHydride = 17
UtriumOxide = 18
KeaniumHydride = 19
KeaniumOxide = 20
LemergiumHydride = 21
LemergiumOxide = 22
ZynthiumHydride = 23
ZynthiumOxide = 24
GhodiumHydride = 25
GhodiumOxide = 26
UtriumAcid = 27
UtriumAlkalide = 28
KeaniumAcid = 29
KeaniumAlkalide = 30
LemergiumAcid = 31
LemergiumAlkalide = 32
ZynthiumAcid = 33
ZynthiumAlkalide = 34
GhodiumAcid = 35
GhodiumAlkalide = 36
CatalyzedUtriumAcid = 37
CatalyzedUtriumAlkalide = 38
CatalyzedKeaniumAcid = 39
CatalyzedKeaniumAlkalide = 40
CatalyzedLemergiumAcid = 41
CatalyzedLemergiumAlkalide = 42
CatalyzedZynthiumAcid = 43
CatalyzedZynthiumAlkalide = 44
CatalyzedGhodiumAcid = 45
CatalyzedGhodiumAlkalide = 46
Ops = 47
UtriumBar = 48
LemergiumBar = 49
ZynthiumBar = 50
KeaniumBar = 51
GhodiumMelt = 52
Oxidant = 53
Reductant = 54
Purifier = 55
Battery = 56
Composite = 57
Crystal = 58
Liquid = 59
Wire = 60
Switch = 61
Transistor = 62
Microchip = 63
Circuit = 64
Device = 65
Cell = 66
Phlegm = 67
Tissue = 68
Muscle = 69
Organoid = 70
Organism = 71
Alloy = 72
Tube = 73
Fixtures = 74
Frame = 75
Hydraulics = 76
Machine = 77
Condensate = 78
Concentrate = 79
Extract = 80
Spirit = 81
Emanation = 82
Essence = 83
Score = 84
SymbolAleph = 85
SymbolBeth = 86
SymbolGimmel = 87
SymbolDaleth = 88
SymbolHe = 89
SymbolWaw = 90
SymbolZayin = 91
SymbolHeth = 92
SymbolTeth = 93
SymbolYodh = 94
SymbolKaph = 95
SymbolLamedh = 96
SymbolMem = 97
SymbolNun = 98
SymbolSamekh = 99
SymbolAyin = 100
SymbolPe = 101
SymbolTsade = 102
SymbolQoph = 103
SymbolRes = 104
SymbolSin = 105
SymbolTaw = 106
Thorium = 107
Implementations§
Source§impl ResourceType
 
impl ResourceType
Sourcepub const fn reaction_components(self) -> Option<[ResourceType; 2]>
 
pub const fn reaction_components(self) -> Option<[ResourceType; 2]>
Translates the REACTIONS constant.
Sourcepub const fn reaction_time(self) -> Option<u32>
 
pub const fn reaction_time(self) -> Option<u32>
Translates the REACTION_TIME constant.
Sourcepub fn commodity_recipe(self) -> Option<FactoryRecipe>
 
pub fn commodity_recipe(self) -> Option<FactoryRecipe>
Translates the COMMODITIES constant to recipes that can be used by a
factory to make each commodity
Source§impl ResourceType
 
impl ResourceType
pub fn from_js_value(obj: &JsValue) -> Option<ResourceType>
Trait Implementations§
Source§impl Clone for ResourceType
 
impl Clone for ResourceType
Source§fn clone(&self) -> ResourceType
 
fn clone(&self) -> ResourceType
Returns a duplicate 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 ResourceType
 
impl Debug for ResourceType
Source§impl<'de> Deserialize<'de> for ResourceType
 
impl<'de> Deserialize<'de> for ResourceType
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 ResourceType
 
impl Display for ResourceType
Source§impl From<ResourceType> for JsValue
 
impl From<ResourceType> for JsValue
Source§fn from(val: ResourceType) -> Self
 
fn from(val: ResourceType) -> Self
Converts to this type from the input type.
Source§impl FromStr for ResourceType
 
impl FromStr for ResourceType
Source§impl FromWasmAbi for ResourceType
 
impl FromWasmAbi for ResourceType
Source§impl Hash for ResourceType
 
impl Hash for ResourceType
Source§impl IntoWasmAbi for ResourceType
 
impl IntoWasmAbi for ResourceType
Source§impl OptionFromWasmAbi for ResourceType
 
impl OptionFromWasmAbi for ResourceType
Source§impl OptionIntoWasmAbi for ResourceType
 
impl OptionIntoWasmAbi for ResourceType
Source§impl PartialEq for ResourceType
 
impl PartialEq for ResourceType
Source§impl Sequence for ResourceType
 
impl Sequence for ResourceType
Source§impl Serialize for ResourceType
 
impl Serialize for ResourceType
impl Copy for ResourceType
impl Eq for ResourceType
impl StructuralPartialEq for ResourceType
Auto Trait Implementations§
impl Freeze for ResourceType
impl RefUnwindSafe for ResourceType
impl Send for ResourceType
impl Sync for ResourceType
impl Unpin for ResourceType
impl UnwindSafe for ResourceType
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§impl<T> ReturnWasmAbi for Twhere
    T: IntoWasmAbi,
 
impl<T> ReturnWasmAbi for Twhere
    T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
 
type Abi = <T as IntoWasmAbi>::Abi
Same as 
IntoWasmAbi::AbiSource§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.