pub struct ReallocRequest { /* private fields */ }
Expand description
Indicates that an IdPool
should change to a new target size.
Implementations§
Source§impl ReallocRequest
impl ReallocRequest
Sourcepub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError>
pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError>
Allocates a new backing BitmapVec
for IdPool
.
This method only prepares reallocation and does not complete it.
Reallocation will complete after passing the PoolResizer
to the
IdPool::grow
or IdPool::shrink
operation, which will check
that reallocation still makes sense.
Auto Trait Implementations§
impl Freeze for ReallocRequest
impl RefUnwindSafe for ReallocRequest
impl Send for ReallocRequest
impl Sync for ReallocRequest
impl Unpin for ReallocRequest
impl UnwindSafe for ReallocRequest
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more