#[repr(u8)]pub enum RatingType {
Crit = 0,
Haste = 1,
Mastery = 2,
Versatility = 3,
Leech = 4,
Avoidance = 5,
Speed = 6,
}Variants§
Implementations§
Source§impl RatingType
impl RatingType
pub const COMBAT_COUNT: usize = 4
Trait Implementations§
Source§impl Clone for RatingType
impl Clone for RatingType
Source§fn clone(&self) -> RatingType
fn clone(&self) -> RatingType
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 RatingType
impl Debug for RatingType
Source§impl<'de> Deserialize<'de> for RatingType
impl<'de> Deserialize<'de> for RatingType
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 RatingType
impl Display for RatingType
Source§impl From<RatingType> for JsValuewhere
RatingType: Serialize,
impl From<RatingType> for JsValuewhere
RatingType: Serialize,
Source§fn from(value: RatingType) -> Self
fn from(value: RatingType) -> Self
Converts to this type from the input type.
Source§impl From<RatingType> for u8
impl From<RatingType> for u8
Source§fn from(enum_value: RatingType) -> Self
fn from(enum_value: RatingType) -> Self
Converts to this type from the input type.
Source§impl FromStr for RatingType
impl FromStr for RatingType
Source§impl FromWasmAbi for RatingTypewhere
Self: DeserializeOwned,
impl FromWasmAbi for RatingTypewhere
Self: DeserializeOwned,
Source§impl Hash for RatingType
impl Hash for RatingType
Source§impl IntoEnumIterator for RatingType
impl IntoEnumIterator for RatingType
type Iterator = RatingTypeIter
fn iter() -> RatingTypeIter ⓘ
Source§impl IntoWasmAbi for &RatingTypewhere
RatingType: Serialize,
impl IntoWasmAbi for &RatingTypewhere
RatingType: Serialize,
Source§impl IntoWasmAbi for RatingTypewhere
RatingType: Serialize,
impl IntoWasmAbi for RatingTypewhere
RatingType: Serialize,
Source§impl OptionFromWasmAbi for RatingTypewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for RatingTypewhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for RatingTypewhere
RatingType: Serialize,
impl OptionIntoWasmAbi for RatingTypewhere
RatingType: Serialize,
Source§impl PartialEq for RatingType
impl PartialEq for RatingType
Source§impl RefFromWasmAbi for RatingTypewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for RatingTypewhere
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<RatingType>
type Anchor = SelfOwner<RatingType>
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 RatingType
impl Serialize for RatingType
Source§impl TryFrom<&str> for RatingType
impl TryFrom<&str> for RatingType
Source§impl TryFrom<u8> for RatingType
impl TryFrom<u8> for RatingType
Source§impl TryFromPrimitive for RatingType
impl TryFromPrimitive for RatingType
Source§impl Tsify for RatingType
impl Tsify for RatingType
const DECL: &'static str = "export type RatingType = \"Crit\" | \"Haste\" | \"Mastery\" | \"Versatility\" | \"Leech\" | \"Avoidance\" | \"Speed\";"
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 RatingTypewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for RatingTypewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for RatingTypewhere
RatingType: Serialize,
impl VectorIntoWasmAbi for RatingTypewhere
RatingType: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for RatingType
impl WasmDescribe for RatingType
Source§impl WasmDescribeVector for RatingType
impl WasmDescribeVector for RatingType
impl Copy for RatingType
impl Eq for RatingType
impl StructuralPartialEq for RatingType
Auto Trait Implementations§
impl Freeze for RatingType
impl RefUnwindSafe for RatingType
impl Send for RatingType
impl Sync for RatingType
impl Unpin for RatingType
impl UnsafeUnpin for RatingType
impl UnwindSafe for RatingType
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