#[repr(transparent)]pub struct KeyEvent { /* private fields */ }Expand description
The KeyEvent class.
This API requires the following crate features to be activated: KeyEvent
Implementations
The initKeyEvent() method.
This API requires the following crate features to be activated: KeyEvent
The initKeyEvent() method.
This API requires the following crate features to be activated: KeyEvent
pub fn init_key_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
pub fn init_key_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
The initKeyEvent() method.
This API requires the following crate features to be activated: KeyEvent
The initKeyEvent() method.
This API requires the following crate features to be activated: KeyEvent, Window
The initKeyEvent() method.
This API requires the following crate features to be activated: KeyEvent, Window
The initKeyEvent() method.
This API requires the following crate features to be activated: KeyEvent, Window
The initKeyEvent() method.
This API requires the following crate features to be activated: KeyEvent, Window
The initKeyEvent() method.
This API requires the following crate features to be activated: KeyEvent, Window
The initKeyEvent() method.
This API requires the following crate features to be activated: KeyEvent, Window
pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_key_code_and_char_code(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool,
key_code: u32,
char_code: u32
)
pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_key_code_and_char_code(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool,
key_code: u32,
char_code: u32
)
The initKeyEvent() method.
This API requires the following crate features to be activated: KeyEvent, Window
The KeyEvent.DOM_VK_CANCEL const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_HELP const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_BACK_SPACE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_TAB const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_CLEAR const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_RETURN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_SHIFT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_CONTROL const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_ALT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PAUSE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_CAPS_LOCK const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_KANA const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_HANGUL const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_EISU const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_JUNJA const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_FINAL const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_HANJA const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_KANJI const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_ESCAPE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_CONVERT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NONCONVERT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_ACCEPT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_MODECHANGE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_SPACE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PAGE_UP const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PAGE_DOWN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_END const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_HOME const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_LEFT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_UP const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_RIGHT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_DOWN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_SELECT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PRINT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_EXECUTE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PRINTSCREEN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_INSERT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_DELETE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_0 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_1 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_2 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_3 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_4 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_5 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_6 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_7 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_8 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_9 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_COLON const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_SEMICOLON const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_LESS_THAN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_EQUALS const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_GREATER_THAN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_QUESTION_MARK const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_AT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_A const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_B const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_C const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_D const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_E const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_G const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_H const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_I const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_J const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_K const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_L const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_M const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_N const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_O const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_P const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_Q const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_R const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_S const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_T const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_U const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_V const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_W const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_X const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_Y const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_Z const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_CONTEXT_MENU const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_SLEEP const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUMPAD0 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUMPAD1 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUMPAD2 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUMPAD3 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUMPAD4 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUMPAD5 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUMPAD6 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUMPAD7 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUMPAD8 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUMPAD9 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_MULTIPLY const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_ADD const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_SEPARATOR const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_SUBTRACT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_DECIMAL const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_DIVIDE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F1 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F2 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F3 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F4 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F5 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F6 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F7 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F8 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F9 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F10 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F11 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F12 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F13 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F14 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F15 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F16 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F17 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F18 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F19 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F20 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F21 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F22 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F23 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_F24 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_NUM_LOCK const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_SCROLL_LOCK const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_FJ_JISHO const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_FJ_MASSHOU const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_FJ_TOUROKU const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_FJ_LOYA const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_FJ_ROYA const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_CIRCUMFLEX const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_EXCLAMATION const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_DOUBLE_QUOTE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_HASH const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_DOLLAR const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PERCENT const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_AMPERSAND const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_UNDERSCORE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_OPEN_PAREN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_CLOSE_PAREN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_ASTERISK const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PLUS const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PIPE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_HYPHEN_MINUS const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_OPEN_CURLY_BRACKET const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_CLOSE_CURLY_BRACKET const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_TILDE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_VOLUME_MUTE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_VOLUME_DOWN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_VOLUME_UP const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_COMMA const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PERIOD const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_SLASH const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_BACK_QUOTE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_OPEN_BRACKET const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_BACK_SLASH const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_CLOSE_BRACKET const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_QUOTE const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_META const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_ALTGR const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_ICO_HELP const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_ICO_00 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PROCESSKEY const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_ICO_CLEAR const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_RESET const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_JUMP const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_PA1 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_PA2 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_PA3 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_WSCTRL const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_CUSEL const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_ATTN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_FINISH const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_COPY const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_AUTO const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_ENLW const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_BACKTAB const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_ATTN const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_CRSEL const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_EXSEL const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_EREOF const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PLAY const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_ZOOM const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_PA1 const.
This API requires the following crate features to be activated: KeyEvent
The KeyEvent.DOM_VK_WIN_OEM_CLEAR const.
This API requires the following crate features to be activated: KeyEvent
Methods from Deref<Target = Object>
The constructor property returns a reference to the Object constructor
function that created the instance object.
The hasOwnProperty() method returns a boolean indicating whether the
object has the specified property as its own property (as opposed to
inheriting it).
The isPrototypeOf() method checks if an object exists in another
object’s prototype chain.
The propertyIsEnumerable() method returns a Boolean indicating
whether the specified property is enumerable.
The toLocaleString() method returns a string representing the object.
This method is meant to be overridden by derived objects for
locale-specific purposes.
The toString() method returns a string representing the object.
The valueOf() method returns the primitive value of the
specified object.
Methods from Deref<Target = JsValue>
Returns the f64 value of this JS value if it’s an instance of a
number.
If this JS value is not an instance of a number then this returns
None.
If this JS value is a string value, this function copies the JS string
value into wasm linear memory, encoded as UTF-8, and returns it as a
Rust String.
To avoid the copying and re-encoding, consider the
JsString::try_from() function from js-sys
instead.
If this JS value is not an instance of a string or if it’s not valid
utf-8 then this returns None.
UTF-16 vs UTF-8
JavaScript strings in general are encoded as UTF-16, but Rust strings
are encoded as UTF-8. This can cause the Rust string to look a bit
different than the JS string sometimes. For more details see the
documentation about the str type which contains a few
caveats about the encodings.
Returns the bool value of this JS value if it’s an instance of a
boolean.
If this JS value is not an instance of a boolean then this returns
None.
Tests whether this JS value is undefined
Tests whether the type of this JS value is function.
Applies the unary typeof JS operator on a JsValue.
Applies the binary in JS operator on the two JsValues.
Compare two JsValues for equality, using the == operator in JS.
Applies the unary ~ JS operator on a JsValue.
Applies the binary >>> JS operator on the two JsValues.
Applies the binary / JS operator on two JsValues, catching and returning any RangeError thrown.
Applies the binary ** JS operator on the two JsValues.
Applies the binary < JS operator on the two JsValues.
Applies the binary <= JS operator on the two JsValues.
Applies the binary >= JS operator on the two JsValues.
Applies the binary > JS operator on the two JsValues.
Applies the unary + JS operator on a JsValue. Can throw.
Trait Implementations
Performs a dynamic instanceof check to see whether the JsValue
provided is an instance of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue into an
instance of Self Read more
Performs a zero-cost unchecked conversion from a &JsValue into an
instance of &Self. Read more
Test whether this JS value has a type T. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T. Read more
Performs a zero-cost unchecked cast into the specified type. Read more
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Test whether this JS value is an instance of the type T. Read more
Performs a dynamic check to see whether the JsValue provided
is a value of this type. Read more
type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self are recovered from.
type Anchor = ManuallyDrop<KeyEvent>
type Anchor = ManuallyDrop<KeyEvent>
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. Read more
Recover a Self::Anchor from Self::Abi. Read more
Auto Trait Implementations
impl RefUnwindSafe for KeyEvent
impl UnwindSafe for KeyEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
Same as IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err. Read more