pub enum ParseErrorKind<T> {
Basic(BasicParseErrorKind),
Custom(T),
}Expand description
Details of a ParseError
Variants§
Basic(BasicParseErrorKind)
A fundamental parse error from a built-in parsing routine.
Custom(T)
A parse error reported by downstream consumer code.
Implementations§
Source§impl<T> ParseErrorKind<T>
impl<T> ParseErrorKind<T>
Sourcepub fn into<U>(self) -> ParseErrorKind<U>where
T: Into<U>,
pub fn into<U>(self) -> ParseErrorKind<U>where
T: Into<U>,
Like std::convert::Into::into
Trait Implementations§
Source§impl<T: Clone> Clone for ParseErrorKind<T>
impl<T: Clone> Clone for ParseErrorKind<T>
Source§fn clone(&self) -> ParseErrorKind<T>
fn clone(&self) -> ParseErrorKind<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ParseErrorKind<T>
impl<T: Debug> Debug for ParseErrorKind<T>
Source§impl<E: Display> Display for ParseErrorKind<E>
impl<E: Display> Display for ParseErrorKind<E>
Source§impl<T: PartialEq> PartialEq for ParseErrorKind<T>
impl<T: PartialEq> PartialEq for ParseErrorKind<T>
Source§fn eq(&self, other: &ParseErrorKind<T>) -> bool
fn eq(&self, other: &ParseErrorKind<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> StructuralPartialEq for ParseErrorKind<T>
Auto Trait Implementations§
impl<T> Freeze for ParseErrorKind<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParseErrorKind<T>where
T: RefUnwindSafe,
impl<T> Send for ParseErrorKind<T>where
T: Send,
impl<T> Sync for ParseErrorKind<T>where
T: Sync,
impl<T> Unpin for ParseErrorKind<T>where
T: Unpin,
impl<T> UnsafeUnpin for ParseErrorKind<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ParseErrorKind<T>where
T: 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