[−][src]Macro bump_into::space_uninit_aligned
Creates an uninitialized single MaybeUninit on the stack,
with the given capacity and alignment, suitable for passing
into BumpInto::from_single.
The alignment given must be suitable for use as the parameter to repr(align), i.e. (as of Rust 1.45.0) a basic integer literal.
Examples
use bump_into::space_uninit_aligned; use core::mem; let mut space = space_uninit_aligned!(capacity: 64, align: 4); assert_eq!(mem::size_of_val(&space), 64); assert_eq!(mem::align_of_val(&space), 4);