SPECIAL_CONST_P

Function SPECIAL_CONST_P 

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

Checks if the given object is of enum ::ruby_special_consts.

@param[in] obj An arbitrary ruby object. @retval true obj is a special constant. @retval false Anything else.

ยงExample

use rb_sys::special_consts::*;

assert!(SPECIAL_CONST_P(Qnil));
assert!(SPECIAL_CONST_P(Qtrue));
assert!(SPECIAL_CONST_P(Qfalse));