pub enum ParseError<Rule: RuleType> {
PestParseFailure {
string: String,
pest_error: Error<Rule>,
},
NextRuleMissing {
expected_rules: Vec<Rule>,
},
NextRuleUnexpected {
expected_rules: Vec<Rule>,
actual_rule: Rule,
},
InvalidInteger {
string: String,
error: ParseIntError,
},
UnknownExtensionCharacter(String),
}
Variants§
PestParseFailure
NextRuleMissing
NextRuleUnexpected
InvalidInteger
UnknownExtensionCharacter(String)
Trait Implementations§
Source§impl<Rule> Display for ParseError<Rule>
impl<Rule> Display for ParseError<Rule>
Source§impl<Rule: RuleType> Error for ParseError<Rule>
impl<Rule: RuleType> Error for ParseError<Rule>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<RT: RuleType> From<ParseError<RT>> for DeserializeErrorCause
impl<RT: RuleType> From<ParseError<RT>> for DeserializeErrorCause
Source§fn from(parse_error: ParseError<RT>) -> DeserializeErrorCause
fn from(parse_error: ParseError<RT>) -> DeserializeErrorCause
Converts to this type from the input type.
Auto Trait Implementations§
impl<Rule> Freeze for ParseError<Rule>where
Rule: Freeze,
impl<Rule> RefUnwindSafe for ParseError<Rule>where
Rule: RefUnwindSafe,
impl<Rule> Send for ParseError<Rule>where
Rule: Send,
impl<Rule> Sync for ParseError<Rule>where
Rule: Sync,
impl<Rule> Unpin for ParseError<Rule>where
Rule: Unpin,
impl<Rule> UnwindSafe for ParseError<Rule>where
Rule: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more