#[repr(C)]pub struct malloc_zone_t {Show 16 fields
pub size: Option<unsafe extern "C" fn(*mut malloc_zone_t, *const c_void) -> usize>,
pub malloc: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize) -> *mut c_void>,
pub calloc: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize, usize) -> *mut c_void>,
pub valloc: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(*mut malloc_zone_t, *mut c_void)>,
pub realloc: Option<unsafe extern "C" fn(*mut malloc_zone_t, *mut c_void, usize) -> *mut c_void>,
pub destroy: Option<unsafe extern "C" fn(*mut malloc_zone_t)>,
pub zone_name: *const i8,
pub batch_malloc: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize, *mut *mut c_void, u32) -> u32>,
pub batch_free: Option<unsafe extern "C" fn(*mut malloc_zone_t, *mut *mut c_void, u32)>,
pub introspect: *mut malloc_introspection_t,
pub version: u32,
pub memalign: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize, usize) -> *mut c_void>,
pub free_definite_size: Option<unsafe extern "C" fn(*mut malloc_zone_t, *mut c_void, usize)>,
pub pressure_relief: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize) -> usize>,
pub claimed_address: Option<unsafe extern "C" fn(*mut malloc_zone_t, *mut c_void) -> u32>,
/* private fields */
}
Fields§
§size: Option<unsafe extern "C" fn(*mut malloc_zone_t, *const c_void) -> usize>
§malloc: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize) -> *mut c_void>
§calloc: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize, usize) -> *mut c_void>
§valloc: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize) -> *mut c_void>
§free: Option<unsafe extern "C" fn(*mut malloc_zone_t, *mut c_void)>
§realloc: Option<unsafe extern "C" fn(*mut malloc_zone_t, *mut c_void, usize) -> *mut c_void>
§destroy: Option<unsafe extern "C" fn(*mut malloc_zone_t)>
§zone_name: *const i8
§batch_malloc: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize, *mut *mut c_void, u32) -> u32>
§batch_free: Option<unsafe extern "C" fn(*mut malloc_zone_t, *mut *mut c_void, u32)>
§introspect: *mut malloc_introspection_t
§version: u32
§memalign: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize, usize) -> *mut c_void>
§free_definite_size: Option<unsafe extern "C" fn(*mut malloc_zone_t, *mut c_void, usize)>
§pressure_relief: Option<unsafe extern "C" fn(*mut malloc_zone_t, usize) -> usize>
§claimed_address: Option<unsafe extern "C" fn(*mut malloc_zone_t, *mut c_void) -> u32>
Trait Implementations§
Source§impl Clone for malloc_zone_t
impl Clone for malloc_zone_t
Source§fn clone(&self) -> malloc_zone_t
fn clone(&self) -> malloc_zone_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 malloc_zone_t
impl Debug for malloc_zone_t
Source§impl Hash for malloc_zone_t
impl Hash for malloc_zone_t
Source§impl PartialEq for malloc_zone_t
impl PartialEq for malloc_zone_t
impl Copy for malloc_zone_t
impl Eq for malloc_zone_t
impl StructuralPartialEq for malloc_zone_t
Auto Trait Implementations§
impl Freeze for malloc_zone_t
impl RefUnwindSafe for malloc_zone_t
impl !Send for malloc_zone_t
impl !Sync for malloc_zone_t
impl Unpin for malloc_zone_t
impl UnwindSafe for malloc_zone_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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more