Function lexical_core::parse[][src]

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

Parse number from string.

This method parses the entire string, returning an error if any invalid digits are found during parsing.

  • bytes - Byte slice containing a numeric string.