smol-bytes 0.1.5

High-performance, clone-efficient byte buffers optimized for small data.
Documentation
1
2
3
4
5
6
7
use super::BytesMut;

impl<'a> arbitrary::Arbitrary<'a> for BytesMut {
  fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> {
    <&[u8]>::arbitrary(u).map(Self::from)
  }
}