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 moreimpl<I: Eq, S: Eq> Eq for SimpleReason<I, S>
impl<I, S> StructuralPartialEq for SimpleReason<I, S>
Auto Trait Implementations§
impl<I, S> Freeze for SimpleReason<I, S>
impl<I, S> RefUnwindSafe for SimpleReason<I, S>where
S: RefUnwindSafe,
I: 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
S: UnwindSafe,
I: 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