#[repr(u8)]pub enum DamageSchool {
Physical = 0,
Holy = 1,
Fire = 2,
Nature = 3,
Frost = 4,
Shadow = 5,
Arcane = 6,
Chaos = 7,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DamageSchool
impl Clone for DamageSchool
Source§fn clone(&self) -> DamageSchool
fn clone(&self) -> DamageSchool
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 DamageSchool
impl Debug for DamageSchool
Source§impl Default for DamageSchool
impl Default for DamageSchool
Source§fn default() -> DamageSchool
fn default() -> DamageSchool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DamageSchool
impl<'de> Deserialize<'de> for DamageSchool
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 DamageSchool
impl Display for DamageSchool
Source§impl From<DamageSchool> for JsValuewhere
DamageSchool: Serialize,
impl From<DamageSchool> for JsValuewhere
DamageSchool: Serialize,
Source§fn from(value: DamageSchool) -> Self
fn from(value: DamageSchool) -> Self
Converts to this type from the input type.
Source§impl From<DamageSchool> for u8
impl From<DamageSchool> for u8
Source§fn from(enum_value: DamageSchool) -> Self
fn from(enum_value: DamageSchool) -> Self
Converts to this type from the input type.
Source§impl FromStr for DamageSchool
impl FromStr for DamageSchool
Source§impl FromWasmAbi for DamageSchoolwhere
Self: DeserializeOwned,
impl FromWasmAbi for DamageSchoolwhere
Self: DeserializeOwned,
Source§impl Hash for DamageSchool
impl Hash for DamageSchool
Source§impl IntoEnumIterator for DamageSchool
impl IntoEnumIterator for DamageSchool
type Iterator = DamageSchoolIter
fn iter() -> DamageSchoolIter ⓘ
Source§impl IntoWasmAbi for &DamageSchoolwhere
DamageSchool: Serialize,
impl IntoWasmAbi for &DamageSchoolwhere
DamageSchool: Serialize,
Source§impl IntoWasmAbi for DamageSchoolwhere
DamageSchool: Serialize,
impl IntoWasmAbi for DamageSchoolwhere
DamageSchool: Serialize,
Source§impl OptionFromWasmAbi for DamageSchoolwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for DamageSchoolwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for DamageSchoolwhere
DamageSchool: Serialize,
impl OptionIntoWasmAbi for DamageSchoolwhere
DamageSchool: Serialize,
Source§impl PartialEq for DamageSchool
impl PartialEq for DamageSchool
Source§impl RefFromWasmAbi for DamageSchoolwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for DamageSchoolwhere
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§type Anchor = SelfOwner<DamageSchool>
type Anchor = SelfOwner<DamageSchool>
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§impl Serialize for DamageSchool
impl Serialize for DamageSchool
Source§impl TryFrom<&str> for DamageSchool
impl TryFrom<&str> for DamageSchool
Source§impl TryFrom<u8> for DamageSchool
impl TryFrom<u8> for DamageSchool
Source§impl TryFromPrimitive for DamageSchool
impl TryFromPrimitive for DamageSchool
Source§impl Tsify for DamageSchool
impl Tsify for DamageSchool
const DECL: &'static str = "export type DamageSchool = \"Physical\" | \"Holy\" | \"Fire\" | \"Nature\" | \"Frost\" | \"Shadow\" | \"Arcane\" | \"Chaos\";"
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 DamageSchoolwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for DamageSchoolwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for DamageSchoolwhere
DamageSchool: Serialize,
impl VectorIntoWasmAbi for DamageSchoolwhere
DamageSchool: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for DamageSchool
impl WasmDescribe for DamageSchool
Source§impl WasmDescribeVector for DamageSchool
impl WasmDescribeVector for DamageSchool
impl Copy for DamageSchool
impl Eq for DamageSchool
impl StructuralPartialEq for DamageSchool
Auto Trait Implementations§
impl Freeze for DamageSchool
impl RefUnwindSafe for DamageSchool
impl Send for DamageSchool
impl Sync for DamageSchool
impl Unpin for DamageSchool
impl UnsafeUnpin for DamageSchool
impl UnwindSafe for DamageSchool
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