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)>
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<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 for ArgCountError
impl PartialEq for ArgCountError
Source§impl PartialOrd for ArgCountError
impl PartialOrd for ArgCountError
Source§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
.Source§impl TryFrom<&[Value]> for ArgCountError
impl TryFrom<&[Value]> for ArgCountError
Source§impl TryFrom<&[mrb_value]> for ArgCountError
impl TryFrom<&[mrb_value]> for ArgCountError
impl Copy for ArgCountError
impl Eq for ArgCountError
impl StructuralPartialEq for ArgCountError
Auto Trait Implementations§
impl Freeze for ArgCountError
impl RefUnwindSafe for ArgCountError
impl Send for ArgCountError
impl Sync for ArgCountError
impl Unpin for ArgCountError
impl UnwindSafe for ArgCountError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)