expose parser error types
This commit is contained in:
@@ -8,8 +8,8 @@ pub(crate) const PTR_SKIP: u8 = 0;
|
|||||||
/// Pattern parsing error.
|
/// Pattern parsing error.
|
||||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||||
pub struct ParsePatError {
|
pub struct ParsePatError {
|
||||||
kind: PatError,
|
pub kind: PatError,
|
||||||
position: usize,
|
pub position: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Display for ParsePatError {
|
impl fmt::Display for ParsePatError {
|
||||||
@@ -19,7 +19,7 @@ impl fmt::Display for ParsePatError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||||
enum PatError {
|
pub enum PatError {
|
||||||
UnpairedHexDigit,
|
UnpairedHexDigit,
|
||||||
UnknownChar,
|
UnknownChar,
|
||||||
ManyOverflow,
|
ManyOverflow,
|
||||||
|
|||||||
Reference in New Issue
Block a user