RB_TYPE

Function RB_TYPE 

Source
pub unsafe fn RB_TYPE(value: VALUE) -> ruby_value_type
Expand description

Identical to RB_BUILTIN_TYPE(), except it can also accept special constants.

@param[in] obj Object in question. @return The type of obj.

ยงSafety

This function is unsafe because it could dereference a raw pointer when attemping to access the underlying [RBasic] struct.