pub enum ErrorKind {
Show 114 variants
NoAssociatedFunction(Type, String),
MissingSubscriptMember,
UnusedVariablesCanNotBeMut,
UnknownIdentifier,
VariableTypeMustBeConcrete,
GuardCanNotHaveMultipleWildcards,
WildcardMustBeLastInGuard,
GuardMustHaveWildcard,
GuardHasNoType,
TooManyDestructureVariables,
EmptyBlockWrongType,
CanNotDestructure,
EmptySliceCanOnlyBeMapOrArray,
CanNotFindModule(Vec<String>),
UnknownStructTypeReference,
UnknownLocalStructTypeReference(LocalTypeIdentifier),
DuplicateFieldName,
Unknown(String),
UnknownImplTargetTypeReference(LocalTypeIdentifier),
WrongFieldCountInStructInstantiation(NamedStructType, usize),
MissingFieldInStructInstantiation(Vec<String>, AnonymousStructType),
ExpectedFunctionExpression,
CouldNotFindMember(Node, Node),
UnknownVariable,
NotAnArray,
ArrayIndexMustBeInt(Type),
OverwriteVariableWithAnotherType,
NoneNeedsExpectedTypeHint,
ExpectedMutableLocation,
WrongNumberOfArguments(usize, usize),
IncompatibleArguments(Type, Type),
CanOnlyOverwriteVariableWithMut,
OverwriteVariableNotAllowedHere,
NotNamedStruct(Type),
UnknownEnumVariantType,
WasNotStructType,
UnknownStructField,
MustBeEnumType(Pattern),
UnknownEnumVariantTypeInPattern,
ExpectedEnumInPattern,
WrongEnumVariantContainer(EnumVariantType),
VariableIsNotMutable,
ArgumentIsNotMutable,
WrongNumberOfTupleDeconstructVariables,
UnknownTypeReference,
SemanticError(SemanticError),
SeqMapError(SeqMapError),
ExpectedMemberCall,
CouldNotFindStaticMember(Node, Node),
TypeAliasNotAStruct,
ModuleNotUnique,
ExpressionIsOfWrongFieldType(Span, Type, Type),
ExpectedOptional,
ExpectedVariable,
EmptyMapLiteral,
MapKeyTypeMismatch {
expected: Type,
found: Type,
},
MapValueTypeMismatch {
expected: Type,
found: Type,
},
TypeIsNotAnIndexCollection(Type),
NotSameKeyTypeForMapIndex(Type, Type),
UnknownIndexAwareCollection,
InvalidOperatorForArray,
IncompatibleTypes(Type, Type),
ExpectedArray(Type),
UnknownMemberFunction,
WrongNumberOfTypeArguments(usize, usize),
OnlyVariablesAllowedInEnumPattern,
ExpressionsNotAllowedInLetPattern,
UnknownField,
EnumVariantHasNoFields,
TooManyTupleFields {
max: usize,
got: usize,
},
NotInFunction,
ExpectedBooleanExpression,
NotAnIterator,
UnsupportedIteratorPairs,
NeedStructForFieldLookup,
IntConversionError(ParseIntError),
FloatConversionError(ParseFloatError),
BoolConversionError,
DuplicateFieldInStructInstantiation(String),
InternalError(&'static str),
WasNotFieldMutRef,
UnknownFunction,
NoDefaultImplemented(Type),
NoDefaultImplementedForStruct(NamedStructType),
UnknownConstant,
ExpectedFunctionTypeForFunctionCall,
TypeDoNotSupportIndexAccess,
NoneCoalesceNeedsOptionalType,
TypeDoNotSupportRangeAccess,
ArgumentMustBeImmutable,
NotValidLocationStartingPoint,
NotValidLocationItem,
ExpectedImmutableExpression,
CallsCanNotBePartOfChain,
UnwrapCanNotBePartOfChain,
NoneCoalesceCanNotBePartOfChain,
SelfNotCorrectType,
IllegalIndexInChain,
CanNotNoneCoalesce,
UnknownSymbol,
UnknownEnumType,
UnknownModule,
BreakOutsideLoop,
ReturnOutsideCompare,
EmptyMatch,
MatchArmsMustHaveTypes,
ContinueOutsideLoop,
ParameterIsNotMutable,
CouldNotCoerceTo(Type),
NoDefaultImplementedForType(Type),
UnknownTypeVariable,
WrongParameterCount(usize, usize),
UnexpectedType,
CanNotAttachFunctionsToType,
}
Variants§
NoAssociatedFunction(Type, String)
MissingSubscriptMember
UnusedVariablesCanNotBeMut
UnknownIdentifier
VariableTypeMustBeConcrete
GuardCanNotHaveMultipleWildcards
WildcardMustBeLastInGuard
GuardMustHaveWildcard
GuardHasNoType
TooManyDestructureVariables
EmptyBlockWrongType
CanNotDestructure
EmptySliceCanOnlyBeMapOrArray
CanNotFindModule(Vec<String>)
UnknownStructTypeReference
UnknownLocalStructTypeReference(LocalTypeIdentifier)
DuplicateFieldName
Unknown(String)
UnknownImplTargetTypeReference(LocalTypeIdentifier)
WrongFieldCountInStructInstantiation(NamedStructType, usize)
MissingFieldInStructInstantiation(Vec<String>, AnonymousStructType)
ExpectedFunctionExpression
CouldNotFindMember(Node, Node)
UnknownVariable
NotAnArray
ArrayIndexMustBeInt(Type)
OverwriteVariableWithAnotherType
NoneNeedsExpectedTypeHint
ExpectedMutableLocation
WrongNumberOfArguments(usize, usize)
IncompatibleArguments(Type, Type)
CanOnlyOverwriteVariableWithMut
OverwriteVariableNotAllowedHere
NotNamedStruct(Type)
UnknownEnumVariantType
WasNotStructType
UnknownStructField
MustBeEnumType(Pattern)
UnknownEnumVariantTypeInPattern
ExpectedEnumInPattern
WrongEnumVariantContainer(EnumVariantType)
VariableIsNotMutable
ArgumentIsNotMutable
WrongNumberOfTupleDeconstructVariables
UnknownTypeReference
SemanticError(SemanticError)
SeqMapError(SeqMapError)
ExpectedMemberCall
CouldNotFindStaticMember(Node, Node)
TypeAliasNotAStruct
ModuleNotUnique
ExpressionIsOfWrongFieldType(Span, Type, Type)
ExpectedOptional
ExpectedVariable
EmptyMapLiteral
MapKeyTypeMismatch
MapValueTypeMismatch
TypeIsNotAnIndexCollection(Type)
NotSameKeyTypeForMapIndex(Type, Type)
UnknownIndexAwareCollection
InvalidOperatorForArray
IncompatibleTypes(Type, Type)
ExpectedArray(Type)
UnknownMemberFunction
WrongNumberOfTypeArguments(usize, usize)
OnlyVariablesAllowedInEnumPattern
ExpressionsNotAllowedInLetPattern
UnknownField
EnumVariantHasNoFields
TooManyTupleFields
NotInFunction
ExpectedBooleanExpression
NotAnIterator
UnsupportedIteratorPairs
NeedStructForFieldLookup
IntConversionError(ParseIntError)
FloatConversionError(ParseFloatError)
BoolConversionError
DuplicateFieldInStructInstantiation(String)
InternalError(&'static str)
WasNotFieldMutRef
UnknownFunction
NoDefaultImplemented(Type)
NoDefaultImplementedForStruct(NamedStructType)
UnknownConstant
ExpectedFunctionTypeForFunctionCall
TypeDoNotSupportIndexAccess
NoneCoalesceNeedsOptionalType
TypeDoNotSupportRangeAccess
ArgumentMustBeImmutable
NotValidLocationStartingPoint
NotValidLocationItem
ExpectedImmutableExpression
CallsCanNotBePartOfChain
UnwrapCanNotBePartOfChain
NoneCoalesceCanNotBePartOfChain
SelfNotCorrectType
IllegalIndexInChain
CanNotNoneCoalesce
UnknownSymbol
UnknownEnumType
UnknownModule
BreakOutsideLoop
ReturnOutsideCompare
EmptyMatch
MatchArmsMustHaveTypes
ContinueOutsideLoop
ParameterIsNotMutable
CouldNotCoerceTo(Type)
NoDefaultImplementedForType(Type)
UnknownTypeVariable
WrongParameterCount(usize, usize)
UnexpectedType
CanNotAttachFunctionsToType
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more