expose parser error types

This commit is contained in:
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.
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct ParsePatError {
kind: PatError,
position: usize,
pub kind: PatError,
pub position: usize,
}
impl fmt::Display for ParsePatError {
@@ -19,7 +19,7 @@ impl fmt::Display for ParsePatError {
}
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
enum PatError {
pub enum PatError {
UnpairedHexDigit,
UnknownChar,
ManyOverflow,