pub enum ParseErrorKind<'source> {
Show 16 variants LexError(LexError<'source>), UnexpectedToken { got: Token<'source>, expected: &'static str, }, UnexpectedEndOfFile { expected: &'static str, }, UnexpectedKeyword(&'source str), InvalidValType(&'source str), MalformedUtf8Encoding, MissingParen { paren: char, got: Option<Token<'source>>, what: &'source str, }, InvalidOperand { insn: &'static str, msg: &'static str, }, NumberMustBePositive(NumBase, &'source str), CannotParseNum { reason: String, ty: &'static str, }, MultipleEntrypoints(Start<'source>, Start<'source>), IdAlreadyDefined { id: &'source str, prev_idx: u32, what: &'static str, scope: &'static str, }, ExpectEndOfFile { token: Token<'source>, after: &'static str, }, ImportMustPrecedeOtherDefs { what: &'static str, }, InvalidAlignment(u32), IdBoundToParam(&'source str),
}

Variants§

§

LexError(LexError<'source>)

§

UnexpectedToken

Fields

§got: Token<'source>
§expected: &'static str
§

UnexpectedEndOfFile

Fields

§expected: &'static str
§

UnexpectedKeyword(&'source str)

§

InvalidValType(&'source str)

§

MalformedUtf8Encoding

§

MissingParen

Fields

§paren: char
§got: Option<Token<'source>>
§what: &'source str
§

InvalidOperand

Fields

§insn: &'static str
§msg: &'static str
§

NumberMustBePositive(NumBase, &'source str)

§

CannotParseNum

Fields

§reason: String
§ty: &'static str
§

MultipleEntrypoints(Start<'source>, Start<'source>)

§

IdAlreadyDefined

Fields

§id: &'source str
§prev_idx: u32
§what: &'static str
§scope: &'static str
§

ExpectEndOfFile

Fields

§token: Token<'source>
§after: &'static str
§

ImportMustPrecedeOtherDefs

Fields

§what: &'static str
§

InvalidAlignment(u32)

§

IdBoundToParam(&'source str)

Auto Trait Implementations§

§

impl<'source> RefUnwindSafe for ParseErrorKind<'source>

§

impl<'source> Send for ParseErrorKind<'source>

§

impl<'source> Sync for ParseErrorKind<'source>

§

impl<'source> Unpin for ParseErrorKind<'source>

§

impl<'source> UnwindSafe for ParseErrorKind<'source>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.