unsafe extern "C" fn rust_free(ptr: *mut c_void, size: size_t, align: size_t) {
    Layout::from_size_align(size, align)
        .map(|layout| alloc::dealloc(ptr as *mut _, layout))
        .expect(&format!("Could not deallocate pointer {:p}", ptr))
}
/// Deallocation function which uses the rust allocator.
Deallocation function which uses the rust allocator.
Deallocation function which uses the rust allocator .
unsafe extern "C" fn rust_free(ptr: *mut c_void, size: size_t, align: size_t) {
    Layout::from_size_align(size, align)
        .map(|layout| alloc::dealloc(ptr as *mut _, layout))
        .expect(&format!("Could not deallocate pointer {:p}", ptr))
}
unsafe extern " " fn rust_free ( ptr : * mut c_void , size : size_t , align : size_t ) { Layout :: from_size_align ( size , align ) . map ( | layout | alloc :: dealloc ( ptr as * mut _ , layout ) ) . expect ( & format ! ( " " ptr ) ) }
Deallocation function which uses the rust allocator.
Deallocation function which uses the rust allocator .
ptr
*mut c_void
size
size_t
align
size_t
ptr
*mut c_void
size
size_t
align
size_t