pub enum SyntaxParseError {
NoTags,
InvalidOpeningToken,
InvalidClosingToken,
UnopenedBrackets,
UnclosedBrackets,
InvalidSequence(Token, Token),
}Expand description
Possible syntax errors
Variants§
NoTags
The boolean tag expression contains no tags (there must be at least 1)
InvalidOpeningToken
The first lexical token of the boolean tag expression is invalid
InvalidClosingToken
The last lexical token of the boolean tag expression is invalid
UnopenedBrackets
There are more closing brakets than opening brackets in the boolean tag expression
UnclosedBrackets
There are more opening brakets than closing brackets in the boolean tag expression
InvalidSequence(Token, Token)
There is an invalid token order/sequence in the boolean tag expression
Trait Implementations§
Source§impl Clone for SyntaxParseError
impl Clone for SyntaxParseError
Source§fn clone(&self) -> SyntaxParseError
fn clone(&self) -> SyntaxParseError
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 moreSource§impl Debug for SyntaxParseError
impl Debug for SyntaxParseError
Source§impl Display for SyntaxParseError
impl Display for SyntaxParseError
Source§impl Error for SyntaxParseError
impl Error for SyntaxParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<SyntaxParseError> for ParseError
impl From<SyntaxParseError> for ParseError
Source§fn from(source: SyntaxParseError) -> Self
fn from(source: SyntaxParseError) -> Self
Converts to this type from the input type.
Source§impl Hash for SyntaxParseError
impl Hash for SyntaxParseError
Source§impl PartialEq for SyntaxParseError
impl PartialEq for SyntaxParseError
impl Eq for SyntaxParseError
impl StructuralPartialEq for SyntaxParseError
Auto Trait Implementations§
impl Freeze for SyntaxParseError
impl RefUnwindSafe for SyntaxParseError
impl Send for SyntaxParseError
impl Sync for SyntaxParseError
impl Unpin for SyntaxParseError
impl UnwindSafe for SyntaxParseError
Blanket Implementations§
Source§impl<T> BoolTagExprLexicalParse for Twhere
T: ToString,
impl<T> BoolTagExprLexicalParse for Twhere
T: ToString,
Source§fn lexical_parse(self) -> Result<LexicalTokenStream, ParseError>
fn lexical_parse(self) -> Result<LexicalTokenStream, ParseError>
Lexically parse value
Source§impl<T> BoolTagExprSyntaxParse<T> for Twhere
T: BoolTagExprLexicalParse,
impl<T> BoolTagExprSyntaxParse<T> for Twhere
T: BoolTagExprLexicalParse,
Source§fn syntax_parse(self) -> Result<BoolTagExpr, ParseError>
fn syntax_parse(self) -> Result<BoolTagExpr, ParseError>
Lexically and then syntactically parse the value into a boolean
expression tree
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