pub enum ProgramRegistryError {
Show 19 variants
FunctionIdAlreadyExists(FunctionId),
MissingFunction(FunctionId),
TypeSpecialization {
concrete_id: ConcreteTypeId,
error: ExtensionError,
},
TypeConcreteIdAlreadyExists(ConcreteTypeId),
TypeAlreadyDeclared(Box<TypeDeclaration>),
MissingType(ConcreteTypeId),
LibfuncSpecialization {
concrete_id: ConcreteLibfuncId,
error: ExtensionError,
},
LibfuncConcreteIdAlreadyExists(ConcreteLibfuncId),
MissingLibfunc(ConcreteLibfuncId),
TypeInfoDeclarationMismatch(ConcreteTypeId),
FunctionWithUnstorableType {
func_id: FunctionId,
ty: ConcreteTypeId,
},
LibfuncInvocationInputCountMismatch(StatementIdx),
LibfuncInvocationBranchCountMismatch(StatementIdx),
LibfuncInvocationBranchResultCountMismatch(StatementIdx, usize),
LibfuncInvocationBranchTargetMismatch(StatementIdx, usize),
BranchBackwards {
src: StatementIdx,
dst: StatementIdx,
},
BranchNotToBranchAlign {
src: StatementIdx,
dst: StatementIdx,
},
MultipleJumpsToSameStatement {
src1: StatementIdx,
src2: StatementIdx,
dst: StatementIdx,
},
JumpOutOfRange(StatementIdx),
}Expand description
Errors encountered in the program registry.
Variants§
FunctionIdAlreadyExists(FunctionId)
MissingFunction(FunctionId)
TypeSpecialization
TypeConcreteIdAlreadyExists(ConcreteTypeId)
TypeAlreadyDeclared(Box<TypeDeclaration>)
MissingType(ConcreteTypeId)
LibfuncSpecialization
LibfuncConcreteIdAlreadyExists(ConcreteLibfuncId)
MissingLibfunc(ConcreteLibfuncId)
TypeInfoDeclarationMismatch(ConcreteTypeId)
FunctionWithUnstorableType
LibfuncInvocationInputCountMismatch(StatementIdx)
LibfuncInvocationBranchCountMismatch(StatementIdx)
LibfuncInvocationBranchResultCountMismatch(StatementIdx, usize)
LibfuncInvocationBranchTargetMismatch(StatementIdx, usize)
BranchBackwards
BranchNotToBranchAlign
MultipleJumpsToSameStatement
JumpOutOfRange(StatementIdx)
Trait Implementations§
source§impl Debug for ProgramRegistryError
impl Debug for ProgramRegistryError
source§impl Display for ProgramRegistryError
impl Display for ProgramRegistryError
source§impl Error for ProgramRegistryError
impl Error for ProgramRegistryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 ProgramRegistryError
impl PartialEq for ProgramRegistryError
source§fn eq(&self, other: &ProgramRegistryError) -> bool
fn eq(&self, other: &ProgramRegistryError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ProgramRegistryError
impl StructuralPartialEq for ProgramRegistryError
Auto Trait Implementations§
impl Freeze for ProgramRegistryError
impl RefUnwindSafe for ProgramRegistryError
impl Send for ProgramRegistryError
impl Sync for ProgramRegistryError
impl Unpin for ProgramRegistryError
impl UnwindSafe for ProgramRegistryError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more