Enum chumsky::error::SimpleReason
source · pub enum SimpleReason<I, S> {
Unexpected,
Unclosed {
span: S,
delimiter: I,
},
Custom(String),
}
Expand description
A type representing possible reasons for an error.
Variants§
Unexpected
An unexpected input was found.
Unclosed
An unclosed delimiter was found.
Custom(String)
An error with a custom message occurred.
Trait Implementations§
source§impl<I: Clone, S: Clone> Clone for SimpleReason<I, S>
impl<I: Clone, S: Clone> Clone for SimpleReason<I, S>
source§fn clone(&self) -> SimpleReason<I, S>
fn clone(&self) -> SimpleReason<I, S>
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<I: PartialEq, S: PartialEq> PartialEq<SimpleReason<I, S>> for SimpleReason<I, S>
impl<I: PartialEq, S: PartialEq> PartialEq<SimpleReason<I, S>> for SimpleReason<I, S>
source§fn eq(&self, other: &SimpleReason<I, S>) -> bool
fn eq(&self, other: &SimpleReason<I, S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.