#PartialEq for RwLock/Mutex

2 messages · Page 1 of 1 (latest)

plush schooner
#

When looking at structs which have an Arc<RwLock<T>> field, would I implement PartialEq by leaving out the comparison of that field, or would I implement it by using .read().unwrap() in the comparison implementation? 🤔

rapid dune
#

That's up to you