Enum ncollide3d::shape::FeatureId [−][src]
An identifier of a feature of a convex polyhedron.
This identifier is shape-dependent and is seach that it allows an efficient retrieval of the geometric information of the feature.
Variants
Vertex(usize)
Shape-dependent identifier of a vertex.
Edge(usize)
Shape-dependent identifier of an edge.
Face(usize)
Shape-dependent identifier of a face.
Unknown
Unknown identifier.
Methods
impl FeatureId
[src]
impl FeatureId
pub fn unwrap_vertex(self) -> usize
[src]
pub fn unwrap_vertex(self) -> usize
Revries the value of the identifier if self
is a vertex.
pub fn unwrap_edge(self) -> usize
[src]
pub fn unwrap_edge(self) -> usize
Revries the value of the identifier if self
is an edge.
pub fn unwrap_face(self) -> usize
[src]
pub fn unwrap_face(self) -> usize
Revries the value of the identifier if self
is a face.
Trait Implementations
impl Copy for FeatureId
[src]
impl Copy for FeatureId
impl Clone for FeatureId
[src]
impl Clone for FeatureId
fn clone(&self) -> FeatureId
[src]
fn clone(&self) -> FeatureId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for FeatureId
[src]
impl Debug for FeatureId
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for FeatureId
[src]
impl Hash for FeatureId
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for FeatureId
[src]
impl PartialEq for FeatureId
fn eq(&self, other: &FeatureId) -> bool
[src]
fn eq(&self, other: &FeatureId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FeatureId) -> bool
[src]
fn ne(&self, other: &FeatureId) -> bool
This method tests for !=
.
impl Eq for FeatureId
[src]
impl Eq for FeatureId