Enum miden_assembly::AssemblyError
source · pub enum AssemblyError {
Show 13 variants
CallInKernel(String),
CallerOutOKernel,
CircularModuleDependency(Vec<String>),
DivisionByZero,
DuplicateProcName(String, String),
ExportedProcInProgram(String),
ImportedProcModuleNotFound(ProcedureId),
ImportedProcNotFoundInModule(ProcedureId, String),
KernelProcNotFound(ProcedureId),
LocalProcNotFound(u16, String),
ParsingError(String),
ParamOutOfBounds(u64, u64, u64),
SysCallInKernel(String),
}Variants
CallInKernel(String)
CallerOutOKernel
CircularModuleDependency(Vec<String>)
DivisionByZero
DuplicateProcName(String, String)
ExportedProcInProgram(String)
ImportedProcModuleNotFound(ProcedureId)
ImportedProcNotFoundInModule(ProcedureId, String)
KernelProcNotFound(ProcedureId)
LocalProcNotFound(u16, String)
ParsingError(String)
ParamOutOfBounds(u64, u64, u64)
SysCallInKernel(String)
Implementations
sourceimpl AssemblyError
impl AssemblyError
pub fn call_in_kernel(kernel_proc_name: &str) -> Self
pub fn caller_out_of_kernel() -> Self
pub fn circular_module_dependency(dep_chain: &[String]) -> Self
pub fn division_by_zero() -> Self
pub fn duplicate_proc_name(proc_name: &str, module_path: &str) -> Self
pub fn exported_proc_in_program(proc_name: &str) -> Self
pub fn imported_proc_module_not_found(proc_id: &ProcedureId) -> Self
pub fn imported_proc_not_found_in_module(
proc_id: &ProcedureId,
module_path: &str
) -> Self
pub fn kernel_proc_not_found(kernel_proc_id: &ProcedureId) -> Self
pub fn local_proc_not_found(proc_idx: u16, module_path: &str) -> Self
pub fn param_out_of_bounds(value: u64, min: u64, max: u64) -> Self
pub fn syscall_in_kernel(kernel_proc_name: &str) -> Self
Trait Implementations
sourceimpl Clone for AssemblyError
impl Clone for AssemblyError
sourcefn clone(&self) -> AssemblyError
fn clone(&self) -> AssemblyError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AssemblyError
impl Debug for AssemblyError
sourceimpl Display for AssemblyError
impl Display for AssemblyError
sourceimpl Error for AssemblyError
impl Error for AssemblyError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ParsingError> for AssemblyError
impl From<ParsingError> for AssemblyError
sourcefn from(err: ParsingError) -> Self
fn from(err: ParsingError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<AssemblyError> for AssemblyError
impl PartialEq<AssemblyError> for AssemblyError
sourcefn eq(&self, other: &AssemblyError) -> bool
fn eq(&self, other: &AssemblyError) -> bool
impl Eq for AssemblyError
impl StructuralEq for AssemblyError
impl StructuralPartialEq for AssemblyError
Auto Trait Implementations
impl RefUnwindSafe for AssemblyError
impl Send for AssemblyError
impl Sync for AssemblyError
impl Unpin for AssemblyError
impl UnwindSafe for AssemblyError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more