[][src]Function base16::encode_byte_l

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

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

See also base16::encode_byte_u.

Example

assert_eq!(base16::encode_byte_l(0xff), [b'f', b'f']);
assert_eq!(base16::encode_byte_l(30), [b'1', b'e']);
assert_eq!(base16::encode_byte_l(0x2d), [b'2', b'd']);

Availability

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