pub enum FunctionError {
BasicBlockNotFoundById(BasicBlockId),
BasicBlockNotFoundByAddress(Gs2BytecodeAddress),
BasicBlockNodeIndexNotFound(BasicBlockId),
EntryBlockAlreadyExists,
}
Expand description
Represents an error that can occur when working with functions.
Variants§
BasicBlockNotFoundById(BasicBlockId)
The requested BasicBlock
was not found by its block id.
BasicBlockNotFoundByAddress(Gs2BytecodeAddress)
The requested BasicBlock
was not found by its address.
BasicBlockNodeIndexNotFound(BasicBlockId)
The requested BasicBlock
does not have a NodeIndex
.
EntryBlockAlreadyExists
The function already has an entry block.
Trait Implementations§
Source§impl Debug for FunctionError
impl Debug for FunctionError
Source§impl Display for FunctionError
impl Display for FunctionError
Source§impl Error for FunctionError
impl Error for FunctionError
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 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.
Auto Trait Implementations§
impl Freeze for FunctionError
impl RefUnwindSafe for FunctionError
impl Send for FunctionError
impl Sync for FunctionError
impl Unpin for FunctionError
impl UnwindSafe for FunctionError
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