pub unsafe extern "C" fn rb_check_to_integer(
val: VALUE,
mid: *const c_char,
) -> VALUEExpand description
Identical to rb_check_convert_type, except the return value type is fixed
to ::rb_cInteger.
§@param[in] val An object to convert.
@param[in] mid Conversion method (e.g. “to_ary”).
@exception rb_eTypeError The mid does not generate an integer.
@retval RUBY_Qnil No conversion defined.
@retval otherwise An instance of ::rb_cInteger.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3