Registry / utility / lazycell

lazycell

JSON →
library1.3.0rscratesunverified

A library providing a lazily filled Cell struct

# Cargo.toml [dependencies] lazycell = "1.3.0"
INSTALL
IMPORT
SIG · LAZYCELL
L
lazycell
utilityrustv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LazyCell
✓ use lazycell::LazyCell;

Create and use a lazily initialized cell

use lazycell::LazyCell; let cell = LazyCell::new(); assert!(!cell.filled()); cell.fill(42).unwrap(); assert_eq!(*cell.borrow().unwrap(), 42);
Debug
Known issues
gotchaNot thread-safe; use `AtomicLazyCell` for concurrent access
fix
Use `lazycell::AtomicLazyCell` instead
affects: >=1.0.0
Upgrade
Version history
1.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
lazycell — cargo add lazycell · libregistry