pub struct IdPool { /* private fields */ }Expand description
(b2IdPool)
Implementations§
Source§impl IdPool
impl IdPool
Sourcepub fn id_capacity(&self) -> i32
pub fn id_capacity(&self) -> i32
(b2GetIdCapacity)
Sourcepub fn validate_free_id(&self, id: i32)
pub fn validate_free_id(&self, id: i32)
Debug check that id is currently free. (b2ValidateFreeId)
Sourcepub fn validate_used_id(&self, id: i32)
pub fn validate_used_id(&self, id: i32)
Debug check that id is currently in use. (b2ValidateUsedId)
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