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
sourceimpl<I: Clone, S: Clone> Clone for SimpleReason<I, S>
impl<I: Clone, S: Clone> Clone for SimpleReason<I, S>
sourcefn clone(&self) -> SimpleReason<I, S>
fn clone(&self) -> SimpleReason<I, S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<I: Debug, S: Debug> Debug for SimpleReason<I, S>
impl<I: Debug, S: Debug> Debug for SimpleReason<I, S>
sourceimpl<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>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SimpleReason<I, S>) -> bool
fn ne(&self, other: &SimpleReason<I, S>) -> bool
This method tests for !=
.
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> where
I: Send,
S: Send,
impl<I, S> Sync for SimpleReason<I, S> where
I: Sync,
S: Sync,
impl<I, S> Unpin for SimpleReason<I, S> where
I: Unpin,
S: Unpin,
impl<I, S> UnwindSafe for SimpleReason<I, S> where
I: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more