Function data_encoding::base::enc [] [src]

pub fn enc<B: Base>(base: &B) -> usize

Returns the encoding length of a base.

The encoding length of a base is the number of ascii it takes before encoding loops. In other words, the encoding length is len(base) / 8.

Panics

May panic if base does not satisfy the Base invariants.