byte-style-encoder 0.1.1

Byte Style Encoder
Documentation
1
2
3
4
5
6
7
8
9
#[derive(thiserror::Error, Debug)]
pub enum ByteStyleError {
    #[error("string decode as utf-8 failed")]
    FromUtf8(#[from] std::string::FromUtf8Error),
    #[error("parse failed: {0}")]
    Parse(String),
}

pub type ByteStyleResult<T> = Result<T, ByteStyleError>;