Function data_encoding::encode::encode_nopad [] [src]

pub fn encode_nopad<B: Base>(base: &B, input: &[u8]) -> String

Generic encoding function with allocation (without padding).

This function is a wrapper for encode_nopad_mut that allocates an output of the correct size using encode_nopad_len. The output is not padded.

Correctness

The base must satisfy the Base invariants.

Panics

May panic if base does not satisfy the Base invariants.