pub enum ErrorKind {
Show 68 variants
NoAssociatedFunction(Type, String),
MissingSubscriptMember,
UnusedVariablesCanNotBeMut,
UnknownIdentifier,
VariableTypeMustBeConcrete,
GuardCanNotHaveMultipleWildcards,
WildcardMustBeLastInGuard,
GuardMustHaveWildcard,
GuardHasNoType,
TooManyDestructureVariables,
CanNotDestructure,
UnknownStructTypeReference,
DuplicateFieldName,
MissingFieldInStructInstantiation(Vec<String>, AnonymousStructType),
UnknownVariable,
ArrayIndexMustBeInt(Type),
OverwriteVariableWithAnotherType,
NoneNeedsExpectedTypeHint,
ExpectedMutableLocation,
WrongNumberOfArguments(usize, usize),
CanOnlyOverwriteVariableWithMut,
OverwriteVariableNotAllowedHere,
UnknownEnumVariantType,
UnknownStructField,
UnknownEnumVariantTypeInPattern,
ExpectedEnumInPattern,
WrongEnumVariantContainer(EnumVariantType),
VariableIsNotMutable,
ArgumentIsNotMutable,
UnknownTypeReference,
SemanticError(SemanticError),
ExpectedOptional,
MapKeyTypeMismatch {
expected: Type,
found: Type,
},
MapValueTypeMismatch {
expected: Type,
found: Type,
},
IncompatibleTypes {
expected: Type,
found: Type,
},
UnknownMemberFunction,
ExpressionsNotAllowedInLetPattern,
UnknownField,
EnumVariantHasNoFields,
TooManyTupleFields {
max: usize,
got: usize,
},
ExpectedBooleanExpression,
NotAnIterator,
IntConversionError(ParseIntError),
FloatConversionError(ParseFloatError),
BoolConversionError,
DuplicateFieldInStructInstantiation(String),
UnknownFunction,
NoDefaultImplemented(Type),
UnknownConstant,
NotValidLocationStartingPoint,
CallsCanNotBePartOfChain,
UnwrapCanNotBePartOfChain,
NoneCoalesceCanNotBePartOfChain,
SelfNotCorrectType,
CanNotNoneCoalesce,
UnknownSymbol,
UnknownEnumType,
UnknownModule,
BreakOutsideLoop,
ReturnOutsideCompare,
EmptyMatch,
MatchArmsMustHaveTypes,
ContinueOutsideLoop,
ParameterIsNotMutable,
CouldNotCoerceTo(Type),
UnexpectedType,
CanNotAttachFunctionsToType,
MissingMemberFunction(String),
}
Variants§
NoAssociatedFunction(Type, String)
MissingSubscriptMember
UnusedVariablesCanNotBeMut
UnknownIdentifier
VariableTypeMustBeConcrete
GuardCanNotHaveMultipleWildcards
WildcardMustBeLastInGuard
GuardMustHaveWildcard
GuardHasNoType
TooManyDestructureVariables
CanNotDestructure
UnknownStructTypeReference
DuplicateFieldName
MissingFieldInStructInstantiation(Vec<String>, AnonymousStructType)
UnknownVariable
ArrayIndexMustBeInt(Type)
OverwriteVariableWithAnotherType
NoneNeedsExpectedTypeHint
ExpectedMutableLocation
WrongNumberOfArguments(usize, usize)
CanOnlyOverwriteVariableWithMut
OverwriteVariableNotAllowedHere
UnknownEnumVariantType
UnknownStructField
UnknownEnumVariantTypeInPattern
ExpectedEnumInPattern
WrongEnumVariantContainer(EnumVariantType)
VariableIsNotMutable
ArgumentIsNotMutable
UnknownTypeReference
SemanticError(SemanticError)
ExpectedOptional
MapKeyTypeMismatch
MapValueTypeMismatch
IncompatibleTypes
UnknownMemberFunction
ExpressionsNotAllowedInLetPattern
UnknownField
EnumVariantHasNoFields
TooManyTupleFields
ExpectedBooleanExpression
NotAnIterator
IntConversionError(ParseIntError)
FloatConversionError(ParseFloatError)
BoolConversionError
DuplicateFieldInStructInstantiation(String)
UnknownFunction
NoDefaultImplemented(Type)
UnknownConstant
NotValidLocationStartingPoint
CallsCanNotBePartOfChain
UnwrapCanNotBePartOfChain
NoneCoalesceCanNotBePartOfChain
SelfNotCorrectType
CanNotNoneCoalesce
UnknownSymbol
UnknownEnumType
UnknownModule
BreakOutsideLoop
ReturnOutsideCompare
EmptyMatch
MatchArmsMustHaveTypes
ContinueOutsideLoop
ParameterIsNotMutable
CouldNotCoerceTo(Type)
UnexpectedType
CanNotAttachFunctionsToType
MissingMemberFunction(String)
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