byte_style_encoder/
error.rs

1#[derive(thiserror::Error, Debug)]
2pub enum ByteStyleError {
3    #[error("string decode as utf-8 failed")]
4    FromUtf8(#[from] std::string::FromUtf8Error),
5    #[error("parse failed: {0}")]
6    Parse(String),
7}
8
9pub type ByteStyleResult<T> = Result<T, ByteStyleError>;