pub fn is_overlapping(&self, other: &Self) -> bool {
        if other.range().contains(&self.start())
            || other.range().contains(&self.end())
        {
            return true;
        }

        if self.range().contains(&other.start())
            || self.range().contains(&other.end())
        {
            return true;
        }

        false
    }
/// Returns true when any part of this region is contained within another.
///
/// NOTE: this is different from `is_contiguous` because that method only
/// checks that the edges are touching. Overlapping regions are not just
/// touching, but truly overlapping - this indicates the user is attempting
/// to free memory incorrectly.
Returns true when any part of this region is contained within another.
NOTE: this is different from `is_contiguous` because that method only
checks that the edges are touching. Overlapping regions are not just
touching, but truly overlapping - this indicates the user is attempting
to free memory incorrectly.
Returns true when any part of this region is contained within another . NOTE : this is different from ` is_contiguous ` because that method only checks that the edges are touching . Overlapping regions are not just touching but truly overlapping - this indicates the user is attempting to free memory incorrectly .
pub fn is_overlapping(&self, other: &Self) -> bool {
        if other.range().contains(&self.start())
            || other.range().contains(&self.end())
        {
            return true;
        }
        if self.range().contains(&other.start())
            || self.range().contains(&other.end())
        {
            return true;
        }
        false
    }
pub fn is_overlapping ( & self , other : & Self ) -> bool { if other . range ( ) . contains ( & self . start ( ) ) || other . range ( ) . contains ( & self . end ( ) ) { return true ; } if self . range ( ) . contains ( & other . start ( ) ) || self . range ( ) . contains ( & other . end ( ) ) { return true ; } false }
Returns true when any part of this region is contained within another.
Returns true when any part of this region is contained within another .
&self
other
&Self