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
pubstructBitMap{inner:Receiver<Vec<u8>>,rare_bits:BitVec<u8,Msb0>,}implBitMap{asyncfnrecv(&mutself){let next = self.inner.recv().await.unwrap();let rhs = BitVec::from_vec(next);self.rare_bits.bitxor_assign(rhs);}}
But the following doesn't:
pubstructBitMap{inner:Receiver<Vec<u8>>,rare_bits:BitVec,}implBitMap{asyncfnrecv(&mutself){let next = self.inner.recv().await.unwrap();let rhs = BitVec::from_vec(next);// no implementation for `BitSlice ^= BitVec<u8, _>`self.rare_bits.bitxor_assign(rhs);}}
What are the semantic differences here?
The text was updated successfully, but these errors were encountered:
avdb13
changed the title
Difference between BitVec and BitVec<T, O>`?
Difference between BitVec and BitVec<T, O>?
Jul 17, 2023
The following compiles:
But the following doesn't:
What are the semantic differences here?
The text was updated successfully, but these errors were encountered: