ferrilab / bitvec

A crate for managing memory bit by bit
https://myrrlyn.net/crates/bitvec
MIT License
1.22k stars 115 forks source link

Change set_aliased to return the previous bit value #273

Open smalis-msft opened 5 months ago

smalis-msft commented 5 months ago

As the underlying code is performing fetch_(or/and)s this is perfectly valid to do. These could be moved into a new replace_aliased instead if desired, I have no real preference, this just seemed easier and mostly nonbreaking.