Module r3_core::utils

source ·
Expand description

Utility

This module is exempt from the API stability guarantee unless specified otherwise. It’s exposed mostly because it’s needed by macros.

Re-exports

Modules

Structs

  • Untyped storage of the specified size and alignment. This is analogous to C++’s std::aligned_storage_t.
  • The AllocError error indicates an allocation failure that may be due to resource exhaustion or to something wrong when combining the given input arguments with this allocator.
  • Compile-time allocator.
  • Erases interior mutability by preventing reference forming.
  • Like UnsafeCell, but implements Sync.

Traits

Type Definitions

Derive Macros

  • Derive the Zeroable trait for a struct