Sha256: 16ad32b9edaa871c046a2543614eb18513801fd880f8926343c2cc74ee7251a4
Contents?: true
Size: 504 Bytes
Versions: 3
Compression:
Stored size: 504 Bytes
Contents
use { crate::{Arbitrary, Result, Unstructured}, std::collections::btree_set::BTreeSet, }; impl<'a, A> Arbitrary<'a> for BTreeSet<A> where A: Arbitrary<'a> + Ord, { 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