pub struct BlockAllocator {
pub chunks: Vec<*mut u8>,
pub current_chunk: usize,
pub current_offset: usize,
pub block_size: usize,
pub free_list: FnvHashSet<*mut u8>,
/* private fields */
}Fields§
§chunks: Vec<*mut u8>§current_chunk: usize§current_offset: usize§block_size: usize§free_list: FnvHashSet<*mut u8>Implementations§
Trait Implementations§
Source§impl Drop for BlockAllocator
impl Drop for BlockAllocator
Auto Trait Implementations§
impl !Send for BlockAllocator
impl !Sync for BlockAllocator
impl Freeze for BlockAllocator
impl RefUnwindSafe for BlockAllocator
impl Unpin for BlockAllocator
impl UnsafeUnpin for BlockAllocator
impl UnwindSafe for BlockAllocator
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