pub struct NativeInputEvent { /* private fields */ }Expand description
Data associated with an input event.
Contains the current value and the type of input change.
Implementations§
Source§impl NativeInputEvent
Implementation of NativeInputEvent construction.
impl NativeInputEvent
Implementation of NativeInputEvent construction.
Source§impl NativeInputEvent
impl NativeInputEvent
pub fn get_value(&self) -> &String
pub fn get_mut_value(&mut self) -> &mut String
pub fn set_value(&mut self, val: String) -> &mut Self
pub fn get_input_type(&self) -> &String
pub fn get_mut_input_type(&mut self) -> &mut String
pub fn set_input_type(&mut self, val: String) -> &mut Self
Trait Implementations§
Source§impl Clone for NativeInputEvent
impl Clone for NativeInputEvent
Source§fn clone(&self) -> NativeInputEvent
fn clone(&self) -> NativeInputEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeInputEvent
impl Debug for NativeInputEvent
Source§impl Default for NativeInputEvent
impl Default for NativeInputEvent
Source§fn default() -> NativeInputEvent
fn default() -> NativeInputEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for NativeInputEvent
impl PartialEq for NativeInputEvent
Source§fn eq(&self, other: &NativeInputEvent) -> bool
fn eq(&self, other: &NativeInputEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NativeInputEvent
impl StructuralPartialEq for NativeInputEvent
Auto Trait Implementations§
impl Freeze for NativeInputEvent
impl RefUnwindSafe for NativeInputEvent
impl Send for NativeInputEvent
impl Sync for NativeInputEvent
impl Unpin for NativeInputEvent
impl UnsafeUnpin for NativeInputEvent
impl UnwindSafe for NativeInputEvent
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