Constant data_encoding::HEXLOWER
source · [−]pub const HEXLOWER: Encoding;
Expand description
Lowercase hexadecimal encoding
This encoding is a static version of:
let mut spec = Specification::new();
spec.symbols.push_str("0123456789abcdef");
assert_eq!(HEXLOWER, spec.encoding().unwrap());
Examples
use data_encoding::HEXLOWER;
let deadbeef = vec![0xde, 0xad, 0xbe, 0xef];
assert_eq!(HEXLOWER.decode(b"deadbeef").unwrap(), deadbeef);
assert_eq!(HEXLOWER.encode(&deadbeef), "deadbeef");