pub struct KeyboardInputEvent { /* private fields */ }
Implementations§
Source§impl KeyboardInputEvent
impl KeyboardInputEvent
pub fn new( key_code: JsString, kind: JsString, modifiers: Option<Box<[JsValue]>>, ) -> KeyboardInputEvent
pub fn key_code(&self) -> JsString
pub fn set_key_code(&mut self, value: JsString)
pub fn kind(&self) -> JsString
pub fn set_kind(&mut self, value: JsString)
pub fn modifiers(&self) -> Option<Box<[JsValue]>>
pub fn set_modifiers(&mut self, value: Option<Box<[JsValue]>>)
Trait Implementations§
Source§impl From<KeyboardInputEvent> for JsValue
impl From<KeyboardInputEvent> for JsValue
Source§fn from(value: KeyboardInputEvent) -> Self
fn from(value: KeyboardInputEvent) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for KeyboardInputEvent
impl FromWasmAbi for KeyboardInputEvent
Source§impl IntoWasmAbi for KeyboardInputEvent
impl IntoWasmAbi for KeyboardInputEvent
Source§impl RefFromWasmAbi for KeyboardInputEvent
impl RefFromWasmAbi for KeyboardInputEvent
Source§type Anchor = RcRef<KeyboardInputEvent>
type Anchor = RcRef<KeyboardInputEvent>
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 TryFromJsValue for KeyboardInputEvent
impl TryFromJsValue for KeyboardInputEvent
Source§impl VectorFromWasmAbi for KeyboardInputEvent
impl VectorFromWasmAbi for KeyboardInputEvent
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[KeyboardInputEvent]>
Source§impl VectorIntoJsValue for KeyboardInputEvent
impl VectorIntoJsValue for KeyboardInputEvent
fn vector_into_jsvalue(vector: Box<[KeyboardInputEvent]>) -> JsValue
Source§impl VectorIntoWasmAbi for KeyboardInputEvent
impl VectorIntoWasmAbi for KeyboardInputEvent
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[KeyboardInputEvent]>) -> Self::Abi
Source§impl WasmDescribeVector for KeyboardInputEvent
impl WasmDescribeVector for KeyboardInputEvent
impl SupportsConstructor for KeyboardInputEvent
impl SupportsInstanceProperty for KeyboardInputEvent
impl SupportsStaticProperty for KeyboardInputEvent
Auto Trait Implementations§
impl Freeze for KeyboardInputEvent
impl RefUnwindSafe for KeyboardInputEvent
impl !Send for KeyboardInputEvent
impl !Sync for KeyboardInputEvent
impl Unpin for KeyboardInputEvent
impl UnwindSafe for KeyboardInputEvent
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> 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
.