Struct ncollide2d::utils::GenerationalId
[−]
[src]
pub struct GenerationalId { pub id: usize, // some fields omitted }
A unique idetifier given by a usize id and a generation number.
Fields
id: usize
The identifier.
Methods
impl GenerationalId
[src]
pub fn invalid() -> Self
[src]
An identifier that cannot be constructed by IdAlloc
and that is not equal to any other identifier.
pub fn is_invalid(&self) -> bool
[src]
Checks if this identifier is invalid.
Trait Implementations
impl Copy for GenerationalId
[src]
impl Clone for GenerationalId
[src]
fn clone(&self) -> GenerationalId
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for GenerationalId
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for GenerationalId
[src]
fn eq(&self, __arg_0: &GenerationalId) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GenerationalId) -> bool
[src]
This method tests for !=
.