Struct artichoke_backend::value::ArgCountError
source · pub struct ArgCountError {
pub given: usize,
pub max: usize,
}
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§
source§impl ArgCountError
impl ArgCountError
Trait Implementations§
source§impl Clone for ArgCountError
impl Clone for ArgCountError
source§fn clone(&self) -> ArgCountError
fn clone(&self) -> ArgCountError
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 ArgCountError
impl Debug for ArgCountError
source§impl Default for ArgCountError
impl Default for ArgCountError
source§fn default() -> ArgCountError
fn default() -> ArgCountError
Returns the “default value” for a type. Read more
source§impl Display for ArgCountError
impl Display for ArgCountError
source§impl Error for ArgCountError
impl Error for ArgCountError
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<ArgCountError> for Error
impl From<ArgCountError> for Error
source§fn from(exception: ArgCountError) -> Self
fn from(exception: ArgCountError) -> Self
Converts to this type from the input type.
source§impl Hash for ArgCountError
impl Hash for ArgCountError
source§impl Ord for ArgCountError
impl Ord for ArgCountError
source§fn cmp(&self, other: &ArgCountError) -> Ordering
fn cmp(&self, other: &ArgCountError) -> 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<ArgCountError> for ArgCountError
impl PartialEq<ArgCountError> for ArgCountError
source§fn 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 ==
.source§impl PartialOrd<ArgCountError> for ArgCountError
impl PartialOrd<ArgCountError> for ArgCountError
source§fn partial_cmp(&self, other: &ArgCountError) -> Option<Ordering>
fn partial_cmp(&self, other: &ArgCountError) -> 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 ArgCountError
impl RubyException for ArgCountError
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
.