[−][src]Enum ttk91::parsing::ErrorKind
Common error cases for parsing. Cases specific to the format being parsed can be defined via
the K
type parameter.
Variants
The parser encountered an unexpected end of the input stream.
The parser finished successfully, but there was unconsumed data left in the input stream.
The parser encountered an token which it did not expect.
Fields of UnexpectedToken
span: Span
Location of the token in the input stream.
expected: Vec<String>
List of user facing descriptions of the types of tokens that were expected.
Should contain phrases like a register
or an instruction
, that can be used in a
phrase like expected [a register] or [an instruction]
.
got: T
The token that was unexpectedly encountered.
Parser or format specific error.
Fields of Other
Trait Implementations
impl<K: Clone, T: Clone> Clone for ErrorKind<K, T>
[src]
impl<K: Debug, T: Debug> Debug for ErrorKind<K, T>
[src]
impl<K, T> Display for ErrorKind<K, T> where
K: Display,
T: Display,
[src]
K: Display,
T: Display,
impl<K: PartialEq, T: PartialEq> PartialEq<ErrorKind<K, T>> for ErrorKind<K, T>
[src]
fn eq(&self, other: &ErrorKind<K, T>) -> bool
[src]
fn ne(&self, other: &ErrorKind<K, T>) -> bool
[src]
impl<K, T> StructuralPartialEq for ErrorKind<K, T>
[src]
Auto Trait Implementations
impl<K, T> RefUnwindSafe for ErrorKind<K, T> where
K: RefUnwindSafe,
T: RefUnwindSafe,
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<K, T> Send for ErrorKind<K, T> where
K: Send,
T: Send,
K: Send,
T: Send,
impl<K, T> Sync for ErrorKind<K, T> where
K: Sync,
T: Sync,
K: Sync,
T: Sync,
impl<K, T> Unpin for ErrorKind<K, T> where
K: Unpin,
T: Unpin,
K: Unpin,
T: Unpin,
impl<K, T> UnwindSafe for ErrorKind<K, T> where
K: UnwindSafe,
T: UnwindSafe,
K: UnwindSafe,
T: 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> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
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>,