Registry / utility / takecell

takecell

JSON →
library0.1.1rscratesunverified

A cell type whose value can only be taken once.

# Cargo.toml [dependencies] takecell = "0.1.1"
INSTALL
IMPORT
SIG · TAKECELL
T
takecell
utilityrustv0.1.1
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.

TakeCell
use takecell::TakeCell;

Create a TakeCell and take its value once.

use takecell::TakeCell; fn main() { let cell = TakeCell::new(42); if let Some(val) = cell.take() { println!("Took value: {}", val); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
takecell — cargo add takecell · libregistry