[go: up one dir, main page]

Function lexical_core::try_atou8_slice[][src]

pub fn try_atou8_slice(bytes: &[u8]) -> Result<u8>

Checked parser for a string-to-number conversion using Rust slices.

Returns a C-compatible result containing the parsed value, and an error container any errors that occurred during parser.

Numeric overflow takes precedence over the presence of an invalid digit, and therefore may mask an invalid digit error.

  • bytes - Slice containing a numeric string.