#structure #data #config #no-std #stack-frame

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

#1630 in Data structures

21 downloads per month

MIT/Apache

8KB
149 lines

Unstorable

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.


lib.rs:

Unstorable

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