pub fn parse_range(input: &str) -> Result<Range, parser::Error> {
        let mut parser = Parser::new(input)?;
        let version = parser.range()?;
        if !parser.is_eof() {
            return Err(parser::Error::MoreInput(parser.tail()?));
        }
        Ok(version)
    }
/// Parse a Hex compatible version range. i.e. `> 1 and < 2 or == 4.5.2`.
Parse a Hex compatible version range.
Parse a Hex compatible version range .
pub fn parse_range(input: &str) -> Result<Range, parser::Error> {
        let mut parser = Parser::new(input)?;
        let version = parser.range()?;
        if !parser.is_eof() {
            return Err(parser::Error::MoreInput(parser.tail()?));
        }
        Ok(version)
    }
pub fn parse_range ( input : & str ) -> Result < Range , parser :: Error > { let mut parser = Parser :: new ( input ) ? ; let version = parser . range ( ) ? ; if ! parser . is_eof ( ) { return Err ( parser :: Error :: MoreInput ( parser . tail ( ) ? ) ) ; } Ok ( version ) }
Parse a Hex compatible version range.
Parse a Hex compatible version range .
input
&str
input
&str