You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use BitArray<[u8; _]> as a container and then trying to index into it.
Immutable indexing to return &bool works just fine, but attempt to return &mut bool fails:
218 | &mut self.encoded_record_chunks_used[index]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot borrow as mutable
|
= help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `bitvec::array::BitArray<[u8; 8192]>`
Not sure what the reason of this is, but it is unexpected for sure.
The text was updated successfully, but these errors were encountered:
I use
BitArray<[u8; _]>
as a container and then trying to index into it.Immutable indexing to return
&bool
works just fine, but attempt to return&mut bool
fails:Not sure what the reason of this is, but it is unexpected for sure.
The text was updated successfully, but these errors were encountered: