Constant c_allocator [src]

Supports the full Allocator interface, including alignment, and exploiting malloc_usable_size if available. For an allocator that directly calls malloc/free, see raw_c_allocator.

Type

Allocator

Source

pub const c_allocator: Allocator = .{ .ptr = undefined, .vtable = &CAllocator.vtable, }