//! Generators that constrain the size of generated examples.
use RangeBounds;
use crateto_inclusive_range;
use crateBoxGen;
/// Creates a generator decorator that constrains the example sizes to be
/// within the given range.
///
/// This function takes an existing generator and a range, and returns a new
/// generator that will only generate examples with sizes within the given
/// range. The size range passed to the original generator will be overridden
/// with the given range.