utf8-builder 0.1.2

Build and validate UTF-8 data from chunks. Each chunk doesn't have to be a complete UTF-8 data.
Documentation
#[cfg(feature = "std")]
use std::fmt::{self, Display, Formatter};

#[cfg(feature = "std")]
use std::error::Error;

#[derive(Debug)]
pub struct Utf8Error;

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

#[cfg(feature = "std")]
impl Error for Utf8Error {}