pub struct TextInputEvent {
pub character: char,
}Expand description
A supplement to KeyEvent that report a character. Affected by modifier keys and keyboard layout. Control character (e.g. Backspace and Enter key) does not count as a TextInputEvent.
Fields§
§character: charCharacter being sent.
Implementations§
Source§impl TextInputEvent
impl TextInputEvent
Sourcepub fn from_event(event: Event) -> TextInputEvent
pub fn from_event(event: Event) -> TextInputEvent
Convert from an Event
Trait Implementations§
Source§impl Clone for TextInputEvent
impl Clone for TextInputEvent
Source§fn clone(&self) -> TextInputEvent
fn clone(&self) -> TextInputEvent
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 moreimpl Copy for TextInputEvent
Auto Trait Implementations§
impl Freeze for TextInputEvent
impl RefUnwindSafe for TextInputEvent
impl Send for TextInputEvent
impl Sync for TextInputEvent
impl Unpin for TextInputEvent
impl UnsafeUnpin for TextInputEvent
impl UnwindSafe for TextInputEvent
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