utf8-builder 0.2.0

Build and validate UTF-8 data from chunks. Each chunk doesn't have to be a complete UTF-8 data.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use core::{
    error::Error,
    fmt::{self, Display, Formatter},
};

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Utf8Error;

impl Display for Utf8Error {
    #[inline]
    fn fmt(&self, f: &mut Formatter) -> fmt::Result {
        f.write_str("incorrect UTF-8 data")
    }
}

impl Error for Utf8Error {}