Skip to main content

parse_hex

Function parse_hex 

Source
pub fn parse_hex(input: &str) -> Result<Vec<u8>, HexError>
Expand description

Parse a hex string (with or without 0x prefix) into bytes.

Mirror of TS parseHex / fromHex.