alloc_traits::util::defaults

Module local

Source
Expand description

Default implementations for the LocalAlloc trait.

See LocalAlloc for more information. The methods called by the functions in this module are documented and will not change between non-breaking releases, if at all. Rather new variants may be added that call additional methods that might be more efficient. This avoids accidentally creating a dependency loop in implementors.

Functions§

  • Allocate a block of memory initialized with zeros.
  • Change the layout of a block previously allocated.