pub unsafe fn NUM2LONG(obj: VALUE) -> c_longExpand description
Convert Ruby Integer to long (akin to NUM2LONG).
Converts any Ruby Integer (Fixnum or Bignum) to a C long. May raise a RangeError exception if the value is out of range.
ยงSafety
objmust be a valid Integer VALUE- May call into Ruby runtime and potentially raise exceptions
- May trigger garbage collection