Struct ncollide2d::world::CollisionObjectHandle
source · pub struct CollisionObjectHandle(pub usize);
Expand description
The unique identifier of a collision object.
Tuple Fields§
§0: usize
Implementations§
Trait Implementations§
source§impl Clone for CollisionObjectHandle
impl Clone for CollisionObjectHandle
source§fn clone(&self) -> CollisionObjectHandle
fn clone(&self) -> CollisionObjectHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CollisionObjectHandle
impl Debug for CollisionObjectHandle
source§impl Hash for CollisionObjectHandle
impl Hash for CollisionObjectHandle
source§impl<N: Real, T> Index<CollisionObjectHandle> for CollisionObjectSlab<N, T>
impl<N: Real, T> Index<CollisionObjectHandle> for CollisionObjectSlab<N, T>
§type Output = CollisionObject<N, T>
type Output = CollisionObject<N, T>
The returned type after indexing.
source§impl<N: Real, T> IndexMut<CollisionObjectHandle> for CollisionObjectSlab<N, T>
impl<N: Real, T> IndexMut<CollisionObjectHandle> for CollisionObjectSlab<N, T>
source§impl Ord for CollisionObjectHandle
impl Ord for CollisionObjectHandle
source§fn cmp(&self, other: &CollisionObjectHandle) -> Ordering
fn cmp(&self, other: &CollisionObjectHandle) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CollisionObjectHandle> for CollisionObjectHandle
impl PartialEq<CollisionObjectHandle> for CollisionObjectHandle
source§fn eq(&self, other: &CollisionObjectHandle) -> bool
fn eq(&self, other: &CollisionObjectHandle) -> bool
source§impl PartialOrd<CollisionObjectHandle> for CollisionObjectHandle
impl PartialOrd<CollisionObjectHandle> for CollisionObjectHandle
source§fn partial_cmp(&self, other: &CollisionObjectHandle) -> Option<Ordering>
fn partial_cmp(&self, other: &CollisionObjectHandle) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CollisionObjectHandle
impl Eq for CollisionObjectHandle
impl StructuralEq for CollisionObjectHandle
impl StructuralPartialEq for CollisionObjectHandle
Auto Trait Implementations§
impl RefUnwindSafe for CollisionObjectHandle
impl Send for CollisionObjectHandle
impl Sync for CollisionObjectHandle
impl Unpin for CollisionObjectHandle
impl UnwindSafe for CollisionObjectHandle
Blanket Implementations§
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.