pub enum ParseErrorKind {
Show 32 variants
UnexpectedToken {
expected: TokenType,
found: TokenType,
},
ExpectedContentWord {
found: TokenType,
},
ExpectedCopula,
UnknownQuantifier {
found: TokenType,
},
UnknownModal {
found: TokenType,
},
ExpectedVerb {
found: TokenType,
},
ExpectedTemporalAdverb,
ExpectedPresuppositionTrigger,
ExpectedFocusParticle,
ExpectedScopalAdverb,
ExpectedSuperlativeAdjective,
ExpectedComparativeAdjective,
ExpectedThan,
ExpectedNumber,
EmptyRestriction,
GappingResolutionFailed,
StativeProgressiveConflict,
UndefinedVariable {
name: String,
},
UseAfterMove {
name: String,
},
IsValueEquality {
variable: String,
value: String,
},
ZeroIndex,
ExpectedStatement,
ExpectedKeyword {
keyword: String,
},
ExpectedExpression,
ExpectedIdentifier,
RespectivelyLengthMismatch {
subject_count: usize,
object_count: usize,
},
TypeMismatch {
expected: String,
found: String,
},
InvalidRefinementPredicate,
GrammarError(String),
ScopeViolation(String),
UnresolvedPronoun {
gender: Gender,
number: Number,
},
Custom(String),
}Variants§
UnexpectedToken
ExpectedContentWord
ExpectedCopula
UnknownQuantifier
UnknownModal
ExpectedVerb
ExpectedTemporalAdverb
ExpectedPresuppositionTrigger
ExpectedFocusParticle
ExpectedScopalAdverb
ExpectedSuperlativeAdjective
ExpectedComparativeAdjective
ExpectedThan
ExpectedNumber
EmptyRestriction
GappingResolutionFailed
StativeProgressiveConflict
UndefinedVariable
UseAfterMove
IsValueEquality
ZeroIndex
ExpectedStatement
ExpectedKeyword
ExpectedExpression
ExpectedIdentifier
RespectivelyLengthMismatch
Subject and object lists have different lengths in a “respectively” construction.
TypeMismatch
Type mismatch during static type checking.
InvalidRefinementPredicate
Invalid refinement predicate in a dependent type.
GrammarError(String)
Grammar error (e.g., “its” vs “it’s”).
ScopeViolation(String)
DRS scope violation (pronoun trapped in negation, disjunction, etc.).
UnresolvedPronoun
Unresolved pronoun in discourse mode - no accessible antecedent found.
Custom(String)
Custom error message (used for escape analysis, zone errors, etc.).
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin 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