pub struct IMalloc(/* private fields */);Implementations§
Source§impl IMalloc
impl IMalloc
pub unsafe fn Alloc(&self, cb: usize) -> *mut c_void
pub unsafe fn Realloc(&self, pv: *mut c_void, cb: usize) -> *mut c_void
pub unsafe fn Free(&self, pv: *mut c_void)
pub unsafe fn GetSize(&self, pv: *mut c_void) -> usize
pub unsafe fn DidAlloc(&self, pv: *mut c_void) -> i32
pub unsafe fn HeapMinimize(&self)
Trait Implementations§
Source§impl Interface for IMalloc
impl Interface for IMalloc
const IID: Guid
type Vtable = IMalloc_abi
Source§impl<'a> IntoParam<'a, IUnknown> for &'a IMalloc
impl<'a> IntoParam<'a, IUnknown> for &'a IMalloc
fn into_param(self) -> Param<'a, IUnknown>
Source§impl<'a> IntoParam<'a, IUnknown> for IMalloc
impl<'a> IntoParam<'a, IUnknown> for IMalloc
fn into_param(self) -> Param<'a, IUnknown>
impl Eq for IMalloc
impl StructuralPartialEq for IMalloc
Auto Trait Implementations§
impl Freeze for IMalloc
impl RefUnwindSafe for IMalloc
impl !Send for IMalloc
impl !Sync for IMalloc
impl Unpin for IMalloc
impl UnwindSafe for IMalloc
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
Source§unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
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