use crate::{Arbitrary, Result, Unstructured}; impl<'a> Arbitrary<'a> for &'a [u8] { fn arbitrary(u: &mut Unstructured<'a>) -> Result { let len = u.arbitrary_len::()?; u.bytes(len) } fn arbitrary_take_rest(u: Unstructured<'a>) -> Result { Ok(u.take_rest()) } #[inline] fn size_hint(_depth: usize) -> (usize, Option) { (0, None) } }