proptest-arbitrary 0.2.1

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

arbitrary!([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!
wrap_ctor!(ManuallyDrop);