Function encode_integer_to_hex

Source
pub fn encode_integer_to_hex(data: &str) -> Result<String, Box<dyn Error>>
Expand description

Encodes an integer string to hexadecimal format.

ยงExamples

use nutek_encode_lib::encoder;
let encoded = encoder::encode_integer_to_hex("255").unwrap();
assert_eq!(encoded, "ff");