pub struct Press {
pub code: Key,
pub repeat: bool,
pub x: i32,
pub y: i32,
pub frame: u64,
}Expand description
A press of a binding’s code.
Fields§
§code: KeyThe binding’s code at the press.
repeat: boolAn auto-repeat.
x: i32The cursor at the press, in the window’s client pixels.
y: i32See x.
frame: u64anvil-game’s frame number at the press.
Trait Implementations§
impl Copy for Press
impl Eq for Press
impl StructuralPartialEq for Press
Auto Trait Implementations§
impl Forget for Press
impl Freeze for Press
impl Move for Press
impl RefUnwindSafe for Press
impl Send for Press
impl Sync for Press
impl Unpin for Press
impl UnsafeUnpin for Press
impl UnwindSafe for Press
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