std::lazy - Rust
Description: Lazy values and one-time initialization of static data.
Keywords: rust, rustlang, rust-lang, lazy

# Module std::lazy
[−][src]

🔬 This is a nightly-only experimental API. (`once_cell` #74465)
Expand description

Lazy values and one-time initialization of static data.

## Structs

Lazy Experimental

A value which is initialized on the first access.

OnceCell Experimental

A cell which can be written to only once.

SyncLazy Experimental

A value which is initialized on the first access.

SyncOnceCell Experimental

A synchronization primitive which can be written to only once.