Lines Matching defs:float
1252 /// If the parameter is `nom::number::Endianness::Big`, parse a big endian f32 float,
1253 /// otherwise if `nom::number::Endianness::Little` parse a little endian f32 float.
1291 /// If the parameter is `nom::number::Endianness::Big`, parse a big endian f64 float,
1292 /// otherwise if `nom::number::Endianness::Little` parse a little endian f64 float.
1547 /// use nom::number::complete::float;
1550 /// float(s)
1558 pub fn float<T, E: ParseError<T>>(input: T) -> IResult<T, f32, E>
1573 let mut float: f32 = minimal_lexical::parse_float(
1579 float = -float;
1582 Ok((i, float))
1626 let mut float: f64 = minimal_lexical::parse_float(
1632 float = -float;
1635 Ok((i, float))
1995 assert_parse!(float(larger.as_bytes()), Ok((&b""[..], expected32)));
1996 assert_parse!(float(&larger[..]), Ok(("", expected32)));
2008 let (_i, nan) = float::<_, ()>("NaN").unwrap();
2011 let (_i, inf) = float::<_, ()>("inf").unwrap();
2013 let (_i, inf) = float::<_, ()>("infinite").unwrap();