#[repr(u8)]pub enum KeyEventType {
KeyDown = 0,
KeyPress = 1,
KeyUp = 2,
}
Expand description
Rust representation for key event types. Has a one-to-one correspondence to browser events.
Variants§
Trait Implementations§
Source§impl Clone for KeyEventType
impl Clone for KeyEventType
Source§fn clone(&self) -> KeyEventType
fn clone(&self) -> KeyEventType
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 KeyEventType
impl Debug for KeyEventType
Source§impl From<KeyEventType> for JsValue
impl From<KeyEventType> for JsValue
Source§fn from(value: KeyEventType) -> Self
fn from(value: KeyEventType) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for KeyEventType
impl FromWasmAbi for KeyEventType
Source§impl Hash for KeyEventType
impl Hash for KeyEventType
Source§impl IntoEnumIterator for KeyEventType
impl IntoEnumIterator for KeyEventType
type Iterator = KeyEventTypeIter
fn iter() -> KeyEventTypeIter ⓘ
Source§impl IntoWasmAbi for KeyEventType
impl IntoWasmAbi for KeyEventType
Source§impl OptionFromWasmAbi for KeyEventType
impl OptionFromWasmAbi for KeyEventType
Source§impl OptionIntoWasmAbi for KeyEventType
impl OptionIntoWasmAbi for KeyEventType
Source§impl PartialEq for KeyEventType
impl PartialEq for KeyEventType
Source§impl TryFromJsValue for KeyEventType
impl TryFromJsValue for KeyEventType
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <KeyEventType as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <KeyEventType as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for KeyEventType
impl VectorFromWasmAbi for KeyEventType
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[KeyEventType]>
Source§impl VectorIntoJsValue for KeyEventType
impl VectorIntoJsValue for KeyEventType
fn vector_into_jsvalue(vector: Box<[KeyEventType]>) -> JsValue
Source§impl VectorIntoWasmAbi for KeyEventType
impl VectorIntoWasmAbi for KeyEventType
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[KeyEventType]>) -> Self::Abi
Source§impl WasmDescribeVector for KeyEventType
impl WasmDescribeVector for KeyEventType
impl Copy for KeyEventType
impl Eq for KeyEventType
impl StructuralPartialEq for KeyEventType
Auto Trait Implementations§
impl Freeze for KeyEventType
impl RefUnwindSafe for KeyEventType
impl Send for KeyEventType
impl Sync for KeyEventType
impl Unpin for KeyEventType
impl UnwindSafe for KeyEventType
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
.