pub struct SerializedKeyboardData { /* private fields */ }
Expand description
A serialized version of KeyboardData
Implementations§
Trait Implementations§
Source§impl Clone for SerializedKeyboardData
impl Clone for SerializedKeyboardData
Source§fn clone(&self) -> SerializedKeyboardData
fn clone(&self) -> SerializedKeyboardData
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 SerializedKeyboardData
impl Debug for SerializedKeyboardData
Source§impl<'de> Deserialize<'de> for SerializedKeyboardData
impl<'de> Deserialize<'de> for SerializedKeyboardData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&KeyboardData> for SerializedKeyboardData
impl From<&KeyboardData> for SerializedKeyboardData
Source§fn from(data: &KeyboardData) -> Self
fn from(data: &KeyboardData) -> Self
Converts to this type from the input type.
Source§impl HasKeyboardData for SerializedKeyboardData
impl HasKeyboardData for SerializedKeyboardData
Source§fn key(&self) -> Key
fn key(&self) -> Key
The value of the key pressed by the user, taking into consideration the state of modifier keys such as Shift as well as the keyboard locale and layout.
Source§fn code(&self) -> Code
fn code(&self) -> Code
A physical key on the keyboard (as opposed to the character generated by pressing the key). In other words, this property returns a value that isn’t altered by keyboard layout or the state of the modifier keys.
Source§fn is_auto_repeating(&self) -> bool
fn is_auto_repeating(&self) -> bool
true
iff the key is being held down such that it is automatically repeating.Source§fn is_composing(&self) -> bool
fn is_composing(&self) -> bool
Indicates whether the key is fired within a composition session.
Source§impl PartialEq for SerializedKeyboardData
impl PartialEq for SerializedKeyboardData
Source§impl Serialize for SerializedKeyboardData
impl Serialize for SerializedKeyboardData
impl StructuralPartialEq for SerializedKeyboardData
Auto Trait Implementations§
impl Freeze for SerializedKeyboardData
impl RefUnwindSafe for SerializedKeyboardData
impl Send for SerializedKeyboardData
impl Sync for SerializedKeyboardData
impl Unpin for SerializedKeyboardData
impl UnwindSafe for SerializedKeyboardData
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.