Enum at_commands::ParseError
source · pub enum ParseError<Rule: RuleType> {
PestParseFailure {
string: String,
pest_error: PestError<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: RuleType> Display for ParseError<Rule>
impl<Rule: RuleType> 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)>
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> 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