Function lexical_core::parse_partial[][src]

pub fn parse_partial<N: FromLexical>(bytes: &[u8]) -> Result<(N, usize)>

Parse number from string.

This method parses until an invalid digit is found (or the end of the string), returning the number of processed digits and the parsed value until that point.

  • bytes - Byte slice containing a numeric string.