[−][src]Enum hinku::ParseError
Represents a parsing error.
Variants
The end of the stream was reached unexpectedly.
An unexpected token was encountered.
Fields of UnexpectedToken
span: Span
Span of the unexpected token.
An user-defined error occurred.
Fields of Custom
Implementations
impl<E> ParseError<E>
[src]
pub fn custom(span: Span, error: E) -> ParseError<E>
[src]
A convinience function for creating a ParseError::Custom variant.
Trait Implementations
impl<E: Debug> Debug for ParseError<E>
[src]
impl<E: PartialEq> PartialEq<ParseError<E>> for ParseError<E>
[src]
fn eq(&self, other: &ParseError<E>) -> bool
[src]
fn ne(&self, other: &ParseError<E>) -> bool
[src]
impl<E> StructuralPartialEq for ParseError<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for ParseError<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for ParseError<E> where
E: Send,
E: Send,
impl<E> Sync for ParseError<E> where
E: Sync,
E: Sync,
impl<E> Unpin for ParseError<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for ParseError<E> where
E: UnwindSafe,
E: 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, 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>,