pub enum ParseError<E> {
ConditionParsing(E),
NoMatchingOpeningBracket,
NoMatchingClosingBracket,
MultipleOperators,
EmptyCondition,
LeadingOperator,
TrailingOperator,
ConditionBeforeOpeningBracket,
ConditionAfterClosingBracket,
}
Expand description
Represents the possible errors that can occur during parsing of a logical expression.
Variants§
ConditionParsing(E)
Represents an error that occurred while parsing a condition.
NoMatchingOpeningBracket
Represents an error when there is no matching opening bracket for a closing bracket.
NoMatchingClosingBracket
Represents an error when there is no matching closing bracket for an opening bracket.
MultipleOperators
Represents an error when there are multiple operators without a condition between them.
EmptyCondition
Represents an error when there is an empty condition.
LeadingOperator
Represents an error when there is a leading operator without a preceding condition.
TrailingOperator
Represents an error when therec is a trailing operator without a following condition.
ConditionBeforeOpeningBracket
Represents an error when there is a condition before an opening bracket.
ConditionAfterClosingBracket
Represents an error when there is a condition after a closing bracket.
Trait Implementations§
Source§impl<E: Clone> Clone for ParseError<E>
impl<E: Clone> Clone for ParseError<E>
Source§fn clone(&self) -> ParseError<E>
fn clone(&self) -> ParseError<E>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more