Enum lucia_lang::errors::BuiltinError
source · pub enum BuiltinError {
TypeError(TypeError),
ImportError(String),
}Expand description
Enum representing any lucia lang builtin error. BuiltinError will be converted to the LuciaTable and handled by lucia lang runtime.
Variants§
Implementations§
source§impl BuiltinError
impl BuiltinError
pub fn error_type(&self) -> &'static str
pub fn msg(&self) -> String
pub fn into_table(&self, lvm: &mut Lvm) -> Table
pub fn into_table_value(&self, lvm: &mut Lvm) -> Value
Trait Implementations§
source§impl Clone for BuiltinError
impl Clone for BuiltinError
source§fn clone(&self) -> BuiltinError
fn clone(&self) -> BuiltinError
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 BuiltinError
impl Debug for BuiltinError
source§impl Display for BuiltinError
impl Display for BuiltinError
source§impl Error for BuiltinError
impl Error for BuiltinError
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<TypeError> for BuiltinError
impl From<TypeError> for BuiltinError
source§impl PartialEq<BuiltinError> for BuiltinError
impl PartialEq<BuiltinError> for BuiltinError
source§fn eq(&self, other: &BuiltinError) -> bool
fn eq(&self, other: &BuiltinError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for BuiltinError
impl StructuralEq for BuiltinError
impl StructuralPartialEq for BuiltinError
Auto Trait Implementations§
impl !RefUnwindSafe for BuiltinError
impl !Send for BuiltinError
impl !Sync for BuiltinError
impl Unpin for BuiltinError
impl !UnwindSafe for BuiltinError
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.