std::mem

std::mem

Heap allocation, re-exported from the core library.

Re-exports

pub import builtin::base::alloc::{
    Allocator, Resizer, Reallocator, ZeroAllocator, ScopedAllocator, FullAllocator,
    ScopedFullAllocator, Uninitialized, UninitializedSlice, uninitialized_from, AllocatorScope,
    Global, System, create, try_create, destroy, create_slice, destroy_slice, alloc_raw,
    free_raw, resize_raw, create_in, try_create_in, destroy_in, create_slice_in,
    destroy_slice_in, alloc_in, release_in, alloc_bytes, free_bytes, alloc_zeroed, resize_bytes,
    try_resize_in_place, realloc_by_copy, set_oom_handler, oom,
}

Heap allocation API, re-exported from builtin::base::alloc so user code can write std::create<T>(...) and std::destroy(p).

The functions without an _in suffix use the allocator in effect: the innermost open AllocatorScope on this thread, otherwise Global. The *_in<.., A> functions name the allocator A explicitly. Each re-exported item is documented in the core library reference.

Re-exported items: Allocator, Resizer, Reallocator, ZeroAllocator, ScopedAllocator, FullAllocator, ScopedFullAllocator, Uninitialized, UninitializedSlice, uninitialized_from, AllocatorScope, Global, System, create, try_create, destroy, create_slice, destroy_slice, alloc_raw, free_raw, resize_raw, create_in, try_create_in, destroy_in, create_slice_in, destroy_slice_in, alloc_in, release_in, alloc_bytes, free_bytes, alloc_zeroed, resize_bytes, try_resize_in_place, realloc_by_copy, set_oom_handler, oom.

Generated from Kairo source, Apache-2.0 WITH AdditionRef-Kairo-Runtime-exception.