utf64 1.0.2

A utility to encode utf-8 strings into utf-64, and decode them back.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Utf64Error {
    #[error("Invalid unicode code point: {0}")]
    InvalidCodePoint(u32),

    #[error("Unexpected end of input")]
    UnexpectedEOF,

    #[error("Invalid UTF-64 character: '{0}'")]
    InvalidUtf64(char),

    #[error("Invalid UTF-8 prefix: {0:x}")]
    InvalidUtf8Prefix(u8),
}