Struct entity_store_helper::IdAllocator
[−]
[src]
pub struct IdAllocator<T: Integer + Copy> { /* fields omitted */ }
Methods
impl<T: Integer + Copy> IdAllocator<T>
[src]
pub fn new() -> Self
[src]
pub fn allocate(&mut self) -> T
[src]
pub fn peek(&self) -> T
[src]
pub fn free(&mut self, id: T)
[src]
Trait Implementations
impl<T: Debug + Integer + Copy> Debug for IdAllocator<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Clone + Integer + Copy> Clone for IdAllocator<T>
[src]
fn clone(&self) -> IdAllocator<T>
[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
Auto Trait Implementations
impl<T> Send for IdAllocator<T> where
T: Send,
T: Send,
impl<T> Sync for IdAllocator<T> where
T: Sync,
T: Sync,