* [x] `get_or_try_init` * [x] `get_mut` * [x] `get_mut_or_init` * [x] `get_mut_or_try_init` * [x] `set` * [x] `try_insert` * [x] `take` You can refer to: * https://github.com/tokio-rs/tokio/blob/master/tokio/src/sync/once_cell.rs * https://doc.rust-lang.org/std/sync/struct.OnceLock.html * https://github.com/rust-lang/rust/pull/114788 Also, it's possible to add a `LazyCell` primitive that has a pre-configured initializer (closure).
get_or_try_initget_mutget_mut_or_initget_mut_or_try_initsettry_inserttakeYou can refer to:
Also, it's possible to add a
LazyCellprimitive that has a pre-configured initializer (closure).