Function lexical_core::parse_lossy [−][src]
pub fn parse_lossy<N: FromLexicalLossy>(bytes: &[u8]) -> Result<N>
Lossily parse number from string.
This method parses the entire string, returning an error if any invalid digits are found during parsing. This parser is lossy, so numerical rounding may occur during parsing.
bytes
- Byte slice containing a numeric string.