pub type VoidPtrToSizeFn = unsafe extern "C" fn(ptr: *const c_void) -> usize;
Expand description
A C function that takes a pointer to a heap allocation and returns its size.
This is borrowed from the malloc_size_of crate, upon which we want to avoid a dependency from WebRender.