pub struct PendingEvents<T> {
buf: VecDeque<T>,
}Expand description
アプリへまだ渡せていない入力の控え。OS 側だけが持つ(錠は要らない)。
Fields§
§buf: VecDeque<T>Implementations§
Source§impl<T> PendingEvents<T>
impl<T> PendingEvents<T>
pub const fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Sourcepub fn push_replacing(&mut self, ev: T, same_kind: impl Fn(&T) -> bool)
pub fn push_replacing(&mut self, ev: T, same_kind: impl Fn(&T) -> bool)
置き換え型の入力を積む。控えの中の同じ種類の物を外してから末尾に置く。
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for PendingEvents<T>
impl<T> RefUnwindSafe for PendingEvents<T>where
T: RefUnwindSafe,
impl<T> Send for PendingEvents<T>where
T: Send,
impl<T> Sync for PendingEvents<T>where
T: Sync,
impl<T> Unpin for PendingEvents<T>where
T: Unpin,
impl<T> UnsafeUnpin for PendingEvents<T>
impl<T> UnwindSafe for PendingEvents<T>where
T: UnwindSafe,
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