0.1.0 |
|
---|
#182 in #std
7KB
simple-lazy
A 40 lines wrapper of std::once::OnceLock
that allows you to lazily initialize a value.
Most code is copied from once_cell
but replace the implementation of once_cell OnceCell
with std OnceLock
.
MSRV
This crate is guaranteed to compile on stable Rust 1.70 and up.
It might be changed since once_cell_try
is not stable yet.