[][src]Function fast_float::parse_partial

pub fn parse_partial<T: FastFloat, S: AsRef<[u8]>>(s: S) -> Result<(T, usize)>

Parse a decimal number from string into float (partial).

This function parses as many characters as possible and returns the resulting number along with the number of digits processed (in case of success, this number is always positive).


Will return an error either if the string doesn't start with a valid decimal number – that is, if no zero digits were processed.