Enum lucia_lang::errors::ProgramError
source · pub enum ProgramError {
ModuleError(usize),
CodeIndexError(usize),
UnexpectCodeError(OpCode),
LocalNameError(usize),
GlobalNameError(usize),
ConstError(usize),
UpvalueError(usize),
FuncListError(usize),
}Expand description
Kind of ProgramError.
Variants§
ModuleError(usize)
CodeIndexError(usize)
UnexpectCodeError(OpCode)
LocalNameError(usize)
GlobalNameError(usize)
ConstError(usize)
UpvalueError(usize)
FuncListError(usize)
Trait Implementations§
source§impl Clone for ProgramError
impl Clone for ProgramError
source§fn clone(&self) -> ProgramError
fn clone(&self) -> ProgramError
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 ProgramError
impl Debug for ProgramError
source§impl Display for ProgramError
impl Display for ProgramError
source§impl Error for ProgramError
impl Error for ProgramError
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 From<ProgramError> for RuntimeErrorKind
impl From<ProgramError> for RuntimeErrorKind
source§fn from(source: ProgramError) -> Self
fn from(source: ProgramError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ProgramError> for ProgramError
impl PartialEq<ProgramError> for ProgramError
source§fn eq(&self, other: &ProgramError) -> bool
fn eq(&self, other: &ProgramError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ProgramError
impl StructuralEq for ProgramError
impl StructuralPartialEq for ProgramError
Auto Trait Implementations§
impl RefUnwindSafe for ProgramError
impl Send for ProgramError
impl Sync for ProgramError
impl Unpin for ProgramError
impl UnwindSafe for ProgramError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.