Struct ncollide2d::events::EventPool [−][src]
pub struct EventPool<E> { /* fields omitted */ }
A set of events.
Methods
impl<E> EventPool<E>
[src]
impl<E> EventPool<E>
pub fn new() -> EventPool<E>
[src]
pub fn new() -> EventPool<E>
Creates a new empty set of events.
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
Emties this set of events.
pub fn push(&mut self, event: E)
[src]
pub fn push(&mut self, event: E)
Adds the given event at the end of this set.
pub fn iter(&self) -> Iter<E>
[src]
pub fn iter(&self) -> Iter<E>
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]
pub fn retain<F>(&mut self, filter: F) where
F: FnMut(&E) -> bool,
Removes from this set all events for which filter
returns false
.
Trait Implementations
impl<'a, E> IntoIterator for &'a EventPool<E>
[src]
impl<'a, E> IntoIterator for &'a EventPool<E>