pub enum ParseError {
UnexpectedIdent(String, Span),
UnexpectedPunct(char, Span),
UnexpectedLiteral(String, Span),
UnexpectedGroup(Delimiter, Span),
UnexpectedEOT,
IncorrectIdent(String, Span),
IncorrectPunct(char, Span),
IncorrectLiteral(String, Span),
IncorrectGroup(Delimiter, Vec<TokenTree>, Span),
IncorrectDelimiter(Delimiter, Span),
UnmatchedAngleBracket(Span),
}Variants§
UnexpectedIdent(String, Span)
UnexpectedPunct(char, Span)
UnexpectedLiteral(String, Span)
UnexpectedGroup(Delimiter, Span)
UnexpectedEOT
IncorrectIdent(String, Span)
IncorrectPunct(char, Span)
IncorrectLiteral(String, Span)
IncorrectGroup(Delimiter, Vec<TokenTree>, Span)
IncorrectDelimiter(Delimiter, Span)
UnmatchedAngleBracket(Span)
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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