Lines Matching defs:float
1222 /// If the parameter is `nom::number::Endianness::Big`, parse a big endian f32 float,
1223 /// otherwise if `nom::number::Endianness::Little` parse a little endian f32 float.
1261 /// If the parameter is `nom::number::Endianness::Big`, parse a big endian f64 float,
1262 /// otherwise if `nom::number::Endianness::Little` parse a little endian f64 float.
1519 /// use nom::number::complete::float;
1522 /// float(s)
1530 pub fn float<T, E: ParseError<T>>(input: T) -> IResult<T, f32, E>
1545 let mut float: f32 = minimal_lexical::parse_float(
1551 float = -float;
1554 Ok((i, float))
1599 let mut float: f64 = minimal_lexical::parse_float(
1605 float = -float;
1608 Ok((i, float))
2074 assert_parse!(float(larger.as_bytes()), Ok((&b";"[..], expected32)));
2075 assert_parse!(float(&larger[..]), Ok((";", expected32)));
2087 let (_i, nan) = float::<_, ()>("NaN").unwrap();
2090 let (_i, inf) = float::<_, ()>("inf").unwrap();
2092 let (_i, inf) = float::<_, ()>("infinite").unwrap();