[][src]Type Definition webrender::api::VoidPtrToSizeFn

type VoidPtrToSizeFn = unsafe extern "C" fn(*const c_void) -> usize;

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.