expose parser error types

This commit is contained in:
Intege-rs
2025-12-07 23:48:35 -05:00
parent 8b8b506319
commit c71e4741dd

View File

@@ -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,