fn parse_optional_99<'a, I>(v: &mut I) -> Result<Option<u8>, ()>
where
    I: Iterator<Item = &'a str>,
{
    if let Some(s) = v.next() {
        if s.is_empty() {
            return Ok(None);
        }
        if let Ok(i) = s.parse::<u8>() {
            if i <= 99 {
                return Ok(Some(i));
            }
        }
        return Err(());
    }
    Ok(None)
}
/// Parse an optional value ranging from 0 to 99.
Parse an optional value ranging from 0 to 99.
Parse an optional value ranging from 0 to 99 .
fn parse_optional_99<'a, I>(v: &mut I) -> Result<Option<u8>, ()>
where
    I: Iterator<Item = &'a str>,
{
    if let Some(s) = v.next() {
        if s.is_empty() {
            return Ok(None);
        }
        if let Ok(i) = s.parse::<u8>() {
            if i <= 99 {
                return Ok(Some(i));
            }
        }
        return Err(());
    }
    Ok(None)
}
fn parse_optional_99 < ' a , I > ( v : & mut I ) -> Result < Option < u8 > , ( ) > where I : Iterator < Item = & ' a str > , { if let Some ( s ) = v . next ( ) { if s . is_empty ( ) { return Ok ( None ) ; } if let Ok ( i ) = s . parse :: < u8 > ( ) { if i <= 99 { return Ok ( Some ( i ) ) ; } } return Err ( ( ) ) ; } Ok ( None ) }
Parse an optional value ranging from 0 to 99.
Parse an optional value ranging from 0 to 99 .
v
&mut I