pub struct IdAllocator<T: IdType> { /* private fields */ }Expand description
Allocates IDs with a given parity (odd or even), stepping by 2.
Odd parity: 1, 3, 5, 7, … Even parity: 2, 4, 6, 8, …
Implementations§
Auto Trait Implementations§
impl<T> Freeze for IdAllocator<T>
impl<T> RefUnwindSafe for IdAllocator<T>where
T: RefUnwindSafe,
impl<T> Send for IdAllocator<T>where
T: Send,
impl<T> Sync for IdAllocator<T>where
T: Sync,
impl<T> Unpin for IdAllocator<T>where
T: Unpin,
impl<T> UnsafeUnpin for IdAllocator<T>
impl<T> UnwindSafe for IdAllocator<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more