#[repr(u8)]pub enum ResourceType {
Show 21 variants
Mana = 0,
Rage = 1,
Focus = 2,
Energy = 3,
ComboPoints = 4,
Runes = 5,
RunicPower = 6,
SoulShards = 7,
LunarPower = 8,
HolyPower = 9,
Alternate = 10,
Maelstrom = 11,
Chi = 12,
Insanity = 13,
ArcaneCharges = 16,
Fury = 17,
Pain = 18,
Essence = 19,
AlternateQuest = 23,
AlternateEncounter = 24,
AlternateMount = 25,
}Variants§
Mana = 0
Rage = 1
Focus = 2
Energy = 3
ComboPoints = 4
Runes = 5
RunicPower = 6
SoulShards = 7
LunarPower = 8
HolyPower = 9
Alternate = 10
Maelstrom = 11
Chi = 12
Insanity = 13
ArcaneCharges = 16
Fury = 17
Pain = 18
Essence = 19
AlternateQuest = 23
AlternateEncounter = 24
AlternateMount = 25
Implementations§
Source§impl ResourceType
impl 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<ResourceType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceType, <__D as Deserializer<'de>>::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 JsValuewhere
ResourceType: Serialize,
impl From<ResourceType> for JsValuewhere
ResourceType: Serialize,
Source§fn from(value: ResourceType) -> JsValue
fn from(value: ResourceType) -> JsValue
Converts to this type from the input type.
Source§impl FromStr for ResourceType
impl FromStr for ResourceType
Source§impl FromWasmAbi for ResourceTypewhere
ResourceType: DeserializeOwned,
impl FromWasmAbi for ResourceTypewhere
ResourceType: DeserializeOwned,
Source§type Abi = <JsType as FromWasmAbi>::Abi
type Abi = <JsType as FromWasmAbi>::Abi
The Wasm ABI type that this converts from when coming back out from the
ABI boundary.
Source§unsafe fn from_abi(js: <ResourceType as FromWasmAbi>::Abi) -> ResourceType
unsafe fn from_abi(js: <ResourceType as FromWasmAbi>::Abi) -> ResourceType
Source§impl Hash for ResourceType
impl Hash for ResourceType
Source§impl IntoEnumIterator for ResourceType
impl IntoEnumIterator for ResourceType
type Iterator = ResourceTypeIter
fn iter() -> ResourceTypeIter
Source§impl IntoWasmAbi for &ResourceTypewhere
ResourceType: Serialize,
impl IntoWasmAbi for &ResourceTypewhere
ResourceType: Serialize,
Source§type Abi = <JsType as IntoWasmAbi>::Abi
type Abi = <JsType as IntoWasmAbi>::Abi
The Wasm ABI type that this converts into when crossing the ABI
boundary.
Source§fn into_abi(self) -> <&ResourceType as IntoWasmAbi>::Abi
fn into_abi(self) -> <&ResourceType as IntoWasmAbi>::Abi
Convert
self into Self::Abi so that it can be sent across the wasm
ABI boundary.Source§impl IntoWasmAbi for ResourceTypewhere
ResourceType: Serialize,
impl IntoWasmAbi for ResourceTypewhere
ResourceType: Serialize,
Source§type Abi = <JsType as IntoWasmAbi>::Abi
type Abi = <JsType as IntoWasmAbi>::Abi
The Wasm ABI type that this converts into when crossing the ABI
boundary.
Source§fn into_abi(self) -> <ResourceType as IntoWasmAbi>::Abi
fn into_abi(self) -> <ResourceType as IntoWasmAbi>::Abi
Convert
self into Self::Abi so that it can be sent across the wasm
ABI boundary.Source§impl OptionFromWasmAbi for ResourceTypewhere
ResourceType: DeserializeOwned,
impl OptionFromWasmAbi for ResourceTypewhere
ResourceType: DeserializeOwned,
Source§fn is_none(js: &<ResourceType as FromWasmAbi>::Abi) -> bool
fn is_none(js: &<ResourceType as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.Source§impl OptionIntoWasmAbi for ResourceTypewhere
ResourceType: Serialize,
impl OptionIntoWasmAbi for ResourceTypewhere
ResourceType: Serialize,
Source§fn none() -> <ResourceType as IntoWasmAbi>::Abi
fn none() -> <ResourceType as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moreSource§impl PartialEq for ResourceType
impl PartialEq for ResourceType
Source§impl RefFromWasmAbi for ResourceTypewhere
ResourceType: DeserializeOwned,
impl RefFromWasmAbi for ResourceTypewhere
ResourceType: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<ResourceType>
type Anchor = SelfOwner<ResourceType>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§unsafe fn ref_from_abi(
js: <ResourceType as RefFromWasmAbi>::Abi,
) -> <ResourceType as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <ResourceType as RefFromWasmAbi>::Abi, ) -> <ResourceType as RefFromWasmAbi>::Anchor
Source§impl Serialize for ResourceType
impl Serialize for ResourceType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for ResourceType
impl TryFrom<&str> for ResourceType
Source§impl TryFrom<u8> for ResourceType
impl TryFrom<u8> for ResourceType
Source§type Error = TryFromPrimitiveError<ResourceType>
type Error = TryFromPrimitiveError<ResourceType>
The type returned in the event of a conversion error.
Source§fn try_from(
number: u8,
) -> Result<ResourceType, TryFromPrimitiveError<ResourceType>>
fn try_from( number: u8, ) -> Result<ResourceType, TryFromPrimitiveError<ResourceType>>
Performs the conversion.
Source§impl TryFromPrimitive for ResourceType
impl TryFromPrimitive for ResourceType
const NAME: &'static str = "ResourceType"
type Primitive = u8
type Error = TryFromPrimitiveError<ResourceType>
fn try_from_primitive( number: <ResourceType as TryFromPrimitive>::Primitive, ) -> Result<ResourceType, TryFromPrimitiveError<ResourceType>>
Source§impl Tsify for ResourceType
impl Tsify for ResourceType
const DECL: &'static str = "export type ResourceType = \"Mana\" | \"Rage\" | \"Focus\" | \"Energy\" | \"ComboPoints\" | \"Runes\" | \"RunicPower\" | \"SoulShards\" | \"LunarPower\" | \"HolyPower\" | \"Alternate\" | \"Maelstrom\" | \"Chi\" | \"Insanity\" | \"ArcaneCharges\" | \"Fury\" | \"Pain\" | \"Essence\" | \"AlternateQuest\" | \"AlternateEncounter\" | \"AlternateMount\";"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for ResourceTypewhere
ResourceType: DeserializeOwned,
impl VectorFromWasmAbi for ResourceTypewhere
ResourceType: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <ResourceType as VectorFromWasmAbi>::Abi, ) -> Box<[ResourceType]>
Source§impl VectorIntoWasmAbi for ResourceTypewhere
ResourceType: Serialize,
impl VectorIntoWasmAbi for ResourceTypewhere
ResourceType: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[ResourceType]>, ) -> <ResourceType as VectorIntoWasmAbi>::Abi
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 UnsafeUnpin 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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
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.Source§impl<T> SpecConfig for T
impl<T> SpecConfig for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more