simple-lazy 0.1.0

40 Lines wrapper of std OnceLock
Documentation
  • Coverage
  • 60%
    3 out of 5 items documented3 out of 4 items with examples
  • Size
  • Source code size: 16.74 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.4 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lightsing
simple-lazy-0.1.0 has been yanked.

simple-lazy

Crates.io API reference

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.