Enum artichoke_backend::def::NotDefinedError
source · pub enum NotDefinedError {
EnclosingScope(Cow<'static, str>),
Super(Cow<'static, str>),
Class(Cow<'static, str>),
Method(Cow<'static, str>),
Module(Cow<'static, str>),
GlobalConstant(Cow<'static, str>),
ClassConstant(Cow<'static, str>),
ModuleConstant(Cow<'static, str>),
}
Variants§
EnclosingScope(Cow<'static, str>)
Super(Cow<'static, str>)
Class(Cow<'static, str>)
Method(Cow<'static, str>)
Module(Cow<'static, str>)
GlobalConstant(Cow<'static, str>)
ClassConstant(Cow<'static, str>)
ModuleConstant(Cow<'static, str>)
Implementations§
source§impl NotDefinedError
impl NotDefinedError
pub fn enclosing_scope<T>(item: T) -> Selfwhere
T: Into<Cow<'static, str>>,
pub fn super_class<T>(item: T) -> Selfwhere
T: Into<Cow<'static, str>>,
pub fn class<T>(item: T) -> Selfwhere
T: Into<Cow<'static, str>>,
pub fn method<T>(item: T) -> Selfwhere
T: Into<Cow<'static, str>>,
pub fn module<T>(item: T) -> Selfwhere
T: Into<Cow<'static, str>>,
pub fn global_constant<T>(item: T) -> Selfwhere
T: Into<Cow<'static, str>>,
pub fn class_constant<T>(item: T) -> Selfwhere
T: Into<Cow<'static, str>>,
pub fn module_constant<T>(item: T) -> Selfwhere
T: Into<Cow<'static, str>>,
pub fn fqdn(&self) -> &str
pub const fn item_type(&self) -> &str
Trait Implementations§
source§impl Clone for NotDefinedError
impl Clone for NotDefinedError
source§fn clone(&self) -> NotDefinedError
fn clone(&self) -> NotDefinedError
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 NotDefinedError
impl Debug for NotDefinedError
source§impl Display for NotDefinedError
impl Display for NotDefinedError
source§impl Error for NotDefinedError
impl Error for NotDefinedError
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<NotDefinedError> for Error
impl From<NotDefinedError> for Error
source§fn from(exception: NotDefinedError) -> Self
fn from(exception: NotDefinedError) -> Self
Converts to this type from the input type.
source§impl Hash for NotDefinedError
impl Hash for NotDefinedError
source§impl Ord for NotDefinedError
impl Ord for NotDefinedError
source§fn cmp(&self, other: &NotDefinedError) -> Ordering
fn cmp(&self, other: &NotDefinedError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<NotDefinedError> for NotDefinedError
impl PartialEq<NotDefinedError> for NotDefinedError
source§fn eq(&self, other: &NotDefinedError) -> bool
fn eq(&self, other: &NotDefinedError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<NotDefinedError> for NotDefinedError
impl PartialOrd<NotDefinedError> for NotDefinedError
source§fn partial_cmp(&self, other: &NotDefinedError) -> Option<Ordering>
fn partial_cmp(&self, other: &NotDefinedError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl RubyException for NotDefinedError
impl RubyException for NotDefinedError
source§fn vm_backtrace(&self, interp: &mut Artichoke) -> Option<Vec<Vec<u8>>>
fn vm_backtrace(&self, interp: &mut Artichoke) -> Option<Vec<Vec<u8>>>
Optional backtrace specified by a
Vec
of frames.source§fn as_mrb_value(&self, interp: &mut Artichoke) -> Option<mrb_value>
fn as_mrb_value(&self, interp: &mut Artichoke) -> Option<mrb_value>
Return a raise-able
sys::mrb_value
.