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) -> Self
pub fn super_class<T>(item: T) -> Self
pub fn class<T>(item: T) -> Self
pub fn method<T>(item: T) -> Self
pub fn module<T>(item: T) -> Self
pub fn global_constant<T>(item: T) -> Self
pub fn class_constant<T>(item: T) -> Self
pub fn module_constant<T>(item: T) -> Self
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)>
Returns 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 for NotDefinedError
impl PartialEq for NotDefinedError
Source§impl PartialOrd for NotDefinedError
impl PartialOrd for NotDefinedError
Source§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
.impl Eq for NotDefinedError
impl StructuralPartialEq for NotDefinedError
Auto Trait Implementations§
impl Freeze for NotDefinedError
impl RefUnwindSafe for NotDefinedError
impl Send for NotDefinedError
impl Sync for NotDefinedError
impl Unpin for NotDefinedError
impl UnwindSafe for NotDefinedError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more