elsa icon indicating copy to clipboard operation
elsa copied to clipboard

FrozenMap and friends should implement Debug

Open sffc opened this issue 3 years ago • 4 comments

sffc avatar Oct 18 '22 23:10 sffc

Workaround, assuming you have ownership:

println!("{:?}", my_map.as_mut());

sffc avatar Oct 18 '22 23:10 sffc

Yeah we should add it

Manishearth avatar Oct 19 '22 00:10 Manishearth

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 ?

huitseeker avatar Sep 26 '23 12:09 huitseeker

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

Manishearth avatar Sep 26 '23 15:09 Manishearth