pub struct KeyboardEventInit {
pub key: String,
pub code: Option<String>,
pub ctrl_key: bool,
pub meta_key: bool,
pub shift_key: bool,
pub alt_key: bool,
pub repeat: bool,
pub is_composing: bool,
}Fields§
§key: String§code: Option<String>§ctrl_key: bool§meta_key: bool§shift_key: bool§alt_key: bool§repeat: bool§is_composing: boolTrait Implementations§
Source§impl Clone for KeyboardEventInit
impl Clone for KeyboardEventInit
Source§fn clone(&self) -> KeyboardEventInit
fn clone(&self) -> KeyboardEventInit
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 KeyboardEventInit
impl Debug for KeyboardEventInit
Source§impl Default for KeyboardEventInit
impl Default for KeyboardEventInit
Source§fn default() -> KeyboardEventInit
fn default() -> KeyboardEventInit
Returns the “default value” for a type. Read more
Source§impl PartialEq for KeyboardEventInit
impl PartialEq for KeyboardEventInit
impl Eq for KeyboardEventInit
impl StructuralPartialEq for KeyboardEventInit
Auto Trait Implementations§
impl Freeze for KeyboardEventInit
impl RefUnwindSafe for KeyboardEventInit
impl Send for KeyboardEventInit
impl Sync for KeyboardEventInit
impl Unpin for KeyboardEventInit
impl UnsafeUnpin for KeyboardEventInit
impl UnwindSafe for KeyboardEventInit
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