Manishearth / elsa

Append-only collections for Rust where borrows to entries can outlive insertions
Apache License 2.0
228 stars 33 forks source link

FrozenMap and friends should implement Debug #32

Open sffc opened 2 years ago

sffc commented 2 years ago

Workaround, assuming you have ownership:

println!("{:?}", my_map.as_mut());
Manishearth commented 2 years ago

Yeah we should add it

huitseeker commented 1 year ago

See also #31.

Is the concern with a derived variant that the RwLock / Cell / ... clobbers the printing of the inner content? If so is that concern still valid post https://github.com/rust-lang/rust/pull/83559 ?

Manishearth commented 1 year ago

No, not all of the elsa types use RwLock or Cell. Some have their own reentrancy guards that need to be respected