Function rb_struct_define_under

Source
pub unsafe extern "C" fn rb_struct_define_under(
    space: VALUE,
    name: *const c_char,
    ...
) -> VALUE
Expand description

Identical to rb_struct_define, except it defines the class under the specified namespace instead of global toplevel.

§@param[out] space Namespace that the defining class shall reside. @param[in] name Name of the class. @param[in] … Arbitrary number of const char*, terminated by zero. Each of which are the name of fields. @exception rb_eNameError name is not a constant name. @exception rb_eTypeError name is already taken. @exception rb_eArgError Duplicated field name. @return The defined class. @post name is a constant under space. @note In contrast to rb_struct_define, it doesn’t make any sense to pass a null pointer to this function.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3