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 there 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<E: Copy> Copy for ParseError<E>
Source§impl<E: Debug> Debug for ParseError<E>
impl<E: Debug> Debug for ParseError<E>
Source§impl<E> Display for ParseError<E>where
E: Display,
impl<E> Display for ParseError<E>where
E: Display,
impl<E: Eq> Eq for ParseError<E>
Source§impl<E> Error for ParseError<E>
impl<E> Error for ParseError<E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl<E> From<E> for ParseError<E>
impl<E> From<E> for ParseError<E>
Source§impl<E: PartialEq> PartialEq for ParseError<E>
impl<E: PartialEq> PartialEq for ParseError<E>
Source§fn eq(&self, other: &ParseError<E>) -> bool
fn eq(&self, other: &ParseError<E>) -> bool
self and other values to be equal, and is used by ==.