#no-std #no-std #data #structure #config

no-std unstorable

An interface for requiring that a type is only used on the current stack frame

1 unstable release

0.1.0 Jun 24, 2021

#159 in #data-structure


149 lines


A rust crate to turn references into something that is unstorable. Mainly useful as a helper to ensure that config values that can change at runtime are always read and never stored.



This crate provides a type that is meant to be used with config that can be updated. The Unstorable type is meant to only be referenced on the stack and made very hard to store in any struct or on the heap. It is an unnamed type which makes it impossible to declare as part of a struct without generics.

No runtime deps