pub struct ParseErr<I: Input> {
pub parser: &'static str,
pub expected: Expected<I::Token, I::InSlice, I::Slice>,
pub context: Option<I::Context>,
}
Fields
parser: &'static str
expected: Expected<I::Token, I::InSlice, I::Slice>
context: Option<I::Context>
Implementations
Trait Implementations
sourceimpl<I: Clone + Input> Clone for ParseErr<I> where
I::Token: Clone,
I::InSlice: Clone,
I::Slice: Clone,
I::Context: Clone,
impl<I: Clone + Input> Clone for ParseErr<I> where
I::Token: Clone,
I::InSlice: Clone,
I::Slice: Clone,
I::Context: Clone,
sourceimpl<I: Debug + Input> Debug for ParseErr<I> where
I::Token: Debug,
I::InSlice: Debug,
I::Slice: Debug,
I::Context: Debug,
impl<I: Debug + Input> Debug for ParseErr<I> where
I::Token: Debug,
I::InSlice: Debug,
I::Slice: Debug,
I::Context: Debug,
sourceimpl<I: Input> Display for ParseErr<I> where
I::Token: Debug + Display,
I::Slice: Display + Debug,
I::InSlice: Display + Debug,
impl<I: Input> Display for ParseErr<I> where
I::Token: Debug + Display,
I::Slice: Display + Debug,
I::InSlice: Display + Debug,
sourceimpl<I: Input> Display for ParseErr<I> where
I::Token: Debug,
I::Slice: Debug,
I::InSlice: Debug,
impl<I: Input> Display for ParseErr<I> where
I::Token: Debug,
I::Slice: Debug,
I::InSlice: Debug,
sourceimpl<I: PartialEq + Input> PartialEq<ParseErr<I>> for ParseErr<I> where
I::Token: PartialEq,
I::InSlice: PartialEq,
I::Slice: PartialEq,
I::Context: PartialEq,
impl<I: PartialEq + Input> PartialEq<ParseErr<I>> for ParseErr<I> where
I::Token: PartialEq,
I::InSlice: PartialEq,
I::Slice: PartialEq,
I::Context: PartialEq,
impl<I: Input> StructuralPartialEq for ParseErr<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for ParseErr<I> where
<I as Input>::Context: RefUnwindSafe,
<I as Input>::InSlice: RefUnwindSafe,
<I as Input>::Slice: RefUnwindSafe,
<I as Input>::Token: RefUnwindSafe,
impl<I> Send for ParseErr<I> where
<I as Input>::Context: Send,
<I as Input>::InSlice: Send,
<I as Input>::Slice: Send,
<I as Input>::Token: Send,
impl<I> Sync for ParseErr<I> where
<I as Input>::Context: Sync,
<I as Input>::InSlice: Sync,
<I as Input>::Slice: Sync,
<I as Input>::Token: Sync,
impl<I> Unpin for ParseErr<I> where
<I as Input>::Context: Unpin,
<I as Input>::InSlice: Unpin,
<I as Input>::Slice: Unpin,
<I as Input>::Token: Unpin,
impl<I> UnwindSafe for ParseErr<I> where
<I as Input>::Context: UnwindSafe,
<I as Input>::InSlice: UnwindSafe,
<I as Input>::Slice: UnwindSafe,
<I as Input>::Token: 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more