Enum rin::window::events::KeyEvent [−][src]
pub enum KeyEvent { Pressed { key: Key, mods: KeyModifiers, repeat: bool, }, Released { key: Key, }, Char { character: char, }, }
Variants
Show fields
Fields of Pressed
Show fields
Fields of Released
key: Key
Show fields
Fields of Char
character: char
Implementations
impl KeyEvent
[src]
impl KeyEvent
[src]pub fn is_key_pressed_event(&self) -> bool
[src]
pub fn is_key_released_event(&self) -> bool
[src]
pub fn is_char_event(&self) -> bool
[src]
pub fn into_event(self) -> Event
[src]
Trait Implementations
impl Copy for KeyEvent
[src]
impl StructuralPartialEq for KeyEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,