[][src]Enum screeps::constants::MarketResourceType

pub enum MarketResourceType {
    Resource(ResourceType),
    IntershardResource(IntershardResourceType),
}

Translates market resource types which can include both RESOURCE_* and INTERSHARD_RESOURCES constants.

Variants

Resource(ResourceType)
IntershardResource(IntershardResourceType)

Implementations

impl MarketResourceType[src]

pub fn deserialize_from_str<'de, D: Deserializer<'de>>(
    d: D
) -> Result<Self, D::Error>
[src]

Helper function for deserializing from a string rather than a fake integer value.

Trait Implementations

impl Clone for MarketResourceType[src]

impl Copy for MarketResourceType[src]

impl Debug for MarketResourceType[src]

impl<'de> Deserialize<'de> for MarketResourceType[src]

impl Eq for MarketResourceType[src]

impl Hash for MarketResourceType[src]

impl PartialEq<MarketResourceType> for MarketResourceType[src]

impl Serialize for MarketResourceType[src]

impl StructuralEq for MarketResourceType[src]

impl StructuralPartialEq for MarketResourceType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoExpectedType<U> for T where
    U: FromExpectedType<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.