[−][src]Function enc::hex::encode_byte_lower
pub fn encode_byte_lower(b: u8) -> [u8; 2]
Encodes a single byte as lowercase hex.
use enc::hex::encode_byte_lower; assert_eq!(encode_byte_lower(0x01), [b'0', b'1']); assert_eq!(encode_byte_lower(0x23), [b'2', b'3']); assert_eq!(encode_byte_lower(0x45), [b'4', b'5']); assert_eq!(encode_byte_lower(0x67), [b'6', b'7']); assert_eq!(encode_byte_lower(0x89), [b'8', b'9']); assert_eq!(encode_byte_lower(0xAB), [b'a', b'b']); assert_eq!(encode_byte_lower(0xCD), [b'c', b'd']); assert_eq!(encode_byte_lower(0xEF), [b'e', b'f']);