unsafe extern "C" fn rust_alloc(size: size_t, align: size_t) -> *mut c_void {
    Layout::from_size_align(size, align)
        .map(|layout| alloc::alloc_zeroed(layout))
        .unwrap_or(ptr::null_mut()) as *mut _
}
/// Allocation function which uses the rust allocator.
Allocation function which uses the rust allocator.
Allocation function which uses the rust allocator .
unsafe extern "C" fn rust_alloc(size: size_t, align: size_t) -> *mut c_void {
    Layout::from_size_align(size, align)
        .map(|layout| alloc::alloc_zeroed(layout))
        .unwrap_or(ptr::null_mut()) as *mut _
}
unsafe extern " " fn rust_alloc ( size : size_t , align : size_t ) -> * mut c_void { Layout :: from_size_align ( size , align ) . map ( | layout | alloc :: alloc_zeroed ( layout ) ) . unwrap_or ( ptr :: null_mut ( ) ) as * mut _ }
Allocation function which uses the rust allocator.
Allocation function which uses the rust allocator .
size
size_t
align
size_t
size
size_t
align
size_t