Enum chumsky::error::SimplePattern [−][src]
pub enum SimplePattern<I> { Labelled(&'static str), Token(I), }
Expand description
A simple default token pattern that allows describing tokens and token patterns in error messages.
Variants
Labelled(&'static str)
A pattern with the given name was expected.
A specific token was expected.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<I> RefUnwindSafe for SimplePattern<I> where
I: RefUnwindSafe,
impl<I> Send for SimplePattern<I> where
I: Send,
impl<I> Sync for SimplePattern<I> where
I: Sync,
impl<I> Unpin for SimplePattern<I> where
I: Unpin,
impl<I> UnwindSafe for SimplePattern<I> where
I: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more