pub struct CollisionObjectSlab<N: Real, T> { /* private fields */ }
Expand description

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

Implementations§

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.

Retrieves an iterator yielding references to each collision object.

Trait Implementations§

The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
Performs the mutable indexing (container[index]) operation. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.