Function hex_to_bytes
Source pub fn hex_to_bytes(s: &str) -> Result<Vec<u8>, String>
Expand description
Converts a hexadecimal string to a byte vector.
§Arguments
s: A string slice representing the hexadecimal data.
§Returns
A Result containing the byte vector on success, or an error message string on failure.