pub fn contains(&self, version: &Version) -> bool {
        for &(low, high) in self.iter() {
            if low <= *version && *version <= high {
                return true;
            }
        }
        false
    }
/// Determine if `version` is included within this `ProtoSet`.
///
/// # Inputs
///
/// * `version`: a `Version`.
///
/// # Returns
///
/// `true` if the `version` is contained within this set; `false` otherwise.
///
/// # Examples
///
/// ```
/// # use protover::errors::ProtoverError;
/// use protover::protoset::ProtoSet;
///
/// # fn do_test() -> Result<ProtoSet, ProtoverError> {
/// let protoset: ProtoSet = ProtoSet::from_slice(&[(0, 5), (7, 9), (13, 14)])?;
///
/// assert!(protoset.contains(&5));
/// assert!(!protoset.contains(&10));
/// #
/// # Ok(protoset)
/// # }
/// # fn main() { do_test(); }  // wrap the test so we can use the ? operator
/// ```
Determine if `version` is included within this `ProtoSet`.
Determine if ` version ` is included within this ` ProtoSet ` .
pub fn contains(&self, version: &Version) -> bool {
        for &(low, high) in self.iter() {
            if low <= *version && *version <= high {
                return true;
            }
        }
        false
    }
pub fn contains ( & self , version : & Version ) -> bool { for & ( low , high ) in self . iter ( ) { if low <= * version && * version <= high { return true ; } } false }
Determine if `version` is included within this `ProtoSet`.
Determine if ` version ` is included within this ` ProtoSet ` .
&self
version
&Version
`true` if the `version` is contained within this set; `false` otherwise.
` true ` if the ` version ` is contained within this set ; ` false ` otherwise .
&self
version
&Version
inputs
`version`: a `Version`.
` version ` : a ` Version ` .
examples
None
use protover::errors::protovererror;
None
fn do_test() -> result<protoset, protovererror> {
None
ok(protoset)
None
}
None
fn main() { do_test(); }  // wrap the test so we can use the ? operator
None