#[repr(u8)]pub enum ClassId {
Show 13 variants
Warrior = 1,
Paladin = 2,
Hunter = 3,
Rogue = 4,
Priest = 5,
DeathKnight = 6,
Shaman = 7,
Mage = 8,
Warlock = 9,
Monk = 10,
Druid = 11,
DemonHunter = 12,
Evoker = 13,
}Variants§
Warrior = 1
Paladin = 2
Hunter = 3
Rogue = 4
Priest = 5
DeathKnight = 6
Shaman = 7
Mage = 8
Warlock = 9
Monk = 10
Druid = 11
DemonHunter = 12
Evoker = 13
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClassId
impl<'de> Deserialize<'de> for ClassId
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 ClassIdwhere
Self: DeserializeOwned,
impl FromWasmAbi for ClassIdwhere
Self: DeserializeOwned,
Source§impl IntoEnumIterator for ClassId
impl IntoEnumIterator for ClassId
type Iterator = ClassIdIter
fn iter() -> ClassIdIter ⓘ
Source§impl IntoWasmAbi for &ClassId
impl IntoWasmAbi for &ClassId
Source§impl IntoWasmAbi for ClassId
impl IntoWasmAbi for ClassId
Source§impl OptionFromWasmAbi for ClassIdwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for ClassIdwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for ClassId
impl OptionIntoWasmAbi for ClassId
Source§impl RefFromWasmAbi for ClassIdwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for ClassIdwhere
Self: 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§impl Tsify for ClassId
impl Tsify for ClassId
const DECL: &'static str = "export type ClassId = \"Warrior\" | \"Paladin\" | \"Hunter\" | \"Rogue\" | \"Priest\" | \"DeathKnight\" | \"Shaman\" | \"Mage\" | \"Warlock\" | \"Monk\" | \"Druid\" | \"DemonHunter\" | \"Evoker\";"
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 ClassIdwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for ClassIdwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for ClassId
impl VectorIntoWasmAbi for ClassId
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for ClassId
impl WasmDescribeVector for ClassId
impl Copy for ClassId
impl Eq for ClassId
impl StructuralPartialEq for ClassId
Auto Trait Implementations§
impl Freeze for ClassId
impl RefUnwindSafe for ClassId
impl Send for ClassId
impl Sync for ClassId
impl Unpin for ClassId
impl UnsafeUnpin for ClassId
impl UnwindSafe for ClassId
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.§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