Constant data_encoding::HEXUPPER
[−]
[src]
pub const HEXUPPER: &'static NoPad=
HEXUPPER_IMPL
RFC4648 hex encoding (upper-case hexadecimal encoding)
This encoding is a static version of:
assert_eq!(HEXUPPER, &Builder::new(b"0123456789ABCDEF").no_pad().unwrap());
It is compliant with RFC4648 and known as "base16" or "hex".
Examples
use data_encoding::HEXUPPER; let deadbeef = vec![0xde, 0xad, 0xbe, 0xef]; assert_eq!(HEXUPPER.decode(b"DEADBEEF").unwrap(), deadbeef); assert_eq!(HEXUPPER.encode(&deadbeef), "DEADBEEF");