pub struct IdPool { /* private fields */ }Expand description
(b3IdPool)
Implementations§
Source§impl IdPool
impl IdPool
Sourcepub fn free_id(&mut self, id: i32)
pub fn free_id(&mut self, id: i32)
(b3FreeId)
C has a dead shrink branch (if id == nextIndex) that is unreachable
under the asserts above it (id < nextIndex). Always push, matching
the reachable C path and box2d-rust.
Sourcepub fn id_capacity(&self) -> i32
pub fn id_capacity(&self) -> i32
(b3GetIdCapacity)
Sourcepub fn validate_free_id(&self, id: i32)
pub fn validate_free_id(&self, id: i32)
Debug check that id is currently free. (b3ValidateFreeId)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IdPool
impl RefUnwindSafe for IdPool
impl Send for IdPool
impl Sync for IdPool
impl Unpin for IdPool
impl UnsafeUnpin for IdPool
impl UnwindSafe for IdPool
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