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
11
12
use super::*;
use std::fs::{DirBuilder};

// TODO: other parts (figure out workable semantics).

impl_arbitrary!(DirBuilder, SMapped<'a, bool, Self>, {
    static_map(any::<bool>(), |recursive| {
        let mut db = DirBuilder::new();
        db.recursive(recursive);
        db
    })
});