pub fn contains(&self, value: &T) -> bool {
        match self.inner {
            Empty => false,
            Normal(ref lower, ref upper) => {
                lower.as_ref().map_or(true, |b| {
                    b.in_bounds(value)
                }) && upper.as_ref().map_or(true, |b| {
                    b.in_bounds(value)
                })
            }
        }
    }
/// Determines if a value lies within this range.
Determines if a value lies within this range.
Determines if a value lies within this range .
pub fn contains(&self, value: &T) -> bool {
        match self.inner {
            Empty => false,
            Normal(ref lower, ref upper) => {
                lower.as_ref().map_or(true, |b| {
                    b.in_bounds(value)
                }) && upper.as_ref().map_or(true, |b| {
                    b.in_bounds(value)
                })
            }
        }
    }
pub fn contains ( & self , value : & T ) -> bool { match self . inner { Empty => false , Normal ( ref lower , ref upper ) => { lower . as_ref ( ) . map_or ( true , | b | { b . in_bounds ( value ) } ) && upper . as_ref ( ) . map_or ( true , | b | { b . in_bounds ( value ) } ) } } }
Determines if a value lies within this range.
Determines if a value lies within this range .
&self
value
&T
&self
value
&T