Struct ncollide2d::events::EventPool
[−]
[src]
pub struct EventPool<E> { /* fields omitted */ }
A set of events.
Methods
impl<E> EventPool<E>
[src]
pub fn new() -> EventPool<E>
[src]
Creates a new empty set of events.
pub fn clear(&mut self)
[src]
Emties this set of events.
pub fn push(&mut self, event: E)
[src]
Adds the given event at the end of this set.
pub fn iter(&self) -> Iter<E>
[src]
Iterates through all events contained on this set in a FIFO maneer.
pub fn retain<F>(&mut self, filter: F) where
F: FnMut(&E) -> bool,
[src]
F: FnMut(&E) -> bool,
Removes from this set all events for which filter
returns false
.