Struct gpui2::KeyDownEvent
source · pub struct KeyDownEvent {
pub keystroke: Keystroke,
pub is_held: bool,
}
Fields§
§keystroke: Keystroke
§is_held: bool
Trait Implementations§
source§impl Clone for KeyDownEvent
impl Clone for KeyDownEvent
source§fn clone(&self) -> KeyDownEvent
fn clone(&self) -> KeyDownEvent
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 KeyDownEvent
impl Debug for KeyDownEvent
source§impl PartialEq<KeyDownEvent> for KeyDownEvent
impl PartialEq<KeyDownEvent> for KeyDownEvent
source§fn eq(&self, other: &KeyDownEvent) -> bool
fn eq(&self, other: &KeyDownEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyDownEvent
impl StructuralEq for KeyDownEvent
impl StructuralPartialEq for KeyDownEvent
Auto Trait Implementations§
impl RefUnwindSafe for KeyDownEvent
impl Send for KeyDownEvent
impl Sync for KeyDownEvent
impl Unpin for KeyDownEvent
impl UnwindSafe for KeyDownEvent
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.