pub unsafe extern "C" fn RB_TYPE_P(
    obj: VALUE,
    t: ruby_value_type
) -> bool
Expand description

Queries if the given object is of given type.

@param[in] obj An object. @param[in] t A type. @retval true obj is of type t. @retval false Otherwise.

@internal

This function is a super-duper hot path. Optimised targeting modern C compilers and x86_64 architecture.