Enum screeps::constants::MarketResourceType
source · pub enum MarketResourceType {
Resource(ResourceType),
IntershardResource(IntershardResourceType),
}
Expand description
Translates all resource types that can be used on the market.
Variants§
Resource(ResourceType)
IntershardResource(IntershardResourceType)
Trait Implementations§
source§impl Clone for MarketResourceType
impl Clone for MarketResourceType
source§fn clone(&self) -> MarketResourceType
fn clone(&self) -> MarketResourceType
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 MarketResourceType
impl Debug for MarketResourceType
source§impl<'de> Deserialize<'de> for MarketResourceType
impl<'de> Deserialize<'de> for MarketResourceType
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 FromWasmAbi for MarketResourceType
impl FromWasmAbi for MarketResourceType
source§impl Hash for MarketResourceType
impl Hash for MarketResourceType
source§impl IntoWasmAbi for MarketResourceType
impl IntoWasmAbi for MarketResourceType
source§impl PartialEq for MarketResourceType
impl PartialEq for MarketResourceType
source§fn eq(&self, other: &MarketResourceType) -> bool
fn eq(&self, other: &MarketResourceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sequence for MarketResourceType
impl Sequence for MarketResourceType
source§impl Serialize for MarketResourceType
impl Serialize for MarketResourceType
impl Copy for MarketResourceType
impl Eq for MarketResourceType
impl StructuralEq for MarketResourceType
impl StructuralPartialEq for MarketResourceType
Auto Trait Implementations§
impl RefUnwindSafe for MarketResourceType
impl Send for MarketResourceType
impl Sync for MarketResourceType
impl Unpin for MarketResourceType
impl UnwindSafe for MarketResourceType
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
.