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
In your particular case, you could just load a u32 and call u32::to_be_bytes(). Otherwise, there's also BitVec::as_raw_slice. I don't see an equivalent method on BitSlice, however.
Hi! I'm attempting to shift a
&[u8]
by 4 bits, using the bitvec crate.Here's my naive guess from the Readme:
error:
How would I do this? Thank you! I need to then pass this to a function as a byte array. I've found a workaround, but it's messy:
The text was updated successfully, but these errors were encountered: