usestd::result;/// Errors that can be returned by encoding and decoding operations.
#[derive(Debug, Copy, Clone)]pubenumErrorKind{/// An encoded string contained a byte value not valid for the encoding
/// alphabet.
InvalidEncodingChar,/// The padding is incorrect for the length of the output. Only applicable
/// to Base64 and Base32.
BadPadding,}pubtypeResult<T>=result::Result<T, ErrorKind>;