#[repr(C)]pub struct IMallocVtbl {
pub QueryInterface: Option<unsafe extern "C" fn(This: *mut IMalloc, riid: *const IID, ppvObject: *mut *mut c_void) -> HRESULT>,
pub AddRef: Option<unsafe extern "C" fn(This: *mut IMalloc) -> ULONG>,
pub Release: Option<unsafe extern "C" fn(This: *mut IMalloc) -> ULONG>,
pub Alloc: Option<unsafe extern "C" fn(This: *mut IMalloc, cb: SIZE_T) -> *mut c_void>,
pub Realloc: Option<unsafe extern "C" fn(This: *mut IMalloc, pv: *mut c_void, cb: SIZE_T) -> *mut c_void>,
pub Free: Option<unsafe extern "C" fn(This: *mut IMalloc, pv: *mut c_void)>,
pub GetSize: Option<unsafe extern "C" fn(This: *mut IMalloc, pv: *mut c_void) -> SIZE_T>,
pub DidAlloc: Option<unsafe extern "C" fn(This: *mut IMalloc, pv: *mut c_void) -> c_int>,
pub HeapMinimize: Option<unsafe extern "C" fn(This: *mut IMalloc)>,
}
Fields§
§QueryInterface: Option<unsafe extern "C" fn(This: *mut IMalloc, riid: *const IID, ppvObject: *mut *mut c_void) -> HRESULT>
§AddRef: Option<unsafe extern "C" fn(This: *mut IMalloc) -> ULONG>
§Release: Option<unsafe extern "C" fn(This: *mut IMalloc) -> ULONG>
§Alloc: Option<unsafe extern "C" fn(This: *mut IMalloc, cb: SIZE_T) -> *mut c_void>
§Realloc: Option<unsafe extern "C" fn(This: *mut IMalloc, pv: *mut c_void, cb: SIZE_T) -> *mut c_void>
§Free: Option<unsafe extern "C" fn(This: *mut IMalloc, pv: *mut c_void)>
§GetSize: Option<unsafe extern "C" fn(This: *mut IMalloc, pv: *mut c_void) -> SIZE_T>
§DidAlloc: Option<unsafe extern "C" fn(This: *mut IMalloc, pv: *mut c_void) -> c_int>
§HeapMinimize: Option<unsafe extern "C" fn(This: *mut IMalloc)>
Trait Implementations§
Source§impl Clone for IMallocVtbl
impl Clone for IMallocVtbl
Source§fn clone(&self) -> IMallocVtbl
fn clone(&self) -> IMallocVtbl
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 IMallocVtbl
impl Debug for IMallocVtbl
Source§impl Ord for IMallocVtbl
impl Ord for IMallocVtbl
Source§fn cmp(&self, other: &IMallocVtbl) -> Ordering
fn cmp(&self, other: &IMallocVtbl) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IMallocVtbl
impl PartialEq for IMallocVtbl
Source§impl PartialOrd for IMallocVtbl
impl PartialOrd for IMallocVtbl
impl Copy for IMallocVtbl
impl Eq for IMallocVtbl
impl StructuralPartialEq for IMallocVtbl
Auto Trait Implementations§
impl Freeze for IMallocVtbl
impl RefUnwindSafe for IMallocVtbl
impl Send for IMallocVtbl
impl Sync for IMallocVtbl
impl Unpin for IMallocVtbl
impl UnwindSafe for IMallocVtbl
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