proptest-arbitrary 0.2.0

The Arbitrary trait for proptest and implementations for the standard library.
1
2
3
4
5
6
7
8
9
10
use super::*;
use std::mem::*;

arbitrary_for!([A: Arbitrary<'a>] Discriminant<A>,
    SMapped<'a, A, Self>, A::Parameters,
    args => static_map(any_with::<A>(args), |x| discriminant(&x))
);

// The user is responsible for dropping!
impl_wrap_gen!([] ManuallyDrop);