Function stackbox::mk_slot[][src]

pub const fn mk_slot<T>() -> Slot<T>

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

A so-created &mut Slot<T> is then to be used to derive a StackBox<'slot, T> out of it, by feeding a value to the slot: