[−][src]Struct ncollide3d::pipeline::object::CollisionObjectSlab
A set of collision objects that can be indexed by collision object handles.
Methods
impl<N: RealField, T> CollisionObjectSlab<N, T>
[src][−]
pub fn new() -> CollisionObjectSlab<N, T>
[src][−]
Creates a new empty collection of collision objects.
pub fn insert(&mut self, co: CollisionObject<N, T>) -> CollisionObjectSlabHandle
[src][−]
Inserts a new collision object into this collection and returns the corresponding handle.
pub fn remove(
&mut self,
handle: CollisionObjectSlabHandle
) -> CollisionObject<N, T>
[src][−]
&mut self,
handle: CollisionObjectSlabHandle
) -> CollisionObject<N, T>
Removes from this collection the collision object identified by the given handle.
The removed collision object structure is returned.
pub fn get(
&self,
handle: CollisionObjectSlabHandle
) -> Option<&CollisionObject<N, T>>
[src][−]
&self,
handle: CollisionObjectSlabHandle
) -> Option<&CollisionObject<N, T>>
If it exists, retrieves a reference to the collision object identified by the given handle.
pub fn get_mut(
&mut self,
handle: CollisionObjectSlabHandle
) -> Option<&mut CollisionObject<N, T>>
[src][−]
&mut self,
handle: CollisionObjectSlabHandle
) -> Option<&mut CollisionObject<N, T>>
If it exists, retrieves a mutable reference to the collision object identified by the given handle.
pub fn get_pair_mut(
&mut self,
handle1: CollisionObjectSlabHandle,
handle2: CollisionObjectSlabHandle
) -> (Option<&mut CollisionObject<N, T>>, Option<&mut CollisionObject<N, T>>)
[src][−]
&mut self,
handle1: CollisionObjectSlabHandle,
handle2: CollisionObjectSlabHandle
) -> (Option<&mut CollisionObject<N, T>>, Option<&mut CollisionObject<N, T>>)
If they exists, retrieves a mutable reference to the two collision object identified by the given handles.
Panics if both handles are equal.
pub fn contains(&self, handle: CollisionObjectSlabHandle) -> bool
[src][−]
Returns true
if the specified handle identifies a collision object stored in this collection.
ⓘImportant traits for CollisionObjects<'a, N, T>pub fn iter(&self) -> CollisionObjects<N, T>
[src][−]
Retrieves an iterator yielding references to each collision object.
pub fn iter_mut(&mut self) -> CollisionObjectsMut<N, T>
[src][−]
Retrieves an iterator yielding references to each collision object.
pub fn len(&self) -> usize
[src][−]
The number of collision objects on this slab.
Trait Implementations
impl<N: RealField, T> CollisionObjectSet<N> for CollisionObjectSlab<N, T>
[src][+]
impl<N: RealField, T> Index<CollisionObjectSlabHandle> for CollisionObjectSlab<N, T>
[src][+]
impl<N: RealField, T> IndexMut<CollisionObjectSlabHandle> for CollisionObjectSlab<N, T>
[src][+]
Auto Trait Implementations
impl<N, T> !RefUnwindSafe for CollisionObjectSlab<N, T>
impl<N, T> Send for CollisionObjectSlab<N, T> where
N: Scalar,
T: Send,
N: Scalar,
T: Send,
impl<N, T> Sync for CollisionObjectSlab<N, T> where
N: Scalar,
T: Sync,
N: Scalar,
T: Sync,
impl<N, T> Unpin for CollisionObjectSlab<N, T> where
N: Scalar + Unpin,
T: Unpin,
N: Scalar + Unpin,
T: Unpin,
impl<N, T> !UnwindSafe for CollisionObjectSlab<N, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Downcast for T where
T: Any,
[+]
T: Any,
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[+]
T: Send + Sync + Any,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[+]
SS: SubsetOf<SP>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,