ErrorKind

Enum ErrorKind 

Source
pub enum ErrorKind {
Show 75 variants InvalidCharacter(char), MissingDigitsAfterDecimalPoint, MissingExponent, UnderscoresWithoutDigits, MissingClosingQuote, InvalidEscape(char), LineBreakInStringIsNotAllowed, UEscapeLeftBraceExpected, UEscapeMissingRightBrace, UEscapeEmpty, UEscapeOutOfRange, InvalidBackslashLiteral(char), RawStringMissingOpeningQuote, IntLiteralOutOfRange, IntRadixOutOfRange, ColonExpectedAfterRadix, CharacterMissingOpeningApostrophe, CharacterMissingClosingApostrophe, InvalidPrefixToken, InvalidInfixToken, MissingDo, MissingRightParen, MissingEnd, InvalidIfBranchToken, BranchAfterElse, IdentifierExpected, LeftParenExpected, UnexpectedEof, CommaExpected, ColonExpectedAfterDictKey, RightBracketExpectedToCloseEmptyDict, InExpectedAfterForBinding, VariableDoesNotExist(Rc<str>), InvalidAssignment, TooManyLocals, TooManyGlobals, TooManyCaptures, IfBranchTooLarge, IfExpressionTooLarge, OperatorRhsTooLarge, LoopTooLarge, BreakOutsideOfLoop, TooManyFunctions, TooManyArguments, TooManyParameters, TooManyMethods, InvalidMethodName, FunctionKindOutsideImpl, MissingFunctionBody, InvalidImplItem, MissingMethodName, TooManyImpls, MethodAlreadyImplemented(RenderedSignature), TooManyFields, FieldDoesNotExist(Rc<str>), FieldOutsideOfImpl, MissingFields(Vec<Rc<str>>), ListIsTooLong, DictIsTooLarge, TooManyTraits, InvalidTraitItem, TraitMethodCannotHaveBody, TraitAlreadyHasMethod(RenderedSignature), AsOutsideOfImpl, TooManyTraitsInImpl, AsCannotNest, FunctionKindInTrait, InvalidPattern, TypeError { expected: Cow<'static, str>, got: Cow<'static, str>, }, MethodDoesNotExist { type_name: Rc<str>, signature: RenderedSignature, }, StructAlreadyImplemented, UserDataAlreadyBorrowed, DoubleMethodImplementation { type_name: Rc<str>, signature: RenderedSignature, }, MethodsUnimplemented { type_name: Rc<str>, methods: Vec<RenderedSignature>, }, User(Box<dyn Error>),
}
Expand description

The kind of an error.

Check the source code of the Display implementation to see which error kind corresponds to which error message.

Variants§

§

InvalidCharacter(char)

§

MissingDigitsAfterDecimalPoint

§

MissingExponent

§

UnderscoresWithoutDigits

§

MissingClosingQuote

§

InvalidEscape(char)

§

LineBreakInStringIsNotAllowed

§

UEscapeLeftBraceExpected

§

UEscapeMissingRightBrace

§

UEscapeEmpty

§

UEscapeOutOfRange

§

InvalidBackslashLiteral(char)

§

RawStringMissingOpeningQuote

§

IntLiteralOutOfRange

§

IntRadixOutOfRange

§

ColonExpectedAfterRadix

§

CharacterMissingOpeningApostrophe

§

CharacterMissingClosingApostrophe

§

InvalidPrefixToken

§

InvalidInfixToken

§

MissingDo

§

MissingRightParen

§

MissingEnd

§

InvalidIfBranchToken

§

BranchAfterElse

§

IdentifierExpected

§

LeftParenExpected

§

UnexpectedEof

§

CommaExpected

§

ColonExpectedAfterDictKey

§

RightBracketExpectedToCloseEmptyDict

§

InExpectedAfterForBinding

§

VariableDoesNotExist(Rc<str>)

§

InvalidAssignment

§

TooManyLocals

§

TooManyGlobals

§

TooManyCaptures

§

IfBranchTooLarge

§

IfExpressionTooLarge

§

OperatorRhsTooLarge

§

LoopTooLarge

§

BreakOutsideOfLoop

§

TooManyFunctions

§

TooManyArguments

§

TooManyParameters

§

TooManyMethods

§

InvalidMethodName

§

FunctionKindOutsideImpl

§

MissingFunctionBody

§

InvalidImplItem

§

MissingMethodName

§

TooManyImpls

§

MethodAlreadyImplemented(RenderedSignature)

§

TooManyFields

§

FieldDoesNotExist(Rc<str>)

§

FieldOutsideOfImpl

§

MissingFields(Vec<Rc<str>>)

§

ListIsTooLong

§

DictIsTooLarge

§

TooManyTraits

§

InvalidTraitItem

§

TraitMethodCannotHaveBody

§

TraitAlreadyHasMethod(RenderedSignature)

§

AsOutsideOfImpl

§

TooManyTraitsInImpl

§

AsCannotNest

§

FunctionKindInTrait

§

InvalidPattern

§

TypeError

Fields

§expected: Cow<'static, str>
§got: Cow<'static, str>
§

MethodDoesNotExist

Fields

§type_name: Rc<str>
§

StructAlreadyImplemented

§

UserDataAlreadyBorrowed

§

DoubleMethodImplementation

Fields

§type_name: Rc<str>
§

MethodsUnimplemented

Fields

§type_name: Rc<str>
§

User(Box<dyn Error>)

Trait Implementations§

Source§

impl Debug for ErrorKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ErrorKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.