pub enum SyntaxErrorKind<E> {
InvalidExpr(E),
ExtraBracket,
UnclosedExpr,
}Expand description
The type of syntax error which occured.
The SyntaxErrorKind::InvalidExpr variant is emitted by the particular Ast
implementation which is used to parse the template string expressions. It is the associated
Ast::Error type.
Variants§
InvalidExpr(E)
The format parsing a expression produced an error.
ExtraBracket
A closing bracket, without a matching opening bracket.
UnclosedExpr
An expression was started, but not closed.
Trait Implementations§
Source§impl<E: Clone> Clone for SyntaxErrorKind<E>
impl<E: Clone> Clone for SyntaxErrorKind<E>
Source§fn clone(&self) -> SyntaxErrorKind<E>
fn clone(&self) -> SyntaxErrorKind<E>
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<E: Debug> Debug for SyntaxErrorKind<E>
impl<E: Debug> Debug for SyntaxErrorKind<E>
Source§impl<E: PartialEq> PartialEq for SyntaxErrorKind<E>
impl<E: PartialEq> PartialEq for SyntaxErrorKind<E>
impl<E> StructuralPartialEq for SyntaxErrorKind<E>
Auto Trait Implementations§
impl<E> Freeze for SyntaxErrorKind<E>where
E: Freeze,
impl<E> RefUnwindSafe for SyntaxErrorKind<E>where
E: RefUnwindSafe,
impl<E> Send for SyntaxErrorKind<E>where
E: Send,
impl<E> Sync for SyntaxErrorKind<E>where
E: Sync,
impl<E> Unpin for SyntaxErrorKind<E>where
E: Unpin,
impl<E> UnwindSafe for SyntaxErrorKind<E>where
E: UnwindSafe,
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