parser: add utf8 seeking functions

useful for peeking the previous utf8 char on a 0-copy utf8 buffer view
This commit is contained in:
William Casarin
2023-07-01 11:27:47 -07:00
parent cc043a4ec3
commit 3033943e52
4 changed files with 175 additions and 37 deletions

3
src/result.rs Normal file
View File

@@ -0,0 +1,3 @@
use crate::error::Error;
type Result<T> = std::result::Result<T, Error>;