Function data_encoding::base::mask
[−]
[src]
pub fn mask<B: Base>(base: &B) -> u8
Returns the bit-mask of a base.
The bit-mask of a base is the set of bits used by values. In other
words, the bit-mask is (1 << base.bit()) - 1.
Panics
May panic if base does not satisfy the Base invariants.