Function data_encoding::base::len
[−]
[src]
pub fn len<B: Base>(base: &B) -> usize
Returns the period length of a base.
The period length of a base is the number of significant bits
after which the encoding or decoding mechanism loops. In other
words, the period length is the least common multiple of 8 and
base.bit()
.
Panics
May panic if base
does not satisfy the Base
invariants.