Enum ErrorKind
pub enum ErrorKind
Parsing errors specific to C parsing
Variants
-
ExactToken(Kind, &'static [u8]) Expected the specified token
-
ExactTokens(Kind, &'static [&'static str]) Expected one of the specified tokens
-
TypedToken(Kind) Expected a token of the specified kind
-
UnknownIdentifier An unknown identifier was encountered
-
InvalidLiteral An invalid literal was encountered.
When encountered, this generally means a bug exists in the data that was passed in or the parsing logic.
-
Partial A full parse was requested, but data was left over after parsing finished.
-
Parser(ErrorKind) An error occurred in an underlying nom parser.
Trait Implementations
impl Debug for ErrorKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl From<ErrorKind> for ErrorKind
fn from(k: ErrorKind) -> Self
impl From<u32> for ErrorKind
fn from(u32) -> Self
Auto Trait Implementations
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
impl<T> Any for ErrorKind
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ErrorKind
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ErrorKind
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ErrorKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ErrorKind
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ErrorKind
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ErrorKind
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>