Lines Matching full:weak
1 # weak-table: weak hash maps and sets for Rust
3 …Build Status](https://github.com/tov/weak-table-rs/actions/workflows/ci.yml/badge.svg)](https://gi…
4 [](https://crates.io/cra…
7 This crate defines several kinds of weak hash maps and sets. See
8 the [full API documentation](http://docs.rs/weak-table/) for details.
16 `weak-table` is built with the `std` feature, which enables
26 Here we create a weak hash map and demonstrate that it forgets mappings
31 use std::sync::{Arc, Weak};
33 let mut table = <WeakKeyHashMap<Weak<str>, u32>>::new();
54 Here we use a weak hash set to implement a simple string interning facility:
59 use std::rc::{Rc, Weak};
80 pub struct SymbolTable(WeakHashSet<Weak<str>>);