#[repr(C)]pub struct Pool {
pub pageList: *mut BlockPage,
pub currAlloc: *mut BlockPage,
pub totalFreeBlocks: u32,
pub totalAllocatedBlocks: u32,
pub totalBytes: u32,
pub elementSize: u32,
pub lock: BSCriticalSection,
}
Expand description
Represents a pool for memory allocation.
Fields§
§pageList: *mut BlockPage
§currAlloc: *mut BlockPage
§totalFreeBlocks: u32
§totalAllocatedBlocks: u32
§totalBytes: u32
§elementSize: u32
§lock: BSCriticalSection
Trait Implementations§
impl StructuralPartialEq for Pool
Auto Trait Implementations§
impl Freeze for Pool
impl RefUnwindSafe for Pool
impl !Send for Pool
impl !Sync for Pool
impl Unpin for Pool
impl UnwindSafe for Pool
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