Function float
fn float<Input, Output, Error>(input: &mut Input) -> Result<Output, Error>
where
Input: StreamIsPartial + Stream + Compare<Caseless<&'static str>> + Compare<char> + AsBStr,
<Input as Stream>::Slice: ParseSlice<Output>,
<Input as Stream>::Token: AsChar + Clone,
<Input as Stream>::IterOffsets: Clone,
Error: ParserError<Input>
Recognizes floating point number in text format and returns a f32 or f64.
Complete version: Can parse until the end of input.
[Partial version][crate::_topic::partial]: Will return Err(winnow::error::ErrMode::Incomplete(_)) if there is not enough data.
Effective Signature
Assuming you are parsing a &str [Stream] into an f64:
# use *;;
#
Example
# use *;
# use Size;
use float;
assert_eq!;
assert_eq!;
assert_eq!;
assert!;
# use *;
# use ;
# use Size;
# use Partial;
use float;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert!;