pub enum ParseErrorKind {
PestParse,
InvalidSyntax {
command: String,
},
UnknownCommand {
name: String,
},
Structural {
rule: String,
},
Validation {
command: String,
},
}Expand description
Machine readable classification of a parse failure.
Variants§
PestParse
The pest grammar could not tokenize the input at all.
InvalidSyntax
First word is a known command or structural keyword, but the rest of the line is malformed. Never report these as unknown.
UnknownCommand
First word matches no known command or keyword in any case. Reserved strictly for truly unknown names.
Structural
Guard, block, scope, or structural keyword failure
(WITH_IO, LET, FOR, IF, {{, }}, guards).
Validation
Arity, flag, or static argument type failure for a known command.
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
impl Eq for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnsafeUnpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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