pub type ParserResult<D> = Result<Option<Local<ParserEvent<D>>>, Error>;
enum ParserResult<D> { Ok(Option<Local<ParserEvent<D>>>), Err(Error), }
Contains the success value
Contains the error value