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 Clone for FunctionError
impl Clone for FunctionError
Source§fn clone(&self) -> FunctionError
fn clone(&self) -> FunctionError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FunctionError
impl Debug for FunctionError
Source§impl<'de> Deserialize<'de> for FunctionError
impl<'de> Deserialize<'de> for FunctionError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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()
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