Crate stackbox

source ·
Expand description

§::stackbox

Repository Latest version Documentation MSRV License CI

§&owning references in stable Rust - no_std-friendly Box

See the documentation of the StackBox type for more info.

Modules§

  • Hand-rolled implementations of pervasive StackBox<dyn …> types.
  • This crates prelude: usage of this crate is designed to be ergonomic provided all the items within this module are in scope.
  • Uninteresting module just to expose slice-specific helper types.

Macros§

  • Helper macro to define custom StackBox<dyn …> trait objects.
  • Convenience macro to batch-create multiple Slots.
  • Convenience macro for more ergonomic StackBox constructions.

Structs§

  • A Sized and uninit slot to manually handle the scope of StackBox’s backing inline allocations.
  • Stack1-allocated Box. Think of this as of &'frame mut T, but with move semantics (no reborrowing!) which allow the “reference” to drop its pointee.

Functions§