/// Check that arguments matches expected or raise the appropriate error.
Check that arguments matches expected or raise the appropriate error.
Check that arguments matches expected or raise the appropriate error .
fn check_args(args: usize, expected: usize) -> Result<(), VmError> {
            if args != expected {
                return Err(VmError::from(VmErrorKind::BadArgumentCount {
                    actual: args,
                    expected,
                }));
            }
            Ok(())
        }
fn check_args ( args : usize , expected : usize ) -> Result < ( ) , VmError > { if args != expected { return Err ( VmError :: from ( VmErrorKind :: BadArgumentCount { actual : args , expected , } ) ) ; } Ok ( ( ) ) }
Check that arguments matches expected or raise the appropriate error.
Check that arguments matches expected or raise the appropriate error .
args
usize
expected
usize