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§

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

Macros§

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

Structs§

Slot
A Sized and uninit slot to manually handle the scope of StackBox’s backing inline allocations.
StackBox
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§

mk_slot
Same as Slot::VACANT, but using function call syntax to avoid firing the trigger-happy const_item_mutation lint.