pub enum PreprocessingError {
Show 32 variants
CouldNotInferTypeBinding(String),
CannotHaveTypeArgsOnGeneric(String),
MismatchedType(String, String, String, String),
CannotDetermineListLiteralType(String, String),
ValueNotFound(String),
InvalidOperatorUnary(&'static str),
InvalidOperator(&'static str, &'static str),
MultipleFieldAssignment(String),
NotAllFieldsAssigned(String, String),
IfArmsDoNotMatch(String, String),
IfRequiresElseBlock,
LoopCannotHaveReturnValue,
MismatchedTypeArgCount(String, usize, usize),
TypeInvalidInThisContext(String),
CannotModifyModuleEnvironment(String),
MismatchedArgumentCount(String, usize, usize),
NoParentEnv,
CannotModifyConst(String),
ReturnTypeMismatch(String, String),
FieldDoesNotExist(String, String),
CannotAccessMemberOfNonComposite,
CannotModifyFieldOnImmutableReference(String),
UnknownTypeFound,
BreakUsedInNonLoopContext,
ContinueUsedInNonLoopContext,
TupleMemberSyntaxInvalid(String),
TupleIndexValueInvalid(usize, usize),
AmbiguousExtensionCall(String, String),
CannotAccessMemberOfOptional(String),
StructContainsCircularFields(String),
TypeDoesNotExist(String),
FunctionDoesNotExist(String),
}
Variants§
CouldNotInferTypeBinding(String)
CannotHaveTypeArgsOnGeneric(String)
MismatchedType(String, String, String, String)
CannotDetermineListLiteralType(String, String)
ValueNotFound(String)
InvalidOperatorUnary(&'static str)
InvalidOperator(&'static str, &'static str)
MultipleFieldAssignment(String)
NotAllFieldsAssigned(String, String)
IfArmsDoNotMatch(String, String)
IfRequiresElseBlock
LoopCannotHaveReturnValue
MismatchedTypeArgCount(String, usize, usize)
TypeInvalidInThisContext(String)
CannotModifyModuleEnvironment(String)
MismatchedArgumentCount(String, usize, usize)
NoParentEnv
CannotModifyConst(String)
ReturnTypeMismatch(String, String)
FieldDoesNotExist(String, String)
CannotAccessMemberOfNonComposite
CannotModifyFieldOnImmutableReference(String)
UnknownTypeFound
BreakUsedInNonLoopContext
ContinueUsedInNonLoopContext
TupleMemberSyntaxInvalid(String)
TupleIndexValueInvalid(usize, usize)
AmbiguousExtensionCall(String, String)
CannotAccessMemberOfOptional(String)
StructContainsCircularFields(String)
TypeDoesNotExist(String)
FunctionDoesNotExist(String)
Trait Implementations§
Source§impl Debug for PreprocessingError
impl Debug for PreprocessingError
Source§impl Display for PreprocessingError
impl Display for PreprocessingError
Source§impl Error for PreprocessingError
impl Error for PreprocessingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for PreprocessingError
impl PartialEq for PreprocessingError
impl StructuralPartialEq for PreprocessingError
Auto Trait Implementations§
impl Freeze for PreprocessingError
impl RefUnwindSafe for PreprocessingError
impl Send for PreprocessingError
impl Sync for PreprocessingError
impl Unpin for PreprocessingError
impl UnwindSafe for PreprocessingError
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