pub fn overlap(&self, other: &ExtentKey) -> Option<Range<u64>> {
        if self.attribute_id != other.attribute_id
            || self.range.end <= other.range.start
            || self.range.start >= other.range.end
        {
            None
        } else {
            Some(max(self.range.start, other.range.start)..min(self.range.end, other.range.end))
        }
    }
/// Returns the range of bytes common between this extent and |other|.
Returns the range of bytes common between this extent and |other|.
Returns the range of bytes common between this extent and |other| .
pub fn overlap(&self, other: &ExtentKey) -> Option<Range<u64>> {
        if self.attribute_id != other.attribute_id
            || self.range.end <= other.range.start
            || self.range.start >= other.range.end
        {
            None
        } else {
            Some(max(self.range.start, other.range.start)..min(self.range.end, other.range.end))
        }
    }
pub fn overlap ( & self , other : & ExtentKey ) -> Option < Range < u64 > > { if self . attribute_id != other . attribute_id || self . range . end <= other . range . start || self . range . start >= other . range . end { None } else { Some ( max ( self . range . start , other . range . start ) .. min ( self . range . end , other . range . end ) ) } }
Returns the range of bytes common between this extent and |other|.
Returns the range of bytes common between this extent and |other| .
&self
other
&ExtentKey
&self
other
&ExtentKey