Function rb_sys::macros::SPECIAL_CONST_P
source · pub fn SPECIAL_CONST_P<T: Into<VALUE>>(obj: T) -> boolExpand 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));