Struct artichoke_backend::value::ArgCountError
source · [−]Expand description
Argument count exceeds maximum allowed by the VM.
Fields
given: usize
Number of arguments given.
max: usize
Maximum number of arguments supported.
Implementations
sourceimpl ArgCountError
impl ArgCountError
Trait Implementations
sourceimpl Clone for ArgCountError
impl Clone for ArgCountError
sourcefn clone(&self) -> ArgCountError
fn clone(&self) -> ArgCountError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ArgCountError
impl Debug for ArgCountError
sourceimpl Default for ArgCountError
impl Default for ArgCountError
sourcefn default() -> ArgCountError
fn default() -> ArgCountError
Returns the “default value” for a type. Read more
sourceimpl Display for ArgCountError
impl Display for ArgCountError
sourceimpl Error for ArgCountError
impl Error for ArgCountError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ArgCountError> for Error
impl From<ArgCountError> for Error
sourcefn from(exception: ArgCountError) -> Self
fn from(exception: ArgCountError) -> Self
Converts to this type from the input type.
sourceimpl From<ArgCountError> for Box<dyn RubyException>
impl From<ArgCountError> for Box<dyn RubyException>
sourcefn from(exception: ArgCountError) -> Box<dyn RubyException>
fn from(exception: ArgCountError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl Hash for ArgCountError
impl Hash for ArgCountError
sourceimpl Ord for ArgCountError
impl Ord for ArgCountError
sourceimpl PartialEq<ArgCountError> for ArgCountError
impl PartialEq<ArgCountError> for ArgCountError
sourcefn eq(&self, other: &ArgCountError) -> bool
fn eq(&self, other: &ArgCountError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ArgCountError) -> bool
fn ne(&self, other: &ArgCountError) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ArgCountError> for ArgCountError
impl PartialOrd<ArgCountError> for ArgCountError
sourcefn partial_cmp(&self, other: &ArgCountError) -> Option<Ordering>
fn partial_cmp(&self, other: &ArgCountError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl RubyException for ArgCountError
impl RubyException for ArgCountError
sourcefn 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.
sourcefn 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 Copy for ArgCountError
impl Eq for ArgCountError
impl StructuralEq for ArgCountError
impl StructuralPartialEq for ArgCountError
Auto Trait Implementations
impl RefUnwindSafe for ArgCountError
impl Send for ArgCountError
impl Sync for ArgCountError
impl Unpin for ArgCountError
impl UnwindSafe for ArgCountError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more