Struct proptest::collection::SizeRange
source · pub struct SizeRange(_);Expand description
The minimum and maximum range/bounds on the size of a collection.
The interval must form a subset of [0, std::usize::MAX).
The Default is 0..100.
Implementations§
Trait Implementations§
source§impl Arbitrary for SizeRange
impl Arbitrary for SizeRange
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default. Read moresource§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
source§impl From<(usize, usize)> for SizeRange
impl From<(usize, usize)> for SizeRange
Given (low: usize, high: usize),
then a size range of [low..high) is the result.
source§impl From<Range<usize>> for SizeRange
impl From<Range<usize>> for SizeRange
Given low..high, then a size range [low..high) is the result.
source§impl From<RangeTo<usize>> for SizeRange
impl From<RangeTo<usize>> for SizeRange
Given ..high, then a size range [0..high) is the result.
source§impl From<usize> for SizeRange
impl From<usize> for SizeRange
Given exact, then a size range of [exact..exact + 1) is the result.