pub struct InputEventBatch { /* private fields */ }Expand description
Small fixed-capacity collection of input events from a single report
Implementations§
Source§impl InputEventBatch
impl InputEventBatch
Sourcepub fn push(&mut self, event: InputEvent)
pub fn push(&mut self, event: InputEvent)
Push an event into the batch (drops if full)
Sourcepub fn first(&self) -> Option<InputEvent>
pub fn first(&self) -> Option<InputEvent>
Get the first event, if any
Sourcepub fn iter(&self) -> InputEventBatchIter<'_> ⓘ
pub fn iter(&self) -> InputEventBatchIter<'_> ⓘ
Iterate over events in the batch
Trait Implementations§
Source§impl Clone for InputEventBatch
impl Clone for InputEventBatch
Source§fn clone(&self) -> InputEventBatch
fn clone(&self) -> InputEventBatch
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InputEventBatch
impl RefUnwindSafe for InputEventBatch
impl Send for InputEventBatch
impl Sync for InputEventBatch
impl Unpin for InputEventBatch
impl UnwindSafe for InputEventBatch
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)