fn eq(&self, other: &Self) -> bool {
    if self.is_empty() & other.is_empty() {
      true
    } else if self.is_empty() ^ other.is_empty() {
      false
    } else if self.is_single_element() & other.is_single_element() {
      self.as_lower_limit() == other.as_lower_limit()
    } else if self.is_single_element() ^ other.is_single_element() {
      false
    } else {
      self.upper == other.upper && self.lower == other.lower
    }
  }
/// Verify the identity of this interval and the given interval `other`.
///
/// It returns `true` if both intervals are empty, and `false` if only one of them is empty.
/// If both are single-element intervals, the limits that are single elements are compared with each other, and `true` is returned if they match.
/// If only one of them is a single-element interval, `false` is returned.
///
/// - param
///   - other: an interval to be compared
/// - return: `true` if they are identical, `false` if they are not
Verify the identity of this interval and the given interval `other`.
It returns `true` if both intervals are empty, and `false` if only one of them is empty.
If both are single-element intervals, the limits that are single elements are compared with each other, and `true` is returned if they match.
If only one of them is a single-element interval, `false` is returned.

param
other: an interval to be compared
return: `true` if they are identical, `false` if they are not
Verify the identity of this interval and the given interval ` other ` . It returns ` true ` if both intervals are empty and ` false ` if only one of them is empty . If both are single - element intervals the limits that are single elements are compared with each other and ` true ` is returned if they match . If only one of them is a single - element interval ` false ` is returned . param other : an interval to be compared return : ` true ` if they are identical ` false ` if they are not
fn eq(&self, other: &Self) -> bool {
    if self.is_empty() & other.is_empty() {
      true
    } else if self.is_empty() ^ other.is_empty() {
      false
    } else if self.is_single_element() & other.is_single_element() {
      self.as_lower_limit() == other.as_lower_limit()
    } else if self.is_single_element() ^ other.is_single_element() {
      false
    } else {
      self.upper == other.upper && self.lower == other.lower
    }
  }
fn eq ( & self , other : & Self ) -> bool { if self . is_empty ( ) & other . is_empty ( ) { true } else if self . is_empty ( ) ^ other . is_empty ( ) { false } else if self . is_single_element ( ) & other . is_single_element ( ) { self . as_lower_limit ( ) == other . as_lower_limit ( ) } else if self . is_single_element ( ) ^ other . is_single_element ( ) { false } else { self . upper == other . upper && self . lower == other . lower } }
Verify the identity of this interval and the given interval `other`.
Verify the identity of this interval and the given interval ` other ` .
&self
other
&Self