Function base16::encode_byte_u [] [src]

pub fn encode_byte_u(byte: u8) -> (u8, u8)

Convenience wrapper for base16::encode_byte(byte, base16::EncodeUpper)

See also base16::encode_byte_l.

Example

assert_eq!(base16::encode_byte_u(0xff), (b'F', b'F'));
assert_eq!(base16::encode_byte_u(30), (b'1', b'E'));
assert_eq!(base16::encode_byte_u(0x2d), (b'2', b'D'));