Struct ncollide2d::utils::IdAllocator [−][src]
pub struct IdAllocator { /* fields omitted */ }
An identifiers allocator.
Methods
impl IdAllocator
[src]
impl IdAllocator
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates a new empty id allocator.
pub fn alloc(&mut self) -> GenerationalId
[src]
pub fn alloc(&mut self) -> GenerationalId
Allocates a new identifuer.
pub fn free(&mut self, id: GenerationalId)
[src]
pub fn free(&mut self, id: GenerationalId)
Marks the given identifier as re-usable.
Auto Trait Implementations
impl Send for IdAllocator
impl Send for IdAllocator
impl Sync for IdAllocator
impl Sync for IdAllocator