pub(crate) struct FreeList<M> {
array: Vec<FreeListRegion<M>>,
counter: u64,
}
Fields§
§array: Vec<FreeListRegion<M>>
§counter: u64
Implementations§
source§impl<M> FreeList<M>
impl<M> FreeList<M>
pub fn new() -> Self
pub fn get_block_from_new_memory( &mut self, memory: Arc<M>, memory_size: u64, ptr: Option<NonNull<u8>>, align_mask: u64, size: u64, ) -> FreeListBlock<M>
pub fn get_block( &mut self, align_mask: u64, size: u64, ) -> Option<FreeListBlock<M>>
fn get_block_at( &mut self, index: usize, align_mask: u64, size: u64, ) -> FreeListBlock<M>
pub fn insert_block(&mut self, block: FreeListBlock<M>)
pub fn drain( &mut self, keep_last: bool, ) -> Option<impl Iterator<Item = (M, u64)> + '_>
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for FreeList<M>
impl<M> RefUnwindSafe for FreeList<M>where
M: RefUnwindSafe,
impl<M> Send for FreeList<M>where
M: Send,
impl<M> Sync for FreeList<M>where
M: Sync,
impl<M> Unpin for FreeList<M>
impl<M> UnwindSafe for FreeList<M>where
M: RefUnwindSafe,
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