enquote 1.1.0

Quotes and unquotes strings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Error, Debug, PartialEq)]
pub enum Error {
    #[error("not enough chars")]
    NotEnoughChars,
    #[error("unrecognized quote character")]
    UnrecognizedQuote,
    #[error("unexpected eof")]
    UnexpectedEOF,
    #[error("illegal character")]
    IllegalChar,
    #[error("unrecognized escape sequence")]
    UnrecognizedEscape,
    #[error("invalid unicode code point")]
    InvalidUnicode,
}