// The numeric base that the Template input data is in.
#[derive(PartialEq, Eq, Clone, Copy, Debug)]pubenumBase{
Binary =2,
Hexadecimal =16,}implBase{// How many bits are needed to represent a single digit of this Base.
pubconstfnbits_per_digit(self)->usize{matchself{Self::Binary =>1,Self::Hexadecimal =>4,}}}