Struct ncollide2d::partitioning::DBVTLeafId
source · pub struct DBVTLeafId(_);
Expand description
The unique identifier of a DBVT leaf.
Implementations§
source§impl DBVTLeafId
impl DBVTLeafId
sourcepub fn new_invalid() -> Self
pub fn new_invalid() -> Self
Creates an invalid identifier.
sourcepub fn is_invalid(&self) -> bool
pub fn is_invalid(&self) -> bool
Checkis if this identifier is invalid.
Trait Implementations§
source§impl Clone for DBVTLeafId
impl Clone for DBVTLeafId
source§fn clone(&self) -> DBVTLeafId
fn clone(&self) -> DBVTLeafId
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 DBVTLeafId
impl Debug for DBVTLeafId
source§impl Hash for DBVTLeafId
impl Hash for DBVTLeafId
source§impl PartialEq<DBVTLeafId> for DBVTLeafId
impl PartialEq<DBVTLeafId> for DBVTLeafId
source§fn eq(&self, other: &DBVTLeafId) -> bool
fn eq(&self, other: &DBVTLeafId) -> bool
impl Copy for DBVTLeafId
impl Eq for DBVTLeafId
impl StructuralEq for DBVTLeafId
impl StructuralPartialEq for DBVTLeafId
Auto Trait Implementations§
impl RefUnwindSafe for DBVTLeafId
impl Send for DBVTLeafId
impl Sync for DBVTLeafId
impl Unpin for DBVTLeafId
impl UnwindSafe for DBVTLeafId
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.