I’m now noticing that the ask in this thread has large overlap with parts of the discussion in your recent previous thread: `BitSlice` or a sound way to implement one
Regarding
specifically the last replies starting with
As far as I understand the reality of possible implementations, you’d have to be either restricting split mutable borrows to stay within the same thread (i.e. some degree of introducing !Sync or !Send with these types) or you’d need to implement modifications of individual bits in a byte with atomic operations.