Sha256: 57ca9806b9381d6b53e46a0b15fa97c1c698ef950686a1502d0b034656a3f23e
Contents?: true
Size: 469 Bytes
Versions: 3
Compression:
Stored size: 469 Bytes
Contents
use { crate::{Arbitrary, Result, Unstructured}, std::vec::Vec, }; impl<'a, A> Arbitrary<'a> for Vec<A> where A: Arbitrary<'a>, { fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { u.arbitrary_iter()?.collect() } fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { u.arbitrary_take_rest_iter()?.collect() } #[inline] fn size_hint(_depth: usize) -> (usize, Option<usize>) { (0, None) } }
Version data entries
3 entries across 3 versions & 1 rubygems