expose parser error types
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user