[−][src]Struct pear::ParseErr
Fields
parser: &'static str
expected: Expected<I::Token, I::InSlice, I::Slice>
context: Option<I::Context>
Implementations
impl<I: Input> ParseErr<I>
[src]
pub fn new<T>(parser: &'static str, message: T) -> ParseErr<I> where
T: Into<Cow<'static, str>>,
[src]
T: Into<Cow<'static, str>>,
pub fn from_context<T>(
input: &mut I,
parser: &'static str,
message: T
) -> ParseErr<I> where
T: Into<Cow<'static, str>>,
[src]
input: &mut I,
parser: &'static str,
message: T
) -> ParseErr<I> where
T: Into<Cow<'static, str>>,
Trait Implementations
impl<I: Clone + Input> Clone for ParseErr<I> where
I::Token: Clone,
I::InSlice: Clone,
I::Slice: Clone,
I::Context: Clone,
[src]
I::Token: Clone,
I::InSlice: Clone,
I::Slice: Clone,
I::Context: Clone,
impl<I: Debug + Input> Debug for ParseErr<I> where
I::Token: Debug,
I::InSlice: Debug,
I::Slice: Debug,
I::Context: Debug,
[src]
I::Token: Debug,
I::InSlice: Debug,
I::Slice: Debug,
I::Context: Debug,
impl<I: Input> Display for ParseErr<I> where
I::Token: Debug + Display,
I::Slice: Display + Debug,
I::InSlice: Display + Debug,
[src]
I::Token: Debug + Display,
I::Slice: Display + Debug,
I::InSlice: Display + Debug,
impl<I: Input> Display for ParseErr<I> where
I::Token: Debug,
I::Slice: Debug,
I::InSlice: Debug,
[src]
I::Token: Debug,
I::Slice: Debug,
I::InSlice: Debug,
impl<I: PartialEq + Input> PartialEq<ParseErr<I>> for ParseErr<I> where
I::Token: PartialEq,
I::InSlice: PartialEq,
I::Slice: PartialEq,
I::Context: PartialEq,
[src]
I::Token: PartialEq,
I::InSlice: PartialEq,
I::Slice: PartialEq,
I::Context: PartialEq,
impl<I: Input> StructuralPartialEq for ParseErr<I>
[src]
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,
<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,
<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,
<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,
<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,
<I as Input>::Context: UnwindSafe,
<I as Input>::InSlice: UnwindSafe,
<I as Input>::Slice: UnwindSafe,
<I as Input>::Token: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,