xtoi

Function xtoi 

Source
pub const fn xtoi(bytes: &[u8]) -> Option<(i32, usize)>
Expand description

Converts a hexadecimal slice to an integer.

  • Returns a tuple containing:
    • The parsed number
    • Number of bytes consumed
  • Returns None if parsing fails.