elsa icon indicating copy to clipboard operation
elsa copied to clipboard

Append-only collections for Rust where borrows to entries can outlive insertions

Results 7 elsa issues
Sort by recently updated
recently updated
newest added

#10 added `FrozenIndexMap`, `FrozenIndexSet` under a feature, but not sync variants thereof. This adds those sync variants.

It’s a bit tricky to reproduce, but here’s a way that seems to reliably do it, as of now: ```rs use std::{ collections::HashMap, panic::{catch_unwind, AssertUnwindSafe}, sync::Mutex, }; #[derive(PartialEq, Eq, Debug)]...

FrozenMap hands out references to its values, but since the map also owns the keys it is possible to provide references to the keys as well. Assuming K: StableDeref, implement:...

Would be nice if the methods had docs and doctests. A lot of this can be copied from `std`

help wanted

Hi. I found a way to iterate FrozenMap. See rationale in docs