2 ms·
For instance one of the most popular crates is the lazy_static macro without which it is hard to define global state. I also tend to define quite a few helper m
by zarzavat 5y ago
For instance one of the most popular crates is the lazy_static macro without which it is hard to define global state. I also tend to define quite a few helper macros in my Rust code to keep clean.
- pornel 5y agoonce_cell does the same with a closure. Improved const evaluation has also eliminated some uses of lazy_static.