Struct ncollide2d::world::CollisionObjectSlab[][src]

pub struct CollisionObjectSlab<N: Real, T> { /* fields omitted */ }

A set of collision objects that can be indexed by collision object handles.

Methods

impl<N: Real, T> CollisionObjectSlab<N, T>
[src]

Creates a new empty collecton of collision objects.

Inserts a new collision object into this collection and returns the corresponding handle.

Removes from this collection the collision object identified by the given handle.

The removed collision object structure is returned.

If it exists, retrieves a reference to the collision object identified by the given handle.

If it exists, retrieves a mutable reference to the collision object identified by the given handle.

Returns true if the specified handle identifies a collision object stored in this collection.

Important traits for CollisionObjects<'a, N, T>

Retrieves an iterator yielding references to each collision object.

Trait Implementations

impl<N: Real, T> Index<CollisionObjectHandle> for CollisionObjectSlab<N, T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<N: Real, T> IndexMut<CollisionObjectHandle> for CollisionObjectSlab<N, T>
[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl<N, T> Send for CollisionObjectSlab<N, T> where
    T: Send

impl<N, T> Sync for CollisionObjectSlab<N, T> where
    T: Sync