pub fn encode(input: &[u8]) -> Result<Vec<u8>, EncodeError>Expand description
Encodes input as standard basE91 into a newly allocated byte vector.
This function is available when the alloc feature is enabled.
ยงErrors
Returns EncodeError::AllocationFailed if the output-length upper bound
does not fit in usize, exceeds isize::MAX, or allocation fails.