#[repr(C)]pub struct mi_memory_callbacks_t {
pub handlers: [Option<mi_memory_change_fun>; 3],
pub args: [*mut c_void; 3],
}Expand description
Mirrors mi_memory_callbacks_t (include/mimalloc/memory-events.h): one handler and
one caller-owned arg per mi_memory_change_kind_t, indexed by the kind.
Fields§
§handlers: [Option<mi_memory_change_fun>; 3]Handler per change kind; None leaves that kind unobserved.
args: [*mut c_void; 3]Caller-owned context per change kind, passed back to the matching handler.
Trait Implementations§
Source§impl Clone for mi_memory_callbacks_t
impl Clone for mi_memory_callbacks_t
Source§fn clone(&self) -> mi_memory_callbacks_t
fn clone(&self) -> mi_memory_callbacks_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for mi_memory_callbacks_t
Auto Trait Implementations§
impl !Send for mi_memory_callbacks_t
impl !Sync for mi_memory_callbacks_t
impl Freeze for mi_memory_callbacks_t
impl RefUnwindSafe for mi_memory_callbacks_t
impl Unpin for mi_memory_callbacks_t
impl UnsafeUnpin for mi_memory_callbacks_t
impl UnwindSafe for mi_memory_callbacks_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