ncollide3d::pipeline::narrow_phase

Type Alias ProximityEvents

Source
pub type ProximityEvents<Handle> = EventPool<ProximityEvent<Handle>>;
Expand description

A set of proximity events.

Aliased Type§

struct ProximityEvents<Handle> { /* private fields */ }

Implementations

Source§

impl<E> EventPool<E>

Source

pub fn new() -> EventPool<E>

Creates a new empty set of events.

Source

pub fn clear(&mut self)

Empties this set of events.

Source

pub fn push(&mut self, event: E)

Adds the given event at the end of this set.

Source

pub fn iter(&self) -> Iter<'_, E>

Iterates through all events contained on this set in a FIFO manner.

Source

pub fn retain<F>(&mut self, filter: F)
where F: FnMut(&E) -> bool,

Removes from this set all events for which filter returns false.

Source

pub fn len(&self) -> usize

The number of events on this pool.