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,
}
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.
Trait Implementations
sourceimpl Clone for mi_heap_area_t
impl Clone for mi_heap_area_t
sourcefn clone(&self) -> mi_heap_area_t
fn clone(&self) -> mi_heap_area_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for mi_heap_area_t
impl Debug for mi_heap_area_t
impl Copy for mi_heap_area_t
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more