Crate memapi2

Crate memapi2 

Source
Expand description

A small, no_std-friendly memory allocation interface for managing raw buffers, suitable for use in collections.

This crate focuses on a minimal API:

  • Alloc: a trait defining basic allocation, zero-allocation, deallocation, and simple grow/shrink helpers.
  • DefaultAlloc: a tiny wrapper delegating to the global allocator.
  • AllocError: an error type describing allocation failures.

Some utilities and marker traits are provided under data:

Modules§

data
Module for anything related specifically to data.
error
Errors that can occur during allocation.
helpers
Helpers that tend to be useful in other libraries as well.
unstable_util
Small alternatives to Rust functions that are unstable as of the most recent release.

Structs§

DefaultAlloc
Default allocator, delegating to the global allocator.

Traits§

Alloc
A memory allocation interface.