expose parser error types

This commit is contained in:
Intege-rs
2025-12-07 23:50:37 -05:00
parent c71e4741dd
commit 6af236e002

View File

@@ -37,7 +37,7 @@ pub enum PatError {
DoubleNibble
}
impl PatError {
fn to_str(self) -> &'static str {
pub fn to_str(self) -> &'static str {
match self {
PatError::UnpairedHexDigit => "unpaired hex digit",
PatError::UnknownChar => "unknown character",