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]
impl GenerationalId
pub fn invalid() -> Self
[src]
pub fn invalid() -> Self
An identifier that cannot be constructed by IdAlloc
and that is not equal to any other identifier.
pub fn is_invalid(&self) -> bool
[src]
pub fn is_invalid(&self) -> bool
Checks if this identifier is invalid.
Trait Implementations
impl Copy for GenerationalId
[src]
impl Copy for GenerationalId
impl Clone for GenerationalId
[src]
impl Clone for GenerationalId
fn clone(&self) -> GenerationalId
[src]
fn clone(&self) -> GenerationalId
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for GenerationalId
[src]
impl Debug for GenerationalId
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 PartialEq for GenerationalId
[src]
impl PartialEq for GenerationalId
fn eq(&self, other: &GenerationalId) -> bool
[src]
fn eq(&self, other: &GenerationalId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GenerationalId) -> bool
[src]
fn ne(&self, other: &GenerationalId) -> bool
This method tests for !=
.
impl Eq for GenerationalId
[src]
impl Eq for GenerationalId
impl Hash for GenerationalId
[src]
impl Hash for GenerationalId
Auto Trait Implementations
impl Send for GenerationalId
impl Send for GenerationalId
impl Sync for GenerationalId
impl Sync for GenerationalId