base24 0.4.1

A simple base24 implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use thiserror::Error;

#[derive(Error, Debug, PartialEq)]
pub enum Base24Error {
    #[error("Input data length must be a multiple of 4 bytes (32 bits)")]
    EncodeInputLengthInvalid,
    #[error("Input data length must be a multiple of 7 chars")]
    DecodeInputLengthInvalid,
    #[error("Unsupported character in input: {0:?}")]
    DecodeUnsupportedCharacter(char),
}