pub fn overlaps(&self, other: &Self) -> StatOverlap {
        match (&self.min, &self.max, &other.min, &other.max) {
            (Some(self_min), Some(self_max), Some(other_min), Some(other_max)) => {
                if self_min <= other_max && self_max >= other_min {
                    StatOverlap::NonZero
                } else {
                    StatOverlap::Zero
                }
            }
            // At least one of the values was None
            _ => StatOverlap::Unknown,
        }
    }
/// returns information about the overlap between two `StatValues`
returns information about the overlap between two `StatValues`
returns information about the overlap between two ` StatValues `
pub fn overlaps(&self, other: &Self) -> StatOverlap {
        match (&self.min, &self.max, &other.min, &other.max) {
            (Some(self_min), Some(self_max), Some(other_min), Some(other_max)) => {
                if self_min <= other_max && self_max >= other_min {
                    StatOverlap::NonZero
                } else {
                    StatOverlap::Zero
                }
            }
            // At least one of the values was None
            _ => StatOverlap::Unknown,
        }
    }
pub fn overlaps ( & self , other : & Self ) -> StatOverlap { match ( & self . min , & self . max , & other . min , & other . max ) { ( Some ( self_min ) , Some ( self_max ) , Some ( other_min ) , Some ( other_max ) ) => { if self_min <= other_max && self_max >= other_min { StatOverlap :: NonZero } else { StatOverlap :: Zero } } // At least one of the values was None _ => StatOverlap :: Unknown , } }
returns information about the overlap between two `StatValues`
returns information about the overlap between two ` StatValues `
&self
other
&Self
&self
other
&Self