pub unsafe fn new_rust_allocator<T>(
handle: *const T,
vtable: &'static RustAllocatorVtable<T>,
) -> UniqueRef<Allocator>Expand description
Creates an allocator managed by Rust code.
Marked unsafe because the caller must ensure that handle is valid and matches what vtable expects.