Registry / utility / weak-table

weak-table

JSON →
library0.3.2rscratesunverified

Weak hash maps and sets for Rust.

# Cargo.toml [dependencies] weak-table = "0.3.2"
INSTALL
IMPORT
SIG · WEAK-TABLE
W
weak-table
utilityrustv0.3.2
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.

WeakHashMap
use weak_table::WeakHashMap;

Creates a weak hash map and inserts a key-value pair.

use weak_table::WeakHashMap; use std::rc::Rc; fn main() { let mut map: WeakHashMap<u32, Rc<String>> = WeakHashMap::new(); let value = Rc::new("hello".to_string()); map.insert(1, value.clone()); println!("Contains key 1: {}", map.contains_key(&1)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
weak-table — cargo add weak-table · libregistry