Skip to main content

RHASH_EMPTY_P

Function RHASH_EMPTY_P 

Source
pub unsafe fn RHASH_EMPTY_P(obj: VALUE) -> bool
Expand description

Check if hash is empty (akin to RHASH_EMPTY_P).

@param[in] obj A Ruby Hash object. @retval true The hash has no entries. @retval false The hash has at least one entry.

ยงSafety

This function is unsafe because it dereferences a raw pointer to access underlying Ruby data. The caller must ensure the VALUE is a valid Hash.