[][src]Function base16::encode_byte_u

pub fn encode_byte_u(byte: u8) -> [u8; 2]

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']);

Availability

This function is available whether or not the alloc feature is enabled.