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 for SimpleReason<I, S>
impl<I: PartialEq, S: PartialEq> PartialEq 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 ==
.impl<I: Eq, S: Eq> Eq for SimpleReason<I, S>
impl<I, S> StructuralEq for SimpleReason<I, S>
impl<I, S> StructuralPartialEq for SimpleReason<I, S>
Auto Trait Implementations§
impl<I, S> RefUnwindSafe for SimpleReason<I, S>where
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<I, S> Send for SimpleReason<I, S>
impl<I, S> Sync for SimpleReason<I, S>
impl<I, S> Unpin for SimpleReason<I, S>
impl<I, S> UnwindSafe for SimpleReason<I, S>where
I: UnwindSafe,
S: 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