Sha256: f42caa49d1a55461c9d515d386fc2b7b2bfc5f0ac8a229d5ca465af5573a453f
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 Bytes
Contents
use crate::{Arbitrary, Result, Unstructured}; impl<'a> Arbitrary<'a> for &'a [u8] { fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { let len = u.arbitrary_len::<u8>()?; u.bytes(len) } fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { Ok(u.take_rest()) } #[inline] fn size_hint(_depth: usize) -> (usize, Option<usize>) { (0, None) } }
Version data entries
3 entries across 3 versions & 1 rubygems