pub enum ParseError<'text> {
NoMatches(Token<'text>, Vec<Rc<Node>>),
AmbiguousMatch(Token<'text>, Vec<Rc<Node>>),
}
Expand description
Errors that calling parse
on the Parser
can raise.
Variants§
NoMatches(Token<'text>, Vec<Rc<Node>>)
There were no matches for the token.
AmbiguousMatch(Token<'text>, Vec<Rc<Node>>)
There was more than 1 possible match for the token.
Trait Implementations§
Source§impl<'text> Clone for ParseError<'text>
impl<'text> Clone for ParseError<'text>
Source§fn clone(&self) -> ParseError<'text>
fn clone(&self) -> ParseError<'text>
Returns a copy 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<'text> Debug for ParseError<'text>
impl<'text> Debug for ParseError<'text>
Source§impl<'text> Display for ParseError<'text>
impl<'text> Display for ParseError<'text>
Source§impl<'text> Error for ParseError<'text>
impl<'text> Error for ParseError<'text>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl<'text> Freeze for ParseError<'text>
impl<'text> RefUnwindSafe for ParseError<'text>
impl<'text> !Send for ParseError<'text>
impl<'text> !Sync for ParseError<'text>
impl<'text> Unpin for ParseError<'text>
impl<'text> UnwindSafe for ParseError<'text>
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