Struct libmimalloc_sys::mi_heap_area_t
source · #[repr(C)]pub struct mi_heap_area_t {
pub blocks: *mut c_void,
pub reserved: usize,
pub committed: usize,
pub used: usize,
pub block_size: usize,
pub full_block_size: usize,
}
Expand description
An area of heap space contains blocks of a single size.
The bytes in freed blocks are committed - used
.
Fields§
§blocks: *mut c_void
Start of the area containing heap blocks.
reserved: usize
Bytes reserved for this area.
committed: usize
Current committed bytes of this area.
used: usize
Bytes in use by allocated blocks.
block_size: usize
Size in bytes of one block.
full_block_size: usize
Size in bytes of a full block including padding and metadata.
Trait Implementations§
source§impl Clone for mi_heap_area_t
impl Clone for mi_heap_area_t
source§fn clone(&self) -> mi_heap_area_t
fn clone(&self) -> mi_heap_area_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for mi_heap_area_t
impl Debug for mi_heap_area_t
impl Copy for mi_heap_area_t
Auto Trait Implementations§
impl Freeze for mi_heap_area_t
impl RefUnwindSafe for mi_heap_area_t
impl !Send for mi_heap_area_t
impl !Sync for mi_heap_area_t
impl Unpin for mi_heap_area_t
impl UnwindSafe for mi_heap_area_t
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)