Searched refs:ascii2byte (Results 1 – 1 of 1) sorted by relevance
33 let x = I::from_u8(ascii2byte(digit).ok_or(NotAscii)?).ok_or(InvalidOutput)?; in decode_hex()61 fn ascii2byte(c: u8) -> Option<u8> { in ascii2byte() function99 base_buf[0] = ascii2byte(base_buf[0]).ok_or(NotAscii)?; in decode_hex_buf()125 let hi = ascii2byte(hi).ok_or(NotAscii)?; in decode_hex_buf()126 let lo = ascii2byte(lo).ok_or(NotAscii)?; in decode_hex_buf()162 base_buf[0] = ascii2byte(base_buf[0]).ok_or(NotAscii)?; in decode_hex_buf()168 let b = ascii2byte(buf[i * 2]).ok_or(NotAscii)? << 4 in decode_hex_buf()169 | ascii2byte(buf[i * 2 + 1]).ok_or(NotAscii)?; in decode_hex_buf()