pub fn encode_lower<T: ?Sized + AsRef<[u8]>>(input: &T) -> String
Expand description

Encode bytes as base16, using lower case characters for nibbles between 10 and 15 (a through f).

This is equivalent to base16::encode_config(bytes, base16::EncodeUpper).

Example

assert_eq!(base16::encode_lower(b"Hello World"), "48656c6c6f20576f726c64");
assert_eq!(base16::encode_lower(&[0xff, 0xcc, 0xaa]), "ffccaa");

Availability

This function is only available when the alloc feature is enabled, as it needs to produce a String.