pub fn new_of_same_type(
    &self,
    lower: LimitValue<T>,
    lower_closed: bool,
    upper: LimitValue<T>,
    upper_closed: bool,
  ) -> Interval<T> {
    Self::over(lower, lower_closed, upper, upper_closed)
  }
/// Generate a new interval with the same type as this interval.
///
/// - params
///     - lower: lower limit, if there is no limit value, then Limitless.
///     - lower_closed: Specify `true` if the lower limit is included in the interval (closed lower limit).
///     - upper: upper limit, if there is no limit value, then Limitless.
///     - upper_closed: specify `true` if the upper limit is included in the interval (closed upper limit)
/// - return: an new interval
Generate a new interval with the same type as this interval.
params
lower: lower limit, if there is no limit value, then Limitless.
lower_closed: Specify `true` if the lower limit is included in the interval (closed lower limit).
upper: upper limit, if there is no limit value, then Limitless.
upper_closed: specify `true` if the upper limit is included in the interval (closed upper limit)
return: an new interval
Generate a new interval with the same type as this interval . params lower : lower limit if there is no limit value then Limitless . lower_closed : Specify ` true ` if the lower limit is included in the interval ( closed lower limit ) . upper : upper limit if there is no limit value then Limitless . upper_closed : specify ` true ` if the upper limit is included in the interval ( closed upper limit ) return : an new interval
pub fn new_of_same_type(
    &self,
    lower: LimitValue<T>,
    lower_closed: bool,
    upper: LimitValue<T>,
    upper_closed: bool,
  ) -> Interval<T> {
    Self::over(lower, lower_closed, upper, upper_closed)
  }
pub fn new_of_same_type ( & self , lower : LimitValue < T > , lower_closed : bool , upper : LimitValue < T > , upper_closed : bool , ) -> Interval < T > { Self :: over ( lower , lower_closed , upper , upper_closed ) }
Generate a new interval with the same type as this interval.
Generate a new interval with the same type as this interval .
&self
lower
LimitValue<T>
lower_closed
bool
upper
LimitValue<T>
upper_closed
bool