pub enum FunctionDecompilerError {
CannotPopNode(BasicBlockId),
FunctionError(FunctionError),
OperandError(OperandError),
InstructionMustHaveOperand(Opcode),
InvalidNodeType(BasicBlockId, String, String),
AstNodeError(AstNodeError),
UnimplementedOpcode(Opcode, BasicBlockId),
ExecutionStackEmpty,
UnexpectedExecutionState(ExecutionFrame, ExecutionFrame),
}
Expand description
An error when decompiling a function
Variants§
CannotPopNode(BasicBlockId)
Cannot pop a node from the stack
FunctionError(FunctionError)
Encountered FunctionError
OperandError(OperandError)
Encountered an error while processing the operand
InstructionMustHaveOperand(Opcode)
The current instruction must have an operand
InvalidNodeType(BasicBlockId, String, String)
Invalid node type on stack
AstNodeError(AstNodeError)
Encountered AstNodeError
UnimplementedOpcode(Opcode, BasicBlockId)
Unimplemented Opcode
ExecutionStackEmpty
Execution state stack is empty
UnexpectedExecutionState(ExecutionFrame, ExecutionFrame)
Unexpected execution state
Trait Implementations§
Source§impl Debug for FunctionDecompilerError
impl Debug for FunctionDecompilerError
Source§impl Display for FunctionDecompilerError
impl Display for FunctionDecompilerError
Source§impl Error for FunctionDecompilerError
impl Error for FunctionDecompilerError
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 From<AstNodeError> for FunctionDecompilerError
impl From<AstNodeError> for FunctionDecompilerError
Source§fn from(source: AstNodeError) -> Self
fn from(source: AstNodeError) -> Self
Converts to this type from the input type.
Source§impl From<FunctionError> for FunctionDecompilerError
impl From<FunctionError> for FunctionDecompilerError
Source§fn from(source: FunctionError) -> Self
fn from(source: FunctionError) -> Self
Converts to this type from the input type.
Source§impl From<OperandError> for FunctionDecompilerError
impl From<OperandError> for FunctionDecompilerError
Source§fn from(source: OperandError) -> Self
fn from(source: OperandError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FunctionDecompilerError
impl RefUnwindSafe for FunctionDecompilerError
impl Send for FunctionDecompilerError
impl Sync for FunctionDecompilerError
impl Unpin for FunctionDecompilerError
impl UnwindSafe for FunctionDecompilerError
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