pub fn contains(&self, val: T) -> bool {
        match (self.start_incl, self.end_incl) {
            (true, true) => self.start <= val && val <= self.end,
            (true, false) => self.start <= val && val < self.end,
            (false, true) => self.start < val && val <= self.end,
            (false, false) => self.start < val && val < self.end,
        }
    }
/// Test whether a value is included in the specified interval.
Test whether a value is included in the specified interval.
Test whether a value is included in the specified interval .
pub fn contains(&self, val: T) -> bool {
        match (self.start_incl, self.end_incl) {
            (true, true) => self.start <= val && val <= self.end,
            (true, false) => self.start <= val && val < self.end,
            (false, true) => self.start < val && val <= self.end,
            (false, false) => self.start < val && val < self.end,
        }
    }
pub fn contains ( & self , val : T ) -> bool { match ( self . start_incl , self . end_incl ) { ( true , true ) => self . start <= val && val <= self . end , ( true , false ) => self . start <= val && val < self . end , ( false , true ) => self . start < val && val <= self . end , ( false , false ) => self . start < val && val < self . end , } }
Test whether a value is included in the specified interval.
Test whether a value is included in the specified interval .
&self
val
T
&self
val
T