Struct dicetest::Limit [−][src]
pub struct Limit(pub u64);
Expand description
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.
Tuple Fields
0: u64
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Limit
impl UnwindSafe for Limit
Blanket Implementations
Mutably borrows from an owned value. Read more