Enum lucia_lang::errors::RuntimeErrorKind
source · pub enum RuntimeErrorKind {
StackError,
ProgramError(ProgramError),
ThrowError(Value),
UserPanic(Value),
}Expand description
Kind of RuntimeError.
Variants§
Trait Implementations§
source§impl Clone for RuntimeErrorKind
impl Clone for RuntimeErrorKind
source§fn clone(&self) -> RuntimeErrorKind
fn clone(&self) -> RuntimeErrorKind
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 RuntimeErrorKind
impl Debug for RuntimeErrorKind
source§impl Display for RuntimeErrorKind
impl Display for RuntimeErrorKind
source§impl Error for RuntimeErrorKind
impl Error for RuntimeErrorKind
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<RuntimeErrorKind> for RuntimeErrorKind
impl PartialEq<RuntimeErrorKind> for RuntimeErrorKind
source§fn eq(&self, other: &RuntimeErrorKind) -> bool
fn eq(&self, other: &RuntimeErrorKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for RuntimeErrorKind
impl StructuralEq for RuntimeErrorKind
impl StructuralPartialEq for RuntimeErrorKind
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeErrorKind
impl !Send for RuntimeErrorKind
impl !Sync for RuntimeErrorKind
impl Unpin for RuntimeErrorKind
impl !UnwindSafe for RuntimeErrorKind
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.