pub fn over(
    lower: LimitValue<T>,
    lower_included: bool,
    upper: LimitValue<T>,
    upper_included: bool,
  ) -> Self {
    Self::new(
      IntervalLimit::lower(lower_included, lower),
      IntervalLimit::upper(upper_included, upper),
    )
  }
/// Generate an interval.
///
/// Mainly used to generate half-open interval (intervals where only one of the upper and lower limits is open).
///
/// - params
///     - lower: lower limit, Limitless means there is no limit.
///     - lower_included: specify `true` if the lower limit is included in the interval (closed lower limit).
///     - upper: upper limit, Limitless means there is no limit.
///     - upper_included: specify `true` if the upper limit is included in the interval (closed upper limit)
/// - return: an interval
/// - panic
///     - if the lower limit is greater than the upper limit
Generate an interval.
Mainly used to generate half-open interval (intervals where only one of the upper and lower limits is open).

params
lower: lower limit, Limitless means there is no limit.
lower_included: specify `true` if the lower limit is included in the interval (closed lower limit).
upper: upper limit, Limitless means there is no limit.
upper_included: specify `true` if the upper limit is included in the interval (closed upper limit)
return: an interval
panic
if the lower limit is greater than the upper limit
Generate an interval . Mainly used to generate half - open interval ( intervals where only one of the upper and lower limits is open ) . params lower : lower limit Limitless means there is no limit . lower_included : specify ` true ` if the lower limit is included in the interval ( closed lower limit ) . upper : upper limit Limitless means there is no limit . upper_included : specify ` true ` if the upper limit is included in the interval ( closed upper limit ) return : an interval panic if the lower limit is greater than the upper limit
pub fn over(
    lower: LimitValue<T>,
    lower_included: bool,
    upper: LimitValue<T>,
    upper_included: bool,
  ) -> Self {
    Self::new(
      IntervalLimit::lower(lower_included, lower),
      IntervalLimit::upper(upper_included, upper),
    )
  }
pub fn over ( lower : LimitValue < T > , lower_included : bool , upper : LimitValue < T > , upper_included : bool , ) -> Self { Self :: new ( IntervalLimit :: lower ( lower_included , lower ) , IntervalLimit :: upper ( upper_included , upper ) , ) }
Generate an interval.
Generate an interval .
lower
LimitValue<T>
lower_included
bool
upper
LimitValue<T>
upper_included
bool