#[repr(u8)]pub enum Difficulty {
Easy = 0,
Medium = 1,
Hard = 2,
}
Variants§
Trait Implementations§
Source§impl Clone for Difficulty
impl Clone for Difficulty
Source§fn clone(&self) -> Difficulty
fn clone(&self) -> Difficulty
Returns a copy 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 Difficulty
impl Debug for Difficulty
Source§impl From<Difficulty> for JsValue
impl From<Difficulty> for JsValue
Source§fn from(value: Difficulty) -> Self
fn from(value: Difficulty) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Difficulty
impl FromWasmAbi for Difficulty
Source§impl IntoWasmAbi for Difficulty
impl IntoWasmAbi for Difficulty
Source§impl OptionFromWasmAbi for Difficulty
impl OptionFromWasmAbi for Difficulty
Source§impl OptionIntoWasmAbi for Difficulty
impl OptionIntoWasmAbi for Difficulty
Source§impl PartialEq for Difficulty
impl PartialEq for Difficulty
Source§impl TryFromJsValue for Difficulty
impl TryFromJsValue for Difficulty
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <Difficulty as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <Difficulty as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for Difficulty
impl VectorFromWasmAbi for Difficulty
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Difficulty]>
Source§impl VectorIntoJsValue for Difficulty
impl VectorIntoJsValue for Difficulty
fn vector_into_jsvalue(vector: Box<[Difficulty]>) -> JsValue
Source§impl VectorIntoWasmAbi for Difficulty
impl VectorIntoWasmAbi for Difficulty
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Difficulty]>) -> Self::Abi
Source§impl WasmDescribeVector for Difficulty
impl WasmDescribeVector for Difficulty
impl Copy for Difficulty
impl Eq for Difficulty
impl StructuralPartialEq for Difficulty
Auto Trait Implementations§
impl Freeze for Difficulty
impl RefUnwindSafe for Difficulty
impl Send for Difficulty
impl Sync for Difficulty
impl Unpin for Difficulty
impl UnwindSafe for Difficulty
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::Abi
Source§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
.