1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use TryFrom;
/// The upper limit for the length of dynamic data structures generated with [`DieOnce`] and
/// [`Die`].
///
/// The implementor of [`DieOnce`] or [`Die`] is allowed to freely interpret or even ignore this
/// value, but it's recommended that the complexity of the value generation is in `O(limit)`.
///
/// This parameter exists because the hardware of the testing machine is limited. For example
/// a very big list could not fit in the memory or its generation could take too much time.
/// With this parameter you can implement a generator for lists of arbitrary length and its
/// user can choose an upper limit depending on his hardware.
///
/// [`DieOnce`]: crate::DieOnce
/// [`Die`]: crate::Die
;