pub fn parse_f32(i : &str) -> IResult<&str, f32> {
    let mut i = i;
    match whitespace(i) {
        Err(_) => {},
        Ok(x) => {
            i = x.0;
        }
    }
    let result = not_whitespace(i)?;
    Ok((result.0, result.1.parse::<f32>().unwrap()))
}
// Very similar to parse_i32, only parses a float instead
Very similar to parse_i32, only parses a float instead
Very similar to parse_i32 only parses a float instead
pub fn parse_f32(i : &str) -> IResult<&str, f32> {
    let mut i = i;
    match whitespace(i) {
        Err(_) => {},
        Ok(x) => {
            i = x.0;
        }
    }
    let result = not_whitespace(i)?;
    Ok((result.0, result.1.parse::<f32>().unwrap()))
}
pub fn parse_f32 ( i : & str ) -> IResult < & str , f32 > { let mut i = i ; match whitespace ( i ) { Err ( _ ) => { } , Ok ( x ) => { i = x . 0 ; } } let result = not_whitespace ( i ) ? ; Ok ( ( result . 0 , result . 1 . parse :: < f32 > ( ) . unwrap ( ) ) ) }
Very similar to parse_i32, only parses a float instead
Very similar to parse_i32 only parses a float instead
i
&str
i
&str