Closed sunshowers closed 5 years ago
That would be useful while writing tests, to compare a Vec<u8> or a bytestring literal to a Bytes or a ByteBuf without trying to wrap things up.
Vec<u8>
Bytes
ByteBuf
Thanks! Fixed in 82ecabf037dee323d4626c24d1251bd475bf5050 to support comparing with anything that implements AsRef\<[u8]> on the right-hand side. Released in 0.11.0.
That would be useful while writing tests, to compare a
Vec<u8>
or a bytestring literal to aBytes
or aByteBuf
without trying to wrap things up.