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]

[src]

Creates a new empty collecton of collision objects.

[src]

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

[src]

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

The removed collision object structure is returned.

[src]

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

[src]

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

[src]

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

Important traits for CollisionObjects<'a, N, T>
[src]

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.

[src]

Performs the indexing (container[index]) operation.

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

[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