rbspy_ruby_structs/
ruby_2_4_8.rs

1/* automatically generated by rust-bindgen 0.71.1 */
2
3#[repr(C)]
4#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
5pub struct __BindgenBitfieldUnit<Storage> {
6    storage: Storage,
7}
8impl<Storage> __BindgenBitfieldUnit<Storage> {
9    #[inline]
10    pub const fn new(storage: Storage) -> Self {
11        Self { storage }
12    }
13}
14impl<Storage> __BindgenBitfieldUnit<Storage>
15where
16    Storage: AsRef<[u8]> + AsMut<[u8]>,
17{
18    #[inline]
19    fn extract_bit(byte: u8, index: usize) -> bool {
20        let bit_index = if cfg!(target_endian = "big") {
21            7 - (index % 8)
22        } else {
23            index % 8
24        };
25        let mask = 1 << bit_index;
26        byte & mask == mask
27    }
28    #[inline]
29    pub fn get_bit(&self, index: usize) -> bool {
30        debug_assert!(index / 8 < self.storage.as_ref().len());
31        let byte_index = index / 8;
32        let byte = self.storage.as_ref()[byte_index];
33        Self::extract_bit(byte, index)
34    }
35    #[inline]
36    pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
37        debug_assert!(index / 8 < core::mem::size_of::<Storage>());
38        let byte_index = index / 8;
39        let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize);
40        Self::extract_bit(byte, index)
41    }
42    #[inline]
43    fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
44        let bit_index = if cfg!(target_endian = "big") {
45            7 - (index % 8)
46        } else {
47            index % 8
48        };
49        let mask = 1 << bit_index;
50        if val {
51            byte | mask
52        } else {
53            byte & !mask
54        }
55    }
56    #[inline]
57    pub fn set_bit(&mut self, index: usize, val: bool) {
58        debug_assert!(index / 8 < self.storage.as_ref().len());
59        let byte_index = index / 8;
60        let byte = &mut self.storage.as_mut()[byte_index];
61        *byte = Self::change_bit(*byte, index, val);
62    }
63    #[inline]
64    pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
65        debug_assert!(index / 8 < core::mem::size_of::<Storage>());
66        let byte_index = index / 8;
67        let byte =
68            (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize);
69        *byte = Self::change_bit(*byte, index, val);
70    }
71    #[inline]
72    pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
73        debug_assert!(bit_width <= 64);
74        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
75        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
76        let mut val = 0;
77        for i in 0..(bit_width as usize) {
78            if self.get_bit(i + bit_offset) {
79                let index = if cfg!(target_endian = "big") {
80                    bit_width as usize - 1 - i
81                } else {
82                    i
83                };
84                val |= 1 << index;
85            }
86        }
87        val
88    }
89    #[inline]
90    pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
91        debug_assert!(bit_width <= 64);
92        debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
93        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
94        let mut val = 0;
95        for i in 0..(bit_width as usize) {
96            if Self::raw_get_bit(this, i + bit_offset) {
97                let index = if cfg!(target_endian = "big") {
98                    bit_width as usize - 1 - i
99                } else {
100                    i
101                };
102                val |= 1 << index;
103            }
104        }
105        val
106    }
107    #[inline]
108    pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
109        debug_assert!(bit_width <= 64);
110        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
111        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
112        for i in 0..(bit_width as usize) {
113            let mask = 1 << i;
114            let val_bit_is_set = val & mask == mask;
115            let index = if cfg!(target_endian = "big") {
116                bit_width as usize - 1 - i
117            } else {
118                i
119            };
120            self.set_bit(index + bit_offset, val_bit_is_set);
121        }
122    }
123    #[inline]
124    pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
125        debug_assert!(bit_width <= 64);
126        debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
127        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
128        for i in 0..(bit_width as usize) {
129            let mask = 1 << i;
130            let val_bit_is_set = val & mask == mask;
131            let index = if cfg!(target_endian = "big") {
132                bit_width as usize - 1 - i
133            } else {
134                i
135            };
136            Self::raw_set_bit(this, index + bit_offset, val_bit_is_set);
137        }
138    }
139}
140pub type __clockid_t = ::std::os::raw::c_int;
141pub type clockid_t = __clockid_t;
142#[repr(C)]
143#[derive(Debug, Copy, Clone)]
144pub struct __sigset_t {
145    pub __val: [usize; 16usize],
146}
147#[repr(C)]
148#[derive(Debug, Copy, Clone)]
149pub struct __pthread_internal_list {
150    pub __prev: *mut __pthread_internal_list,
151    pub __next: *mut __pthread_internal_list,
152}
153pub type __pthread_list_t = __pthread_internal_list;
154#[repr(C)]
155#[derive(Debug, Copy, Clone)]
156pub struct __pthread_mutex_s {
157    pub __lock: ::std::os::raw::c_int,
158    pub __count: ::std::os::raw::c_uint,
159    pub __owner: ::std::os::raw::c_int,
160    pub __nusers: ::std::os::raw::c_uint,
161    pub __kind: ::std::os::raw::c_int,
162    pub __spins: ::std::os::raw::c_short,
163    pub __elision: ::std::os::raw::c_short,
164    pub __list: __pthread_list_t,
165}
166#[repr(C)]
167#[derive(Copy, Clone)]
168pub struct __pthread_cond_s {
169    pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
170    pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
171    pub __g_refs: [::std::os::raw::c_uint; 2usize],
172    pub __g_size: [::std::os::raw::c_uint; 2usize],
173    pub __g1_orig_size: ::std::os::raw::c_uint,
174    pub __wrefs: ::std::os::raw::c_uint,
175    pub __g_signals: [::std::os::raw::c_uint; 2usize],
176}
177#[repr(C)]
178#[derive(Copy, Clone)]
179pub union __pthread_cond_s__bindgen_ty_1 {
180    pub __wseq: ::std::os::raw::c_ulonglong,
181    pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
182}
183#[repr(C)]
184#[derive(Debug, Copy, Clone)]
185pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
186    pub __low: ::std::os::raw::c_uint,
187    pub __high: ::std::os::raw::c_uint,
188}
189impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_1 {
190    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
191        write!(f, "__pthread_cond_s__bindgen_ty_1 {{ union }}")
192    }
193}
194#[repr(C)]
195#[derive(Copy, Clone)]
196pub union __pthread_cond_s__bindgen_ty_2 {
197    pub __g1_start: ::std::os::raw::c_ulonglong,
198    pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
199}
200#[repr(C)]
201#[derive(Debug, Copy, Clone)]
202pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
203    pub __low: ::std::os::raw::c_uint,
204    pub __high: ::std::os::raw::c_uint,
205}
206impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_2 {
207    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
208        write!(f, "__pthread_cond_s__bindgen_ty_2 {{ union }}")
209    }
210}
211impl ::std::fmt::Debug for __pthread_cond_s {
212    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
213        write ! (f , "__pthread_cond_s {{ __bindgen_anon_1: {:?}, __bindgen_anon_2: {:?}, __g_refs: {:?}, __g_size: {:?}, __g1_orig_size: {:?}, __wrefs: {:?}, __g_signals: {:?} }}" , self . __bindgen_anon_1 , self . __bindgen_anon_2 , self . __g_refs , self . __g_size , self . __g1_orig_size , self . __wrefs , self . __g_signals)
214    }
215}
216pub type pthread_t = usize;
217#[repr(C)]
218#[derive(Copy, Clone)]
219pub union pthread_mutex_t {
220    pub __data: __pthread_mutex_s,
221    pub __size: [::std::os::raw::c_char; 40usize],
222    pub __align: ::std::os::raw::c_long,
223}
224impl ::std::fmt::Debug for pthread_mutex_t {
225    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
226        write!(f, "pthread_mutex_t {{ union }}")
227    }
228}
229#[repr(C)]
230#[derive(Copy, Clone)]
231pub union pthread_cond_t {
232    pub __data: __pthread_cond_s,
233    pub __size: [::std::os::raw::c_char; 48usize],
234    pub __align: ::std::os::raw::c_longlong,
235}
236impl ::std::fmt::Debug for pthread_cond_t {
237    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
238        write!(f, "pthread_cond_t {{ union }}")
239    }
240}
241pub type VALUE = usize;
242pub type ID = usize;
243pub const ruby_fl_type_RUBY_FL_WB_PROTECTED: ruby_fl_type = 32;
244pub const ruby_fl_type_RUBY_FL_PROMOTED0: ruby_fl_type = 32;
245pub const ruby_fl_type_RUBY_FL_PROMOTED1: ruby_fl_type = 64;
246pub const ruby_fl_type_RUBY_FL_PROMOTED: ruby_fl_type = 96;
247pub const ruby_fl_type_RUBY_FL_FINALIZE: ruby_fl_type = 128;
248pub const ruby_fl_type_RUBY_FL_TAINT: ruby_fl_type = 256;
249pub const ruby_fl_type_RUBY_FL_UNTRUSTED: ruby_fl_type = 256;
250pub const ruby_fl_type_RUBY_FL_EXIVAR: ruby_fl_type = 1024;
251pub const ruby_fl_type_RUBY_FL_FREEZE: ruby_fl_type = 2048;
252pub const ruby_fl_type_RUBY_FL_USHIFT: ruby_fl_type = 12;
253pub const ruby_fl_type_RUBY_FL_USER0: ruby_fl_type = 4096;
254pub const ruby_fl_type_RUBY_FL_USER1: ruby_fl_type = 8192;
255pub const ruby_fl_type_RUBY_FL_USER2: ruby_fl_type = 16384;
256pub const ruby_fl_type_RUBY_FL_USER3: ruby_fl_type = 32768;
257pub const ruby_fl_type_RUBY_FL_USER4: ruby_fl_type = 65536;
258pub const ruby_fl_type_RUBY_FL_USER5: ruby_fl_type = 131072;
259pub const ruby_fl_type_RUBY_FL_USER6: ruby_fl_type = 262144;
260pub const ruby_fl_type_RUBY_FL_USER7: ruby_fl_type = 524288;
261pub const ruby_fl_type_RUBY_FL_USER8: ruby_fl_type = 1048576;
262pub const ruby_fl_type_RUBY_FL_USER9: ruby_fl_type = 2097152;
263pub const ruby_fl_type_RUBY_FL_USER10: ruby_fl_type = 4194304;
264pub const ruby_fl_type_RUBY_FL_USER11: ruby_fl_type = 8388608;
265pub const ruby_fl_type_RUBY_FL_USER12: ruby_fl_type = 16777216;
266pub const ruby_fl_type_RUBY_FL_USER13: ruby_fl_type = 33554432;
267pub const ruby_fl_type_RUBY_FL_USER14: ruby_fl_type = 67108864;
268pub const ruby_fl_type_RUBY_FL_USER15: ruby_fl_type = 134217728;
269pub const ruby_fl_type_RUBY_FL_USER16: ruby_fl_type = 268435456;
270pub const ruby_fl_type_RUBY_FL_USER17: ruby_fl_type = 536870912;
271pub const ruby_fl_type_RUBY_FL_USER18: ruby_fl_type = 1073741824;
272pub const ruby_fl_type_RUBY_FL_USER19: ruby_fl_type = -2147483648;
273pub const ruby_fl_type_RUBY_ELTS_SHARED: ruby_fl_type = 16384;
274pub const ruby_fl_type_RUBY_FL_DUPPED: ruby_fl_type = 1311;
275pub const ruby_fl_type_RUBY_FL_SINGLETON: ruby_fl_type = 4096;
276pub type ruby_fl_type = ::std::os::raw::c_int;
277#[repr(C)]
278#[derive(Debug, Copy, Clone)]
279pub struct RBasic {
280    pub flags: VALUE,
281    pub klass: VALUE,
282}
283#[repr(C)]
284#[derive(Copy, Clone)]
285pub struct RString {
286    pub basic: RBasic,
287    pub as_: RString__bindgen_ty_1,
288}
289#[repr(C)]
290#[derive(Copy, Clone)]
291pub union RString__bindgen_ty_1 {
292    pub heap: RString__bindgen_ty_1__bindgen_ty_1,
293    pub ary: [::std::os::raw::c_char; 24usize],
294}
295#[repr(C)]
296#[derive(Copy, Clone)]
297pub struct RString__bindgen_ty_1__bindgen_ty_1 {
298    pub len: ::std::os::raw::c_long,
299    pub ptr: *mut ::std::os::raw::c_char,
300    pub aux: RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
301}
302#[repr(C)]
303#[derive(Copy, Clone)]
304pub union RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
305    pub capa: ::std::os::raw::c_long,
306    pub shared: VALUE,
307}
308impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
309    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
310        write!(
311            f,
312            "RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
313        )
314    }
315}
316impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1 {
317    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
318        write!(
319            f,
320            "RString__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, ptr: {:?}, aux: {:?} }}",
321            self.len, self.ptr, self.aux
322        )
323    }
324}
325impl ::std::fmt::Debug for RString__bindgen_ty_1 {
326    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
327        write!(f, "RString__bindgen_ty_1 {{ union }}")
328    }
329}
330impl ::std::fmt::Debug for RString {
331    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
332        write!(
333            f,
334            "RString {{ basic: {:?}, as: {:?} }}",
335            self.basic, self.as_
336        )
337    }
338}
339#[repr(C)]
340#[derive(Copy, Clone)]
341pub struct RArray {
342    pub basic: RBasic,
343    pub as_: RArray__bindgen_ty_1,
344}
345#[repr(C)]
346#[derive(Copy, Clone)]
347pub union RArray__bindgen_ty_1 {
348    pub heap: RArray__bindgen_ty_1__bindgen_ty_1,
349    pub ary: [VALUE; 3usize],
350}
351#[repr(C)]
352#[derive(Copy, Clone)]
353pub struct RArray__bindgen_ty_1__bindgen_ty_1 {
354    pub len: ::std::os::raw::c_long,
355    pub aux: RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
356    pub ptr: *const VALUE,
357}
358#[repr(C)]
359#[derive(Copy, Clone)]
360pub union RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
361    pub capa: ::std::os::raw::c_long,
362    pub shared: VALUE,
363}
364impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
365    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
366        write!(
367            f,
368            "RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
369        )
370    }
371}
372impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1 {
373    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
374        write!(
375            f,
376            "RArray__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, aux: {:?}, ptr: {:?} }}",
377            self.len, self.aux, self.ptr
378        )
379    }
380}
381impl ::std::fmt::Debug for RArray__bindgen_ty_1 {
382    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
383        write!(f, "RArray__bindgen_ty_1 {{ union }}")
384    }
385}
386impl ::std::fmt::Debug for RArray {
387    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
388        write!(
389            f,
390            "RArray {{ basic: {:?}, as: {:?} }}",
391            self.basic, self.as_
392        )
393    }
394}
395pub type st_data_t = usize;
396pub type st_index_t = st_data_t;
397#[repr(C)]
398#[derive(Debug, Copy, Clone)]
399pub struct st_hash_type {
400    pub compare: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
401    pub hash: ::std::option::Option<unsafe extern "C" fn() -> st_index_t>,
402}
403#[repr(C)]
404#[derive(Debug, Copy, Clone)]
405pub struct st_table_entry {
406    _unused: [u8; 0],
407}
408#[repr(C)]
409#[derive(Debug, Copy, Clone)]
410pub struct st_table {
411    pub entry_power: ::std::os::raw::c_uchar,
412    pub bin_power: ::std::os::raw::c_uchar,
413    pub size_ind: ::std::os::raw::c_uchar,
414    pub rebuilds_num: ::std::os::raw::c_uint,
415    pub type_: *const st_hash_type,
416    pub num_entries: st_index_t,
417    pub bins: *mut st_index_t,
418    pub entries_start: st_index_t,
419    pub entries_bound: st_index_t,
420    pub entries: *mut st_table_entry,
421}
422pub type rb_unblock_function_t =
423    ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
424pub type rb_event_flag_t = u32;
425pub const ruby_id_types_RUBY_ID_STATIC_SYM: ruby_id_types = 1;
426pub const ruby_id_types_RUBY_ID_LOCAL: ruby_id_types = 0;
427pub const ruby_id_types_RUBY_ID_INSTANCE: ruby_id_types = 2;
428pub const ruby_id_types_RUBY_ID_GLOBAL: ruby_id_types = 6;
429pub const ruby_id_types_RUBY_ID_ATTRSET: ruby_id_types = 8;
430pub const ruby_id_types_RUBY_ID_CONST: ruby_id_types = 10;
431pub const ruby_id_types_RUBY_ID_CLASS: ruby_id_types = 12;
432pub const ruby_id_types_RUBY_ID_JUNK: ruby_id_types = 14;
433pub const ruby_id_types_RUBY_ID_INTERNAL: ruby_id_types = 14;
434pub const ruby_id_types_RUBY_ID_SCOPE_SHIFT: ruby_id_types = 4;
435pub const ruby_id_types_RUBY_ID_SCOPE_MASK: ruby_id_types = 14;
436pub type ruby_id_types = ::std::os::raw::c_uint;
437pub const ruby_method_ids_idDot2: ruby_method_ids = 128;
438pub const ruby_method_ids_idDot3: ruby_method_ids = 129;
439pub const ruby_method_ids_idUPlus: ruby_method_ids = 130;
440pub const ruby_method_ids_idUMinus: ruby_method_ids = 131;
441pub const ruby_method_ids_idPow: ruby_method_ids = 132;
442pub const ruby_method_ids_idCmp: ruby_method_ids = 134;
443pub const ruby_method_ids_idPLUS: ruby_method_ids = 43;
444pub const ruby_method_ids_idMINUS: ruby_method_ids = 45;
445pub const ruby_method_ids_idMULT: ruby_method_ids = 42;
446pub const ruby_method_ids_idDIV: ruby_method_ids = 47;
447pub const ruby_method_ids_idMOD: ruby_method_ids = 37;
448pub const ruby_method_ids_idLTLT: ruby_method_ids = 135;
449pub const ruby_method_ids_idGTGT: ruby_method_ids = 136;
450pub const ruby_method_ids_idLT: ruby_method_ids = 60;
451pub const ruby_method_ids_idLE: ruby_method_ids = 137;
452pub const ruby_method_ids_idGT: ruby_method_ids = 62;
453pub const ruby_method_ids_idGE: ruby_method_ids = 138;
454pub const ruby_method_ids_idEq: ruby_method_ids = 139;
455pub const ruby_method_ids_idEqq: ruby_method_ids = 140;
456pub const ruby_method_ids_idNeq: ruby_method_ids = 141;
457pub const ruby_method_ids_idNot: ruby_method_ids = 33;
458pub const ruby_method_ids_idBackquote: ruby_method_ids = 96;
459pub const ruby_method_ids_idEqTilde: ruby_method_ids = 142;
460pub const ruby_method_ids_idNeqTilde: ruby_method_ids = 143;
461pub const ruby_method_ids_idAREF: ruby_method_ids = 144;
462pub const ruby_method_ids_idASET: ruby_method_ids = 145;
463pub const ruby_method_ids_idCOLON2: ruby_method_ids = 146;
464pub const ruby_method_ids_idANDOP: ruby_method_ids = 148;
465pub const ruby_method_ids_idOROP: ruby_method_ids = 149;
466pub const ruby_method_ids_idANDDOT: ruby_method_ids = 150;
467pub const ruby_method_ids_tPRESERVED_ID_BEGIN: ruby_method_ids = 150;
468pub const ruby_method_ids_idNULL: ruby_method_ids = 151;
469pub const ruby_method_ids_idEmptyP: ruby_method_ids = 152;
470pub const ruby_method_ids_idEqlP: ruby_method_ids = 153;
471pub const ruby_method_ids_idRespond_to: ruby_method_ids = 154;
472pub const ruby_method_ids_idRespond_to_missing: ruby_method_ids = 155;
473pub const ruby_method_ids_idIFUNC: ruby_method_ids = 156;
474pub const ruby_method_ids_idCFUNC: ruby_method_ids = 157;
475pub const ruby_method_ids_id_core_set_method_alias: ruby_method_ids = 158;
476pub const ruby_method_ids_id_core_set_variable_alias: ruby_method_ids = 159;
477pub const ruby_method_ids_id_core_undef_method: ruby_method_ids = 160;
478pub const ruby_method_ids_id_core_define_method: ruby_method_ids = 161;
479pub const ruby_method_ids_id_core_define_singleton_method: ruby_method_ids = 162;
480pub const ruby_method_ids_id_core_set_postexe: ruby_method_ids = 163;
481pub const ruby_method_ids_id_core_hash_from_ary: ruby_method_ids = 164;
482pub const ruby_method_ids_id_core_hash_merge_ary: ruby_method_ids = 165;
483pub const ruby_method_ids_id_core_hash_merge_ptr: ruby_method_ids = 166;
484pub const ruby_method_ids_id_core_hash_merge_kwd: ruby_method_ids = 167;
485pub const ruby_method_ids_id_debug_created_info: ruby_method_ids = 168;
486pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 169;
487pub const ruby_method_ids_tMax: ruby_method_ids = 170;
488pub const ruby_method_ids_tMin: ruby_method_ids = 171;
489pub const ruby_method_ids_tFreeze: ruby_method_ids = 172;
490pub const ruby_method_ids_tInspect: ruby_method_ids = 173;
491pub const ruby_method_ids_tIntern: ruby_method_ids = 174;
492pub const ruby_method_ids_tObject_id: ruby_method_ids = 175;
493pub const ruby_method_ids_tConst_missing: ruby_method_ids = 176;
494pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 177;
495pub const ruby_method_ids_tMethod_added: ruby_method_ids = 178;
496pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 179;
497pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 180;
498pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 181;
499pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 182;
500pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 183;
501pub const ruby_method_ids_tLength: ruby_method_ids = 184;
502pub const ruby_method_ids_tSize: ruby_method_ids = 185;
503pub const ruby_method_ids_tGets: ruby_method_ids = 186;
504pub const ruby_method_ids_tSucc: ruby_method_ids = 187;
505pub const ruby_method_ids_tEach: ruby_method_ids = 188;
506pub const ruby_method_ids_tProc: ruby_method_ids = 189;
507pub const ruby_method_ids_tLambda: ruby_method_ids = 190;
508pub const ruby_method_ids_tSend: ruby_method_ids = 191;
509pub const ruby_method_ids_t__send__: ruby_method_ids = 192;
510pub const ruby_method_ids_t__attached__: ruby_method_ids = 193;
511pub const ruby_method_ids_tInitialize: ruby_method_ids = 194;
512pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 195;
513pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 196;
514pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 197;
515pub const ruby_method_ids_tTo_int: ruby_method_ids = 198;
516pub const ruby_method_ids_tTo_ary: ruby_method_ids = 199;
517pub const ruby_method_ids_tTo_str: ruby_method_ids = 200;
518pub const ruby_method_ids_tTo_sym: ruby_method_ids = 201;
519pub const ruby_method_ids_tTo_hash: ruby_method_ids = 202;
520pub const ruby_method_ids_tTo_proc: ruby_method_ids = 203;
521pub const ruby_method_ids_tTo_io: ruby_method_ids = 204;
522pub const ruby_method_ids_tTo_a: ruby_method_ids = 205;
523pub const ruby_method_ids_tTo_s: ruby_method_ids = 206;
524pub const ruby_method_ids_tTo_i: ruby_method_ids = 207;
525pub const ruby_method_ids_tBt: ruby_method_ids = 208;
526pub const ruby_method_ids_tBt_locations: ruby_method_ids = 209;
527pub const ruby_method_ids_tCall: ruby_method_ids = 210;
528pub const ruby_method_ids_tMesg: ruby_method_ids = 211;
529pub const ruby_method_ids_tException: ruby_method_ids = 212;
530pub const ruby_method_ids_tUScore: ruby_method_ids = 213;
531pub const ruby_method_ids_tLASTLINE: ruby_method_ids = 214;
532pub const ruby_method_ids_tBACKREF: ruby_method_ids = 215;
533pub const ruby_method_ids_tNEXT_ID: ruby_method_ids = 216;
534pub const ruby_method_ids_idMax: ruby_method_ids = 2721;
535pub const ruby_method_ids_idMin: ruby_method_ids = 2737;
536pub const ruby_method_ids_idFreeze: ruby_method_ids = 2753;
537pub const ruby_method_ids_idInspect: ruby_method_ids = 2769;
538pub const ruby_method_ids_idIntern: ruby_method_ids = 2785;
539pub const ruby_method_ids_idObject_id: ruby_method_ids = 2801;
540pub const ruby_method_ids_idConst_missing: ruby_method_ids = 2817;
541pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 2833;
542pub const ruby_method_ids_idMethod_added: ruby_method_ids = 2849;
543pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 2865;
544pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 2881;
545pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 2897;
546pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 2913;
547pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 2929;
548pub const ruby_method_ids_idLength: ruby_method_ids = 2945;
549pub const ruby_method_ids_idSize: ruby_method_ids = 2961;
550pub const ruby_method_ids_idGets: ruby_method_ids = 2977;
551pub const ruby_method_ids_idSucc: ruby_method_ids = 2993;
552pub const ruby_method_ids_idEach: ruby_method_ids = 3009;
553pub const ruby_method_ids_idProc: ruby_method_ids = 3025;
554pub const ruby_method_ids_idLambda: ruby_method_ids = 3041;
555pub const ruby_method_ids_idSend: ruby_method_ids = 3057;
556pub const ruby_method_ids_id__send__: ruby_method_ids = 3073;
557pub const ruby_method_ids_id__attached__: ruby_method_ids = 3089;
558pub const ruby_method_ids_idInitialize: ruby_method_ids = 3105;
559pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 3121;
560pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 3137;
561pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 3153;
562pub const ruby_method_ids_idTo_int: ruby_method_ids = 3169;
563pub const ruby_method_ids_idTo_ary: ruby_method_ids = 3185;
564pub const ruby_method_ids_idTo_str: ruby_method_ids = 3201;
565pub const ruby_method_ids_idTo_sym: ruby_method_ids = 3217;
566pub const ruby_method_ids_idTo_hash: ruby_method_ids = 3233;
567pub const ruby_method_ids_idTo_proc: ruby_method_ids = 3249;
568pub const ruby_method_ids_idTo_io: ruby_method_ids = 3265;
569pub const ruby_method_ids_idTo_a: ruby_method_ids = 3281;
570pub const ruby_method_ids_idTo_s: ruby_method_ids = 3297;
571pub const ruby_method_ids_idTo_i: ruby_method_ids = 3313;
572pub const ruby_method_ids_idBt: ruby_method_ids = 3329;
573pub const ruby_method_ids_idBt_locations: ruby_method_ids = 3345;
574pub const ruby_method_ids_idCall: ruby_method_ids = 3361;
575pub const ruby_method_ids_idMesg: ruby_method_ids = 3377;
576pub const ruby_method_ids_idException: ruby_method_ids = 3393;
577pub const ruby_method_ids_idUScore: ruby_method_ids = 3409;
578pub const ruby_method_ids_idLASTLINE: ruby_method_ids = 3431;
579pub const ruby_method_ids_idBACKREF: ruby_method_ids = 3447;
580pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 168;
581pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 10;
582pub type ruby_method_ids = ::std::os::raw::c_uint;
583pub type rb_serial_t = ::std::os::raw::c_ulonglong;
584pub const imemo_type_imemo_env: imemo_type = 0;
585pub const imemo_type_imemo_cref: imemo_type = 1;
586pub const imemo_type_imemo_svar: imemo_type = 2;
587pub const imemo_type_imemo_throw_data: imemo_type = 3;
588pub const imemo_type_imemo_ifunc: imemo_type = 4;
589pub const imemo_type_imemo_memo: imemo_type = 5;
590pub const imemo_type_imemo_ment: imemo_type = 6;
591pub const imemo_type_imemo_iseq: imemo_type = 7;
592pub const imemo_type_imemo_mask: imemo_type = 7;
593pub type imemo_type = ::std::os::raw::c_uint;
594#[repr(C)]
595#[derive(Debug, Copy, Clone)]
596pub struct vm_svar {
597    pub flags: VALUE,
598    pub cref_or_me: VALUE,
599    pub lastline: VALUE,
600    pub backref: VALUE,
601    pub others: VALUE,
602}
603pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
604pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
605pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
606pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
607pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
608pub type rb_method_visibility_t = ::std::os::raw::c_uint;
609#[repr(C)]
610#[repr(align(4))]
611#[derive(Debug, Copy, Clone)]
612pub struct rb_scope_visi_struct {
613    pub _bitfield_align_1: [u8; 0],
614    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
615    pub __bindgen_padding_0: [u8; 3usize],
616}
617impl rb_scope_visi_struct {
618    #[inline]
619    pub fn method_visi(&self) -> rb_method_visibility_t {
620        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) }
621    }
622    #[inline]
623    pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
624        unsafe {
625            let val: u32 = ::std::mem::transmute(val);
626            self._bitfield_1.set(0usize, 3u8, val as u64)
627        }
628    }
629    #[inline]
630    pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
631        unsafe {
632            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
633                ::std::ptr::addr_of!((*this)._bitfield_1),
634                0usize,
635                3u8,
636            ) as u32)
637        }
638    }
639    #[inline]
640    pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
641        unsafe {
642            let val: u32 = ::std::mem::transmute(val);
643            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
644                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
645                0usize,
646                3u8,
647                val as u64,
648            )
649        }
650    }
651    #[inline]
652    pub fn module_func(&self) -> ::std::os::raw::c_uint {
653        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
654    }
655    #[inline]
656    pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
657        unsafe {
658            let val: u32 = ::std::mem::transmute(val);
659            self._bitfield_1.set(3usize, 1u8, val as u64)
660        }
661    }
662    #[inline]
663    pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
664        unsafe {
665            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
666                ::std::ptr::addr_of!((*this)._bitfield_1),
667                3usize,
668                1u8,
669            ) as u32)
670        }
671    }
672    #[inline]
673    pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
674        unsafe {
675            let val: u32 = ::std::mem::transmute(val);
676            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
677                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
678                3usize,
679                1u8,
680                val as u64,
681            )
682        }
683    }
684    #[inline]
685    pub fn new_bitfield_1(
686        method_visi: rb_method_visibility_t,
687        module_func: ::std::os::raw::c_uint,
688    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
689        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
690        __bindgen_bitfield_unit.set(0usize, 3u8, {
691            let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
692            method_visi as u64
693        });
694        __bindgen_bitfield_unit.set(3usize, 1u8, {
695            let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
696            module_func as u64
697        });
698        __bindgen_bitfield_unit
699    }
700}
701pub type rb_scope_visibility_t = rb_scope_visi_struct;
702#[repr(C)]
703#[derive(Debug, Copy, Clone)]
704pub struct rb_cref_struct {
705    pub flags: VALUE,
706    pub refinements: VALUE,
707    pub klass: VALUE,
708    pub next: *mut rb_cref_struct,
709    pub scope_visi: rb_scope_visibility_t,
710}
711pub type rb_cref_t = rb_cref_struct;
712#[repr(C)]
713#[derive(Debug, Copy, Clone)]
714pub struct rb_method_entry_struct {
715    pub flags: VALUE,
716    pub defined_class: VALUE,
717    pub def: *mut rb_method_definition_struct,
718    pub called_id: ID,
719    pub owner: VALUE,
720}
721#[repr(C)]
722#[derive(Debug, Copy, Clone)]
723pub struct rb_callable_method_entry_struct {
724    pub flags: VALUE,
725    pub defined_class: VALUE,
726    pub def: *mut rb_method_definition_struct,
727    pub called_id: ID,
728    pub owner: VALUE,
729}
730pub type rb_callable_method_entry_t = rb_callable_method_entry_struct;
731pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
732pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
733pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
734pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
735pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
736pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
737pub const rb_method_type_t_VM_METHOD_TYPE_ALIAS: rb_method_type_t = 6;
738pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 7;
739pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 8;
740pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 9;
741pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 10;
742pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 11;
743pub type rb_method_type_t = ::std::os::raw::c_uint;
744pub type rb_iseq_t = rb_iseq_struct;
745#[repr(C)]
746#[derive(Debug, Copy, Clone)]
747pub struct rb_method_iseq_struct {
748    pub iseqptr: *const rb_iseq_t,
749    pub cref: *mut rb_cref_t,
750}
751pub type rb_method_iseq_t = rb_method_iseq_struct;
752#[repr(C)]
753#[derive(Debug, Copy, Clone)]
754pub struct rb_method_cfunc_struct {
755    pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
756    pub invoker: ::std::option::Option<
757        unsafe extern "C" fn(
758            func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
759            recv: VALUE,
760            argc: ::std::os::raw::c_int,
761            argv: *const VALUE,
762        ) -> VALUE,
763    >,
764    pub argc: ::std::os::raw::c_int,
765}
766pub type rb_method_cfunc_t = rb_method_cfunc_struct;
767#[repr(C)]
768#[derive(Debug, Copy, Clone)]
769pub struct rb_method_attr_struct {
770    pub id: ID,
771    pub location: VALUE,
772}
773pub type rb_method_attr_t = rb_method_attr_struct;
774#[repr(C)]
775#[derive(Debug, Copy, Clone)]
776pub struct rb_method_alias_struct {
777    pub original_me: *const rb_method_entry_struct,
778}
779pub type rb_method_alias_t = rb_method_alias_struct;
780#[repr(C)]
781#[derive(Debug, Copy, Clone)]
782pub struct rb_method_refined_struct {
783    pub orig_me: *const rb_method_entry_struct,
784    pub owner: VALUE,
785}
786pub type rb_method_refined_t = rb_method_refined_struct;
787#[repr(C)]
788#[derive(Copy, Clone)]
789pub struct rb_method_definition_struct {
790    pub _bitfield_align_1: [u32; 0],
791    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 12usize]>,
792    pub body: rb_method_definition_struct__bindgen_ty_1,
793    pub original_id: ID,
794}
795#[repr(C)]
796#[derive(Copy, Clone)]
797pub union rb_method_definition_struct__bindgen_ty_1 {
798    pub iseq: rb_method_iseq_t,
799    pub cfunc: rb_method_cfunc_t,
800    pub attr: rb_method_attr_t,
801    pub alias: rb_method_alias_t,
802    pub refined: rb_method_refined_t,
803    pub proc_: VALUE,
804    pub optimize_type: rb_method_definition_struct__bindgen_ty_1_method_optimized_type,
805}
806pub const rb_method_definition_struct__bindgen_ty_1_method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND : rb_method_definition_struct__bindgen_ty_1_method_optimized_type = 0 ;
807pub const rb_method_definition_struct__bindgen_ty_1_method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL : rb_method_definition_struct__bindgen_ty_1_method_optimized_type = 1 ;
808pub const rb_method_definition_struct__bindgen_ty_1_method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX : rb_method_definition_struct__bindgen_ty_1_method_optimized_type = 2 ;
809pub type rb_method_definition_struct__bindgen_ty_1_method_optimized_type = ::std::os::raw::c_uint;
810impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
811    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
812        write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
813    }
814}
815impl rb_method_definition_struct {
816    #[inline]
817    pub fn type_(&self) -> rb_method_type_t {
818        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
819    }
820    #[inline]
821    pub fn set_type(&mut self, val: rb_method_type_t) {
822        unsafe {
823            let val: u32 = ::std::mem::transmute(val);
824            self._bitfield_1.set(0usize, 8u8, val as u64)
825        }
826    }
827    #[inline]
828    pub unsafe fn type__raw(this: *const Self) -> rb_method_type_t {
829        unsafe {
830            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
831                ::std::ptr::addr_of!((*this)._bitfield_1),
832                0usize,
833                8u8,
834            ) as u32)
835        }
836    }
837    #[inline]
838    pub unsafe fn set_type_raw(this: *mut Self, val: rb_method_type_t) {
839        unsafe {
840            let val: u32 = ::std::mem::transmute(val);
841            <__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
842                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
843                0usize,
844                8u8,
845                val as u64,
846            )
847        }
848    }
849    #[inline]
850    pub fn alias_count(&self) -> ::std::os::raw::c_int {
851        unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 28u8) as u32) }
852    }
853    #[inline]
854    pub fn set_alias_count(&mut self, val: ::std::os::raw::c_int) {
855        unsafe {
856            let val: u32 = ::std::mem::transmute(val);
857            self._bitfield_1.set(32usize, 28u8, val as u64)
858        }
859    }
860    #[inline]
861    pub unsafe fn alias_count_raw(this: *const Self) -> ::std::os::raw::c_int {
862        unsafe {
863            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
864                ::std::ptr::addr_of!((*this)._bitfield_1),
865                32usize,
866                28u8,
867            ) as u32)
868        }
869    }
870    #[inline]
871    pub unsafe fn set_alias_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
872        unsafe {
873            let val: u32 = ::std::mem::transmute(val);
874            <__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
875                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
876                32usize,
877                28u8,
878                val as u64,
879            )
880        }
881    }
882    #[inline]
883    pub fn complemented_count(&self) -> ::std::os::raw::c_int {
884        unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 28u8) as u32) }
885    }
886    #[inline]
887    pub fn set_complemented_count(&mut self, val: ::std::os::raw::c_int) {
888        unsafe {
889            let val: u32 = ::std::mem::transmute(val);
890            self._bitfield_1.set(64usize, 28u8, val as u64)
891        }
892    }
893    #[inline]
894    pub unsafe fn complemented_count_raw(this: *const Self) -> ::std::os::raw::c_int {
895        unsafe {
896            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
897                ::std::ptr::addr_of!((*this)._bitfield_1),
898                64usize,
899                28u8,
900            ) as u32)
901        }
902    }
903    #[inline]
904    pub unsafe fn set_complemented_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
905        unsafe {
906            let val: u32 = ::std::mem::transmute(val);
907            <__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
908                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
909                64usize,
910                28u8,
911                val as u64,
912            )
913        }
914    }
915    #[inline]
916    pub fn new_bitfield_1(
917        type_: rb_method_type_t,
918        alias_count: ::std::os::raw::c_int,
919        complemented_count: ::std::os::raw::c_int,
920    ) -> __BindgenBitfieldUnit<[u8; 12usize]> {
921        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 12usize]> = Default::default();
922        __bindgen_bitfield_unit.set(0usize, 8u8, {
923            let type_: u32 = unsafe { ::std::mem::transmute(type_) };
924            type_ as u64
925        });
926        __bindgen_bitfield_unit.set(32usize, 28u8, {
927            let alias_count: u32 = unsafe { ::std::mem::transmute(alias_count) };
928            alias_count as u64
929        });
930        __bindgen_bitfield_unit.set(64usize, 28u8, {
931            let complemented_count: u32 = unsafe { ::std::mem::transmute(complemented_count) };
932            complemented_count as u64
933        });
934        __bindgen_bitfield_unit
935    }
936}
937pub type rb_atomic_t = ::std::os::raw::c_uint;
938#[repr(C)]
939#[derive(Debug, Copy, Clone)]
940pub struct list_node {
941    pub next: *mut list_node,
942    pub prev: *mut list_node,
943}
944#[repr(C)]
945#[derive(Debug, Copy, Clone)]
946pub struct list_head {
947    pub n: list_node,
948}
949pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
950pub type rb_nativethread_id_t = pthread_t;
951pub type rb_nativethread_lock_t = pthread_mutex_t;
952#[repr(C)]
953#[derive(Copy, Clone)]
954pub struct rb_thread_cond_struct {
955    pub cond: pthread_cond_t,
956    pub clockid: clockid_t,
957}
958impl ::std::fmt::Debug for rb_thread_cond_struct {
959    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
960        write!(
961            f,
962            "rb_thread_cond_struct {{ cond: {:?}, clockid: {:?} }}",
963            self.cond, self.clockid
964        )
965    }
966}
967pub type rb_nativethread_cond_t = rb_thread_cond_struct;
968#[repr(C)]
969#[derive(Copy, Clone)]
970pub struct native_thread_data_struct {
971    pub ubf_list: list_node,
972    pub sleep_cond: rb_nativethread_cond_t,
973}
974impl ::std::fmt::Debug for native_thread_data_struct {
975    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
976        write!(
977            f,
978            "native_thread_data_struct {{ ubf_list: {:?}, sleep_cond: {:?} }}",
979            self.ubf_list, self.sleep_cond
980        )
981    }
982}
983pub type native_thread_data_t = native_thread_data_struct;
984#[repr(C)]
985#[derive(Copy, Clone)]
986pub struct rb_global_vm_lock_struct {
987    pub acquired: ::std::os::raw::c_ulong,
988    pub lock: rb_nativethread_lock_t,
989    pub waiting: ::std::os::raw::c_ulong,
990    pub cond: rb_nativethread_cond_t,
991    pub switch_cond: rb_nativethread_cond_t,
992    pub switch_wait_cond: rb_nativethread_cond_t,
993    pub need_yield: ::std::os::raw::c_int,
994    pub wait_yield: ::std::os::raw::c_int,
995}
996impl ::std::fmt::Debug for rb_global_vm_lock_struct {
997    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
998        write ! (f , "rb_global_vm_lock_struct {{ acquired: {:?}, lock: {:?}, waiting: {:?}, cond: {:?}, switch_cond: {:?}, switch_wait_cond: {:?}, need_yield: {:?}, wait_yield: {:?} }}" , self . acquired , self . lock , self . waiting , self . cond , self . switch_cond , self . switch_wait_cond , self . need_yield , self . wait_yield)
999    }
1000}
1001pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
1002#[repr(C)]
1003#[derive(Debug, Copy, Clone)]
1004pub struct __jmp_buf_tag {
1005    pub __jmpbuf: __jmp_buf,
1006    pub __mask_was_saved: ::std::os::raw::c_int,
1007    pub __saved_mask: __sigset_t,
1008}
1009pub type jmp_buf = [__jmp_buf_tag; 1usize];
1010pub type rb_compile_option_t = rb_compile_option_struct;
1011#[repr(C)]
1012#[derive(Copy, Clone)]
1013pub struct iseq_inline_cache_entry {
1014    pub ic_serial: rb_serial_t,
1015    pub ic_cref: *const rb_cref_t,
1016    pub ic_value: iseq_inline_cache_entry__bindgen_ty_1,
1017}
1018#[repr(C)]
1019#[derive(Copy, Clone)]
1020pub union iseq_inline_cache_entry__bindgen_ty_1 {
1021    pub index: usize,
1022    pub value: VALUE,
1023}
1024impl ::std::fmt::Debug for iseq_inline_cache_entry__bindgen_ty_1 {
1025    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1026        write!(f, "iseq_inline_cache_entry__bindgen_ty_1 {{ union }}")
1027    }
1028}
1029impl ::std::fmt::Debug for iseq_inline_cache_entry {
1030    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1031        write!(
1032            f,
1033            "iseq_inline_cache_entry {{ ic_serial: {:?}, ic_cref: {:?}, ic_value: {:?} }}",
1034            self.ic_serial, self.ic_cref, self.ic_value
1035        )
1036    }
1037}
1038#[repr(C)]
1039#[derive(Copy, Clone)]
1040pub union iseq_inline_storage_entry {
1041    pub once: iseq_inline_storage_entry__bindgen_ty_1,
1042    pub cache: iseq_inline_cache_entry,
1043}
1044#[repr(C)]
1045#[derive(Debug, Copy, Clone)]
1046pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1047    pub running_thread: *mut rb_thread_struct,
1048    pub value: VALUE,
1049}
1050impl ::std::fmt::Debug for iseq_inline_storage_entry {
1051    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1052        write!(f, "iseq_inline_storage_entry {{ union }}")
1053    }
1054}
1055pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
1056pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
1057pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
1058pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
1059pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
1060pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
1061pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
1062pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
1063pub type method_missing_reason = ::std::os::raw::c_uint;
1064#[repr(C)]
1065#[derive(Debug, Copy, Clone)]
1066pub struct rb_call_info {
1067    pub mid: ID,
1068    pub flag: ::std::os::raw::c_uint,
1069    pub orig_argc: ::std::os::raw::c_int,
1070}
1071#[repr(C)]
1072#[derive(Debug, Copy, Clone)]
1073pub struct rb_calling_info {
1074    pub block_handler: VALUE,
1075    pub recv: VALUE,
1076    pub argc: ::std::os::raw::c_int,
1077}
1078pub type vm_call_handler = ::std::option::Option<
1079    unsafe extern "C" fn(
1080        th: *mut rb_thread_struct,
1081        cfp: *mut rb_control_frame_struct,
1082        calling: *mut rb_calling_info,
1083        ci: *const rb_call_info,
1084        cc: *mut rb_call_cache,
1085    ) -> VALUE,
1086>;
1087#[repr(C)]
1088#[derive(Copy, Clone)]
1089pub struct rb_call_cache {
1090    pub method_state: rb_serial_t,
1091    pub class_serial: rb_serial_t,
1092    pub me: *const rb_callable_method_entry_t,
1093    pub call: vm_call_handler,
1094    pub aux: rb_call_cache__bindgen_ty_1,
1095}
1096#[repr(C)]
1097#[derive(Copy, Clone)]
1098pub union rb_call_cache__bindgen_ty_1 {
1099    pub index: ::std::os::raw::c_uint,
1100    pub method_missing_reason: method_missing_reason,
1101    pub inc_sp: ::std::os::raw::c_int,
1102}
1103impl ::std::fmt::Debug for rb_call_cache__bindgen_ty_1 {
1104    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1105        write!(f, "rb_call_cache__bindgen_ty_1 {{ union }}")
1106    }
1107}
1108impl ::std::fmt::Debug for rb_call_cache {
1109    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1110        write ! (f , "rb_call_cache {{ method_state: {:?}, class_serial: {:?}, me: {:?}, call: {:?}, aux: {:?} }}" , self . method_state , self . class_serial , self . me , self . call , self . aux)
1111    }
1112}
1113#[repr(C)]
1114#[derive(Debug, Copy, Clone)]
1115pub struct rb_iseq_location_struct {
1116    pub path: VALUE,
1117    pub absolute_path: VALUE,
1118    pub base_label: VALUE,
1119    pub label: VALUE,
1120    pub first_lineno: VALUE,
1121}
1122pub type rb_iseq_location_t = rb_iseq_location_struct;
1123#[repr(C)]
1124#[derive(Debug, Copy, Clone)]
1125pub struct rb_iseq_constant_body {
1126    pub type_: rb_iseq_constant_body_iseq_type,
1127    pub iseq_size: ::std::os::raw::c_uint,
1128    pub iseq_encoded: *const VALUE,
1129    pub param: rb_iseq_constant_body__bindgen_ty_1,
1130    pub location: rb_iseq_location_t,
1131    pub line_info_table: *const iseq_line_info_entry,
1132    pub local_table: *const ID,
1133    pub catch_table: *const iseq_catch_table,
1134    pub parent_iseq: *const rb_iseq_struct,
1135    pub local_iseq: *mut rb_iseq_struct,
1136    pub is_entries: *mut iseq_inline_storage_entry,
1137    pub ci_entries: *mut rb_call_info,
1138    pub cc_entries: *mut rb_call_cache,
1139    pub mark_ary: VALUE,
1140    pub local_table_size: ::std::os::raw::c_uint,
1141    pub is_size: ::std::os::raw::c_uint,
1142    pub ci_size: ::std::os::raw::c_uint,
1143    pub ci_kw_size: ::std::os::raw::c_uint,
1144    pub line_info_size: ::std::os::raw::c_uint,
1145    pub stack_max: ::std::os::raw::c_uint,
1146}
1147pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_TOP: rb_iseq_constant_body_iseq_type = 0;
1148pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_constant_body_iseq_type = 1;
1149pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_constant_body_iseq_type = 2;
1150pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_constant_body_iseq_type = 3;
1151pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_constant_body_iseq_type = 4;
1152pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_constant_body_iseq_type = 5;
1153pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_constant_body_iseq_type = 6;
1154pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_constant_body_iseq_type = 7;
1155pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_DEFINED_GUARD: rb_iseq_constant_body_iseq_type =
1156    8;
1157pub type rb_iseq_constant_body_iseq_type = ::std::os::raw::c_uint;
1158#[repr(C)]
1159#[derive(Debug, Copy, Clone)]
1160pub struct rb_iseq_constant_body__bindgen_ty_1 {
1161    pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1162    pub size: ::std::os::raw::c_uint,
1163    pub lead_num: ::std::os::raw::c_int,
1164    pub opt_num: ::std::os::raw::c_int,
1165    pub rest_start: ::std::os::raw::c_int,
1166    pub post_start: ::std::os::raw::c_int,
1167    pub post_num: ::std::os::raw::c_int,
1168    pub block_start: ::std::os::raw::c_int,
1169    pub opt_table: *const VALUE,
1170    pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1171}
1172#[repr(C)]
1173#[repr(align(4))]
1174#[derive(Debug, Copy, Clone)]
1175pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1176    pub _bitfield_align_1: [u8; 0],
1177    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1178    pub __bindgen_padding_0: [u8; 3usize],
1179}
1180impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1181    #[inline]
1182    pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1183        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1184    }
1185    #[inline]
1186    pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1187        unsafe {
1188            let val: u32 = ::std::mem::transmute(val);
1189            self._bitfield_1.set(0usize, 1u8, val as u64)
1190        }
1191    }
1192    #[inline]
1193    pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1194        unsafe {
1195            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1196                ::std::ptr::addr_of!((*this)._bitfield_1),
1197                0usize,
1198                1u8,
1199            ) as u32)
1200        }
1201    }
1202    #[inline]
1203    pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1204        unsafe {
1205            let val: u32 = ::std::mem::transmute(val);
1206            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1207                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1208                0usize,
1209                1u8,
1210                val as u64,
1211            )
1212        }
1213    }
1214    #[inline]
1215    pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1216        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1217    }
1218    #[inline]
1219    pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1220        unsafe {
1221            let val: u32 = ::std::mem::transmute(val);
1222            self._bitfield_1.set(1usize, 1u8, val as u64)
1223        }
1224    }
1225    #[inline]
1226    pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1227        unsafe {
1228            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1229                ::std::ptr::addr_of!((*this)._bitfield_1),
1230                1usize,
1231                1u8,
1232            ) as u32)
1233        }
1234    }
1235    #[inline]
1236    pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1237        unsafe {
1238            let val: u32 = ::std::mem::transmute(val);
1239            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1240                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1241                1usize,
1242                1u8,
1243                val as u64,
1244            )
1245        }
1246    }
1247    #[inline]
1248    pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1249        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1250    }
1251    #[inline]
1252    pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1253        unsafe {
1254            let val: u32 = ::std::mem::transmute(val);
1255            self._bitfield_1.set(2usize, 1u8, val as u64)
1256        }
1257    }
1258    #[inline]
1259    pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1260        unsafe {
1261            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1262                ::std::ptr::addr_of!((*this)._bitfield_1),
1263                2usize,
1264                1u8,
1265            ) as u32)
1266        }
1267    }
1268    #[inline]
1269    pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1270        unsafe {
1271            let val: u32 = ::std::mem::transmute(val);
1272            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1273                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1274                2usize,
1275                1u8,
1276                val as u64,
1277            )
1278        }
1279    }
1280    #[inline]
1281    pub fn has_post(&self) -> ::std::os::raw::c_uint {
1282        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1283    }
1284    #[inline]
1285    pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1286        unsafe {
1287            let val: u32 = ::std::mem::transmute(val);
1288            self._bitfield_1.set(3usize, 1u8, val as u64)
1289        }
1290    }
1291    #[inline]
1292    pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1293        unsafe {
1294            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1295                ::std::ptr::addr_of!((*this)._bitfield_1),
1296                3usize,
1297                1u8,
1298            ) as u32)
1299        }
1300    }
1301    #[inline]
1302    pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1303        unsafe {
1304            let val: u32 = ::std::mem::transmute(val);
1305            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1306                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1307                3usize,
1308                1u8,
1309                val as u64,
1310            )
1311        }
1312    }
1313    #[inline]
1314    pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1315        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1316    }
1317    #[inline]
1318    pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1319        unsafe {
1320            let val: u32 = ::std::mem::transmute(val);
1321            self._bitfield_1.set(4usize, 1u8, val as u64)
1322        }
1323    }
1324    #[inline]
1325    pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1326        unsafe {
1327            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1328                ::std::ptr::addr_of!((*this)._bitfield_1),
1329                4usize,
1330                1u8,
1331            ) as u32)
1332        }
1333    }
1334    #[inline]
1335    pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1336        unsafe {
1337            let val: u32 = ::std::mem::transmute(val);
1338            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1339                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1340                4usize,
1341                1u8,
1342                val as u64,
1343            )
1344        }
1345    }
1346    #[inline]
1347    pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1348        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1349    }
1350    #[inline]
1351    pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1352        unsafe {
1353            let val: u32 = ::std::mem::transmute(val);
1354            self._bitfield_1.set(5usize, 1u8, val as u64)
1355        }
1356    }
1357    #[inline]
1358    pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1359        unsafe {
1360            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1361                ::std::ptr::addr_of!((*this)._bitfield_1),
1362                5usize,
1363                1u8,
1364            ) as u32)
1365        }
1366    }
1367    #[inline]
1368    pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1369        unsafe {
1370            let val: u32 = ::std::mem::transmute(val);
1371            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1372                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1373                5usize,
1374                1u8,
1375                val as u64,
1376            )
1377        }
1378    }
1379    #[inline]
1380    pub fn has_block(&self) -> ::std::os::raw::c_uint {
1381        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1382    }
1383    #[inline]
1384    pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1385        unsafe {
1386            let val: u32 = ::std::mem::transmute(val);
1387            self._bitfield_1.set(6usize, 1u8, val as u64)
1388        }
1389    }
1390    #[inline]
1391    pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1392        unsafe {
1393            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1394                ::std::ptr::addr_of!((*this)._bitfield_1),
1395                6usize,
1396                1u8,
1397            ) as u32)
1398        }
1399    }
1400    #[inline]
1401    pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1402        unsafe {
1403            let val: u32 = ::std::mem::transmute(val);
1404            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1405                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1406                6usize,
1407                1u8,
1408                val as u64,
1409            )
1410        }
1411    }
1412    #[inline]
1413    pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1414        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1415    }
1416    #[inline]
1417    pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1418        unsafe {
1419            let val: u32 = ::std::mem::transmute(val);
1420            self._bitfield_1.set(7usize, 1u8, val as u64)
1421        }
1422    }
1423    #[inline]
1424    pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1425        unsafe {
1426            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1427                ::std::ptr::addr_of!((*this)._bitfield_1),
1428                7usize,
1429                1u8,
1430            ) as u32)
1431        }
1432    }
1433    #[inline]
1434    pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1435        unsafe {
1436            let val: u32 = ::std::mem::transmute(val);
1437            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1438                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1439                7usize,
1440                1u8,
1441                val as u64,
1442            )
1443        }
1444    }
1445    #[inline]
1446    pub fn new_bitfield_1(
1447        has_lead: ::std::os::raw::c_uint,
1448        has_opt: ::std::os::raw::c_uint,
1449        has_rest: ::std::os::raw::c_uint,
1450        has_post: ::std::os::raw::c_uint,
1451        has_kw: ::std::os::raw::c_uint,
1452        has_kwrest: ::std::os::raw::c_uint,
1453        has_block: ::std::os::raw::c_uint,
1454        ambiguous_param0: ::std::os::raw::c_uint,
1455    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1456        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1457        __bindgen_bitfield_unit.set(0usize, 1u8, {
1458            let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1459            has_lead as u64
1460        });
1461        __bindgen_bitfield_unit.set(1usize, 1u8, {
1462            let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1463            has_opt as u64
1464        });
1465        __bindgen_bitfield_unit.set(2usize, 1u8, {
1466            let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1467            has_rest as u64
1468        });
1469        __bindgen_bitfield_unit.set(3usize, 1u8, {
1470            let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1471            has_post as u64
1472        });
1473        __bindgen_bitfield_unit.set(4usize, 1u8, {
1474            let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1475            has_kw as u64
1476        });
1477        __bindgen_bitfield_unit.set(5usize, 1u8, {
1478            let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1479            has_kwrest as u64
1480        });
1481        __bindgen_bitfield_unit.set(6usize, 1u8, {
1482            let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1483            has_block as u64
1484        });
1485        __bindgen_bitfield_unit.set(7usize, 1u8, {
1486            let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
1487            ambiguous_param0 as u64
1488        });
1489        __bindgen_bitfield_unit
1490    }
1491}
1492#[repr(C)]
1493#[derive(Debug, Copy, Clone)]
1494pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
1495    pub num: ::std::os::raw::c_int,
1496    pub required_num: ::std::os::raw::c_int,
1497    pub bits_start: ::std::os::raw::c_int,
1498    pub rest_start: ::std::os::raw::c_int,
1499    pub table: *const ID,
1500    pub default_values: *const VALUE,
1501}
1502#[repr(C)]
1503#[derive(Copy, Clone)]
1504pub struct rb_iseq_struct {
1505    pub flags: VALUE,
1506    pub reserved1: VALUE,
1507    pub body: *mut rb_iseq_constant_body,
1508    pub aux: rb_iseq_struct__bindgen_ty_1,
1509}
1510#[repr(C)]
1511#[derive(Copy, Clone)]
1512pub union rb_iseq_struct__bindgen_ty_1 {
1513    pub compile_data: *mut iseq_compile_data,
1514    pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
1515}
1516#[repr(C)]
1517#[derive(Debug, Copy, Clone)]
1518pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
1519    pub obj: VALUE,
1520    pub index: ::std::os::raw::c_int,
1521}
1522impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
1523    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1524        write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
1525    }
1526}
1527impl ::std::fmt::Debug for rb_iseq_struct {
1528    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1529        write!(
1530            f,
1531            "rb_iseq_struct {{ flags: {:?}, reserved1: {:?}, body: {:?}, aux: {:?} }}",
1532            self.flags, self.reserved1, self.body, self.aux
1533        )
1534    }
1535}
1536pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
1537#[repr(C)]
1538#[derive(Debug, Copy, Clone)]
1539pub struct rb_at_exit_list {
1540    pub func: rb_vm_at_exit_func,
1541    pub next: *mut rb_at_exit_list,
1542}
1543#[repr(C)]
1544#[derive(Debug, Copy, Clone)]
1545pub struct rb_objspace {
1546    _unused: [u8; 0],
1547}
1548#[repr(C)]
1549#[derive(Debug, Copy, Clone)]
1550pub struct rb_hook_list_struct {
1551    pub hooks: *mut rb_event_hook_struct,
1552    pub events: rb_event_flag_t,
1553    pub need_clean: ::std::os::raw::c_int,
1554}
1555pub type rb_hook_list_t = rb_hook_list_struct;
1556#[repr(C)]
1557#[derive(Copy, Clone)]
1558pub struct rb_vm_struct {
1559    pub self_: VALUE,
1560    pub gvl: rb_global_vm_lock_t,
1561    pub thread_destruct_lock: rb_nativethread_lock_t,
1562    pub main_thread: *mut rb_thread_struct,
1563    pub running_thread: *mut rb_thread_struct,
1564    pub waiting_fds: list_head,
1565    pub living_threads: list_head,
1566    pub living_thread_num: usize,
1567    pub thgroup_default: VALUE,
1568    pub _bitfield_align_1: [u8; 0],
1569    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1570    pub trace_running: ::std::os::raw::c_int,
1571    pub sleeper: ::std::os::raw::c_int,
1572    pub mark_object_ary: VALUE,
1573    pub special_exceptions: [VALUE; 4usize],
1574    pub top_self: VALUE,
1575    pub load_path: VALUE,
1576    pub load_path_snapshot: VALUE,
1577    pub load_path_check_cache: VALUE,
1578    pub expanded_load_path: VALUE,
1579    pub loaded_features: VALUE,
1580    pub loaded_features_snapshot: VALUE,
1581    pub loaded_features_index: *mut st_table,
1582    pub loading_table: *mut st_table,
1583    pub trap_list: [rb_vm_struct__bindgen_ty_1; 65usize],
1584    pub event_hooks: rb_hook_list_t,
1585    pub ensure_rollback_table: *mut st_table,
1586    pub postponed_job_buffer: *mut rb_postponed_job_struct,
1587    pub postponed_job_index: ::std::os::raw::c_int,
1588    pub src_encoding_index: ::std::os::raw::c_int,
1589    pub verbose: VALUE,
1590    pub debug: VALUE,
1591    pub orig_progname: VALUE,
1592    pub progname: VALUE,
1593    pub coverages: VALUE,
1594    pub defined_module_hash: VALUE,
1595    pub objspace: *mut rb_objspace,
1596    pub at_exit: *mut rb_at_exit_list,
1597    pub defined_strings: *mut VALUE,
1598    pub frozen_strings: *mut st_table,
1599    pub default_params: rb_vm_struct__bindgen_ty_2,
1600    pub redefined_flag: [::std::os::raw::c_short; 24usize],
1601}
1602#[repr(C)]
1603#[derive(Debug, Copy, Clone)]
1604pub struct rb_vm_struct__bindgen_ty_1 {
1605    pub cmd: VALUE,
1606    pub safe: ::std::os::raw::c_int,
1607}
1608#[repr(C)]
1609#[derive(Debug, Copy, Clone)]
1610pub struct rb_vm_struct__bindgen_ty_2 {
1611    pub thread_vm_stack_size: usize,
1612    pub thread_machine_stack_size: usize,
1613    pub fiber_vm_stack_size: usize,
1614    pub fiber_machine_stack_size: usize,
1615}
1616impl ::std::fmt::Debug for rb_vm_struct {
1617    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1618        write ! (f , "rb_vm_struct {{ self: {:?}, gvl: {:?}, thread_destruct_lock: {:?}, main_thread: {:?}, running_thread: {:?}, waiting_fds: {:?}, living_threads: {:?}, thgroup_default: {:?}, running : {:?}, thread_abort_on_exception : {:?}, thread_report_on_exception : {:?}, trace_running: {:?}, sleeper: {:?}, mark_object_ary: {:?}, special_exceptions: {:?}, top_self: {:?}, load_path: {:?}, load_path_snapshot: {:?}, load_path_check_cache: {:?}, expanded_load_path: {:?}, loaded_features: {:?}, loaded_features_snapshot: {:?}, loaded_features_index: {:?}, loading_table: {:?}, trap_list: {:?}, event_hooks: {:?}, ensure_rollback_table: {:?}, postponed_job_buffer: {:?}, postponed_job_index: {:?}, src_encoding_index: {:?}, verbose: {:?}, debug: {:?}, orig_progname: {:?}, progname: {:?}, coverages: {:?}, defined_module_hash: {:?}, objspace: {:?}, at_exit: {:?}, defined_strings: {:?}, frozen_strings: {:?}, default_params: {:?}, redefined_flag: {:?} }}" , self . self_ , self . gvl , self . thread_destruct_lock , self . main_thread , self . running_thread , self . waiting_fds , self . living_threads , self . thgroup_default , self . running () , self . thread_abort_on_exception () , self . thread_report_on_exception () , self . trace_running , self . sleeper , self . mark_object_ary , self . special_exceptions , self . top_self , self . load_path , self . load_path_snapshot , self . load_path_check_cache , self . expanded_load_path , self . loaded_features , self . loaded_features_snapshot , self . loaded_features_index , self . loading_table , self . trap_list , self . event_hooks , self . ensure_rollback_table , self . postponed_job_buffer , self . postponed_job_index , self . src_encoding_index , self . verbose , self . debug , self . orig_progname , self . progname , self . coverages , self . defined_module_hash , self . objspace , self . at_exit , self . defined_strings , self . frozen_strings , self . default_params , self . redefined_flag)
1619    }
1620}
1621impl rb_vm_struct {
1622    #[inline]
1623    pub fn running(&self) -> ::std::os::raw::c_uint {
1624        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1625    }
1626    #[inline]
1627    pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
1628        unsafe {
1629            let val: u32 = ::std::mem::transmute(val);
1630            self._bitfield_1.set(0usize, 1u8, val as u64)
1631        }
1632    }
1633    #[inline]
1634    pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
1635        unsafe {
1636            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1637                ::std::ptr::addr_of!((*this)._bitfield_1),
1638                0usize,
1639                1u8,
1640            ) as u32)
1641        }
1642    }
1643    #[inline]
1644    pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1645        unsafe {
1646            let val: u32 = ::std::mem::transmute(val);
1647            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1648                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1649                0usize,
1650                1u8,
1651                val as u64,
1652            )
1653        }
1654    }
1655    #[inline]
1656    pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
1657        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1658    }
1659    #[inline]
1660    pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1661        unsafe {
1662            let val: u32 = ::std::mem::transmute(val);
1663            self._bitfield_1.set(1usize, 1u8, val as u64)
1664        }
1665    }
1666    #[inline]
1667    pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1668        unsafe {
1669            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1670                ::std::ptr::addr_of!((*this)._bitfield_1),
1671                1usize,
1672                1u8,
1673            ) as u32)
1674        }
1675    }
1676    #[inline]
1677    pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1678        unsafe {
1679            let val: u32 = ::std::mem::transmute(val);
1680            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1681                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1682                1usize,
1683                1u8,
1684                val as u64,
1685            )
1686        }
1687    }
1688    #[inline]
1689    pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
1690        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1691    }
1692    #[inline]
1693    pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1694        unsafe {
1695            let val: u32 = ::std::mem::transmute(val);
1696            self._bitfield_1.set(2usize, 1u8, val as u64)
1697        }
1698    }
1699    #[inline]
1700    pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1701        unsafe {
1702            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1703                ::std::ptr::addr_of!((*this)._bitfield_1),
1704                2usize,
1705                1u8,
1706            ) as u32)
1707        }
1708    }
1709    #[inline]
1710    pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1711        unsafe {
1712            let val: u32 = ::std::mem::transmute(val);
1713            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1714                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1715                2usize,
1716                1u8,
1717                val as u64,
1718            )
1719        }
1720    }
1721    #[inline]
1722    pub fn new_bitfield_1(
1723        running: ::std::os::raw::c_uint,
1724        thread_abort_on_exception: ::std::os::raw::c_uint,
1725        thread_report_on_exception: ::std::os::raw::c_uint,
1726    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1727        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1728        __bindgen_bitfield_unit.set(0usize, 1u8, {
1729            let running: u32 = unsafe { ::std::mem::transmute(running) };
1730            running as u64
1731        });
1732        __bindgen_bitfield_unit.set(1usize, 1u8, {
1733            let thread_abort_on_exception: u32 =
1734                unsafe { ::std::mem::transmute(thread_abort_on_exception) };
1735            thread_abort_on_exception as u64
1736        });
1737        __bindgen_bitfield_unit.set(2usize, 1u8, {
1738            let thread_report_on_exception: u32 =
1739                unsafe { ::std::mem::transmute(thread_report_on_exception) };
1740            thread_report_on_exception as u64
1741        });
1742        __bindgen_bitfield_unit
1743    }
1744}
1745pub type rb_vm_t = rb_vm_struct;
1746#[repr(C)]
1747#[derive(Debug, Copy, Clone)]
1748pub struct rb_control_frame_struct {
1749    pub pc: *const VALUE,
1750    pub sp: *mut VALUE,
1751    pub iseq: *const rb_iseq_t,
1752    pub self_: VALUE,
1753    pub ep: *const VALUE,
1754    pub block_code: *const ::std::os::raw::c_void,
1755}
1756pub type rb_control_frame_t = rb_control_frame_struct;
1757pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
1758pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
1759pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
1760pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
1761pub type rb_thread_status = ::std::os::raw::c_uint;
1762pub type rb_jmpbuf_t = jmp_buf;
1763#[repr(C)]
1764#[derive(Debug, Copy, Clone)]
1765pub struct rb_vm_tag {
1766    pub tag: VALUE,
1767    pub retval: VALUE,
1768    pub buf: rb_jmpbuf_t,
1769    pub prev: *mut rb_vm_tag,
1770}
1771#[repr(C)]
1772#[derive(Debug, Copy, Clone)]
1773pub struct rb_vm_protect_tag {
1774    pub prev: *mut rb_vm_protect_tag,
1775}
1776#[repr(C)]
1777#[derive(Debug, Copy, Clone)]
1778pub struct rb_unblock_callback {
1779    pub func: rb_unblock_function_t,
1780    pub arg: *mut ::std::os::raw::c_void,
1781}
1782#[repr(C)]
1783#[derive(Debug, Copy, Clone)]
1784pub struct rb_mutex_struct {
1785    _unused: [u8; 0],
1786}
1787#[repr(C)]
1788#[derive(Debug, Copy, Clone)]
1789pub struct rb_thread_list_struct {
1790    pub next: *mut rb_thread_list_struct,
1791    pub th: *mut rb_thread_struct,
1792}
1793pub type rb_thread_list_t = rb_thread_list_struct;
1794#[repr(C)]
1795#[derive(Debug, Copy, Clone)]
1796pub struct rb_ensure_entry {
1797    pub marker: VALUE,
1798    pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1799    pub data2: VALUE,
1800}
1801#[repr(C)]
1802#[derive(Debug, Copy, Clone)]
1803pub struct rb_ensure_list {
1804    pub next: *mut rb_ensure_list,
1805    pub entry: rb_ensure_entry,
1806}
1807pub type rb_ensure_list_t = rb_ensure_list;
1808#[repr(C)]
1809#[derive(Debug, Copy, Clone)]
1810pub struct rb_fiber_struct {
1811    _unused: [u8; 0],
1812}
1813pub type rb_fiber_t = rb_fiber_struct;
1814#[repr(C)]
1815#[derive(Copy, Clone)]
1816pub struct rb_thread_struct {
1817    pub vmlt_node: list_node,
1818    pub self_: VALUE,
1819    pub vm: *mut rb_vm_t,
1820    pub stack: *mut VALUE,
1821    pub stack_size: usize,
1822    pub cfp: *mut rb_control_frame_t,
1823    pub safe_level: ::std::os::raw::c_int,
1824    pub raised_flag: ::std::os::raw::c_int,
1825    pub last_status: VALUE,
1826    pub state: ::std::os::raw::c_int,
1827    pub passed_block_handler: VALUE,
1828    pub passed_bmethod_me: *const rb_callable_method_entry_t,
1829    pub calling: *mut rb_calling_info,
1830    pub top_self: VALUE,
1831    pub top_wrapper: VALUE,
1832    pub root_lep: *const VALUE,
1833    pub root_svar: VALUE,
1834    pub thread_id: rb_nativethread_id_t,
1835    pub status: rb_thread_status,
1836    pub to_kill: ::std::os::raw::c_int,
1837    pub priority: ::std::os::raw::c_int,
1838    pub native_thread_data: native_thread_data_t,
1839    pub blocking_region_buffer: *mut ::std::os::raw::c_void,
1840    pub thgroup: VALUE,
1841    pub value: VALUE,
1842    pub errinfo: VALUE,
1843    pub pending_interrupt_queue: VALUE,
1844    pub pending_interrupt_mask_stack: VALUE,
1845    pub pending_interrupt_queue_checked: ::std::os::raw::c_int,
1846    pub interrupt_flag: rb_atomic_t,
1847    pub interrupt_mask: ::std::os::raw::c_ulong,
1848    pub interrupt_lock: rb_nativethread_lock_t,
1849    pub interrupt_cond: rb_nativethread_cond_t,
1850    pub unblock: rb_unblock_callback,
1851    pub locking_mutex: VALUE,
1852    pub keeping_mutexes: *mut rb_mutex_struct,
1853    pub tag: *mut rb_vm_tag,
1854    pub protect_tag: *mut rb_vm_protect_tag,
1855    pub local_storage: *mut st_table,
1856    pub local_storage_recursive_hash: VALUE,
1857    pub local_storage_recursive_hash_for_trace: VALUE,
1858    pub join_list: *mut rb_thread_list_t,
1859    pub first_proc: VALUE,
1860    pub first_args: VALUE,
1861    pub first_func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1862    pub machine: rb_thread_struct__bindgen_ty_1,
1863    pub stat_insn_usage: VALUE,
1864    pub event_hooks: rb_hook_list_t,
1865    pub trace_arg: *mut rb_trace_arg_struct,
1866    pub fiber: *mut rb_fiber_t,
1867    pub root_fiber: *mut rb_fiber_t,
1868    pub root_jmpbuf: rb_jmpbuf_t,
1869    pub ensure_list: *mut rb_ensure_list_t,
1870    pub _bitfield_align_1: [u8; 0],
1871    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
1872    pub altstack: *mut ::std::os::raw::c_void,
1873    pub running_time_us: ::std::os::raw::c_ulong,
1874    pub name: VALUE,
1875}
1876#[repr(C)]
1877#[derive(Debug, Copy, Clone)]
1878pub struct rb_thread_struct__bindgen_ty_1 {
1879    pub stack_start: *mut VALUE,
1880    pub stack_end: *mut VALUE,
1881    pub stack_maxsize: usize,
1882    pub regs: jmp_buf,
1883}
1884impl ::std::fmt::Debug for rb_thread_struct {
1885    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1886        write ! (f , "rb_thread_struct {{ vmlt_node: {:?}, self: {:?}, vm: {:?}, stack: {:?}, cfp: {:?}, safe_level: {:?}, raised_flag: {:?}, last_status: {:?}, state: {:?}, passed_block_handler: {:?}, passed_bmethod_me: {:?}, calling: {:?}, top_self: {:?}, top_wrapper: {:?}, root_lep: {:?}, root_svar: {:?}, thread_id: {:?}, status: {:?}, to_kill: {:?}, priority: {:?}, native_thread_data: {:?}, blocking_region_buffer: {:?}, thgroup: {:?}, value: {:?}, errinfo: {:?}, pending_interrupt_queue: {:?}, pending_interrupt_mask_stack: {:?}, pending_interrupt_queue_checked: {:?}, interrupt_flag: {:?}, interrupt_mask: {:?}, interrupt_lock: {:?}, interrupt_cond: {:?}, unblock: {:?}, locking_mutex: {:?}, keeping_mutexes: {:?}, tag: {:?}, protect_tag: {:?}, local_storage: {:?}, local_storage_recursive_hash: {:?}, local_storage_recursive_hash_for_trace: {:?}, join_list: {:?}, first_proc: {:?}, first_args: {:?}, first_func: {:?}, machine: {:?}, stat_insn_usage: {:?}, event_hooks: {:?}, trace_arg: {:?}, fiber: {:?}, root_fiber: {:?}, root_jmpbuf: {:?}, ensure_list: {:?}, method_missing_reason : {:?}, abort_on_exception : {:?}, report_on_exception : {:?}, altstack: {:?}, running_time_us: {:?}, name: {:?} }}" , self . vmlt_node , self . self_ , self . vm , self . stack , self . cfp , self . safe_level , self . raised_flag , self . last_status , self . state , self . passed_block_handler , self . passed_bmethod_me , self . calling , self . top_self , self . top_wrapper , self . root_lep , self . root_svar , self . thread_id , self . status , self . to_kill , self . priority , self . native_thread_data , self . blocking_region_buffer , self . thgroup , self . value , self . errinfo , self . pending_interrupt_queue , self . pending_interrupt_mask_stack , self . pending_interrupt_queue_checked , self . interrupt_flag , self . interrupt_mask , self . interrupt_lock , self . interrupt_cond , self . unblock , self . locking_mutex , self . keeping_mutexes , self . tag , self . protect_tag , self . local_storage , self . local_storage_recursive_hash , self . local_storage_recursive_hash_for_trace , self . join_list , self . first_proc , self . first_args , self . first_func , self . machine , self . stat_insn_usage , self . event_hooks , self . trace_arg , self . fiber , self . root_fiber , self . root_jmpbuf , self . ensure_list , self . method_missing_reason () , self . abort_on_exception () , self . report_on_exception () , self . altstack , self . running_time_us , self . name)
1887    }
1888}
1889impl rb_thread_struct {
1890    #[inline]
1891    pub fn method_missing_reason(&self) -> method_missing_reason {
1892        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
1893    }
1894    #[inline]
1895    pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
1896        unsafe {
1897            let val: u32 = ::std::mem::transmute(val);
1898            self._bitfield_1.set(0usize, 8u8, val as u64)
1899        }
1900    }
1901    #[inline]
1902    pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
1903        unsafe {
1904            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1905                ::std::ptr::addr_of!((*this)._bitfield_1),
1906                0usize,
1907                8u8,
1908            ) as u32)
1909        }
1910    }
1911    #[inline]
1912    pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
1913        unsafe {
1914            let val: u32 = ::std::mem::transmute(val);
1915            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1916                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1917                0usize,
1918                8u8,
1919                val as u64,
1920            )
1921        }
1922    }
1923    #[inline]
1924    pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
1925        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
1926    }
1927    #[inline]
1928    pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1929        unsafe {
1930            let val: u32 = ::std::mem::transmute(val);
1931            self._bitfield_1.set(8usize, 1u8, val as u64)
1932        }
1933    }
1934    #[inline]
1935    pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1936        unsafe {
1937            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1938                ::std::ptr::addr_of!((*this)._bitfield_1),
1939                8usize,
1940                1u8,
1941            ) as u32)
1942        }
1943    }
1944    #[inline]
1945    pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1946        unsafe {
1947            let val: u32 = ::std::mem::transmute(val);
1948            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1949                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1950                8usize,
1951                1u8,
1952                val as u64,
1953            )
1954        }
1955    }
1956    #[inline]
1957    pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
1958        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
1959    }
1960    #[inline]
1961    pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1962        unsafe {
1963            let val: u32 = ::std::mem::transmute(val);
1964            self._bitfield_1.set(9usize, 1u8, val as u64)
1965        }
1966    }
1967    #[inline]
1968    pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1969        unsafe {
1970            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1971                ::std::ptr::addr_of!((*this)._bitfield_1),
1972                9usize,
1973                1u8,
1974            ) as u32)
1975        }
1976    }
1977    #[inline]
1978    pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1979        unsafe {
1980            let val: u32 = ::std::mem::transmute(val);
1981            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1982                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1983                9usize,
1984                1u8,
1985                val as u64,
1986            )
1987        }
1988    }
1989    #[inline]
1990    pub fn new_bitfield_1(
1991        method_missing_reason: method_missing_reason,
1992        abort_on_exception: ::std::os::raw::c_uint,
1993        report_on_exception: ::std::os::raw::c_uint,
1994    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
1995        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
1996        __bindgen_bitfield_unit.set(0usize, 8u8, {
1997            let method_missing_reason: u32 =
1998                unsafe { ::std::mem::transmute(method_missing_reason) };
1999            method_missing_reason as u64
2000        });
2001        __bindgen_bitfield_unit.set(8usize, 1u8, {
2002            let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2003            abort_on_exception as u64
2004        });
2005        __bindgen_bitfield_unit.set(9usize, 1u8, {
2006            let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2007            report_on_exception as u64
2008        });
2009        __bindgen_bitfield_unit
2010    }
2011}
2012pub type rb_thread_t = rb_thread_struct;
2013#[repr(C)]
2014#[derive(Debug, Copy, Clone)]
2015pub struct rb_trace_arg_struct {
2016    pub event: rb_event_flag_t,
2017    pub th: *mut rb_thread_t,
2018    pub cfp: *mut rb_control_frame_t,
2019    pub self_: VALUE,
2020    pub id: ID,
2021    pub called_id: ID,
2022    pub klass: VALUE,
2023    pub data: VALUE,
2024    pub klass_solved: ::std::os::raw::c_int,
2025    pub lineno: ::std::os::raw::c_int,
2026    pub path: VALUE,
2027}
2028#[repr(C)]
2029#[derive(Debug, Copy, Clone)]
2030pub struct rb_compile_option_struct {
2031    pub _bitfield_align_1: [u8; 0],
2032    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2033    pub debug_level: ::std::os::raw::c_int,
2034}
2035impl rb_compile_option_struct {
2036    #[inline]
2037    pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
2038        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2039    }
2040    #[inline]
2041    pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
2042        unsafe {
2043            let val: u32 = ::std::mem::transmute(val);
2044            self._bitfield_1.set(0usize, 1u8, val as u64)
2045        }
2046    }
2047    #[inline]
2048    pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
2049        unsafe {
2050            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2051                ::std::ptr::addr_of!((*this)._bitfield_1),
2052                0usize,
2053                1u8,
2054            ) as u32)
2055        }
2056    }
2057    #[inline]
2058    pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2059        unsafe {
2060            let val: u32 = ::std::mem::transmute(val);
2061            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2062                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2063                0usize,
2064                1u8,
2065                val as u64,
2066            )
2067        }
2068    }
2069    #[inline]
2070    pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
2071        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2072    }
2073    #[inline]
2074    pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
2075        unsafe {
2076            let val: u32 = ::std::mem::transmute(val);
2077            self._bitfield_1.set(1usize, 1u8, val as u64)
2078        }
2079    }
2080    #[inline]
2081    pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2082        unsafe {
2083            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2084                ::std::ptr::addr_of!((*this)._bitfield_1),
2085                1usize,
2086                1u8,
2087            ) as u32)
2088        }
2089    }
2090    #[inline]
2091    pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2092        unsafe {
2093            let val: u32 = ::std::mem::transmute(val);
2094            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2095                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2096                1usize,
2097                1u8,
2098                val as u64,
2099            )
2100        }
2101    }
2102    #[inline]
2103    pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
2104        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2105    }
2106    #[inline]
2107    pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
2108        unsafe {
2109            let val: u32 = ::std::mem::transmute(val);
2110            self._bitfield_1.set(2usize, 1u8, val as u64)
2111        }
2112    }
2113    #[inline]
2114    pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2115        unsafe {
2116            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2117                ::std::ptr::addr_of!((*this)._bitfield_1),
2118                2usize,
2119                1u8,
2120            ) as u32)
2121        }
2122    }
2123    #[inline]
2124    pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2125        unsafe {
2126            let val: u32 = ::std::mem::transmute(val);
2127            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2128                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2129                2usize,
2130                1u8,
2131                val as u64,
2132            )
2133        }
2134    }
2135    #[inline]
2136    pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
2137        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2138    }
2139    #[inline]
2140    pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
2141        unsafe {
2142            let val: u32 = ::std::mem::transmute(val);
2143            self._bitfield_1.set(3usize, 1u8, val as u64)
2144        }
2145    }
2146    #[inline]
2147    pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
2148        unsafe {
2149            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2150                ::std::ptr::addr_of!((*this)._bitfield_1),
2151                3usize,
2152                1u8,
2153            ) as u32)
2154        }
2155    }
2156    #[inline]
2157    pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2158        unsafe {
2159            let val: u32 = ::std::mem::transmute(val);
2160            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2161                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2162                3usize,
2163                1u8,
2164                val as u64,
2165            )
2166        }
2167    }
2168    #[inline]
2169    pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
2170        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2171    }
2172    #[inline]
2173    pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
2174        unsafe {
2175            let val: u32 = ::std::mem::transmute(val);
2176            self._bitfield_1.set(4usize, 1u8, val as u64)
2177        }
2178    }
2179    #[inline]
2180    pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2181        unsafe {
2182            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2183                ::std::ptr::addr_of!((*this)._bitfield_1),
2184                4usize,
2185                1u8,
2186            ) as u32)
2187        }
2188    }
2189    #[inline]
2190    pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2191        unsafe {
2192            let val: u32 = ::std::mem::transmute(val);
2193            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2194                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2195                4usize,
2196                1u8,
2197                val as u64,
2198            )
2199        }
2200    }
2201    #[inline]
2202    pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
2203        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2204    }
2205    #[inline]
2206    pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
2207        unsafe {
2208            let val: u32 = ::std::mem::transmute(val);
2209            self._bitfield_1.set(5usize, 1u8, val as u64)
2210        }
2211    }
2212    #[inline]
2213    pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2214        unsafe {
2215            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2216                ::std::ptr::addr_of!((*this)._bitfield_1),
2217                5usize,
2218                1u8,
2219            ) as u32)
2220        }
2221    }
2222    #[inline]
2223    pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2224        unsafe {
2225            let val: u32 = ::std::mem::transmute(val);
2226            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2227                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2228                5usize,
2229                1u8,
2230                val as u64,
2231            )
2232        }
2233    }
2234    #[inline]
2235    pub fn stack_caching(&self) -> ::std::os::raw::c_uint {
2236        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
2237    }
2238    #[inline]
2239    pub fn set_stack_caching(&mut self, val: ::std::os::raw::c_uint) {
2240        unsafe {
2241            let val: u32 = ::std::mem::transmute(val);
2242            self._bitfield_1.set(6usize, 1u8, val as u64)
2243        }
2244    }
2245    #[inline]
2246    pub unsafe fn stack_caching_raw(this: *const Self) -> ::std::os::raw::c_uint {
2247        unsafe {
2248            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2249                ::std::ptr::addr_of!((*this)._bitfield_1),
2250                6usize,
2251                1u8,
2252            ) as u32)
2253        }
2254    }
2255    #[inline]
2256    pub unsafe fn set_stack_caching_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2257        unsafe {
2258            let val: u32 = ::std::mem::transmute(val);
2259            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2260                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2261                6usize,
2262                1u8,
2263                val as u64,
2264            )
2265        }
2266    }
2267    #[inline]
2268    pub fn trace_instruction(&self) -> ::std::os::raw::c_uint {
2269        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
2270    }
2271    #[inline]
2272    pub fn set_trace_instruction(&mut self, val: ::std::os::raw::c_uint) {
2273        unsafe {
2274            let val: u32 = ::std::mem::transmute(val);
2275            self._bitfield_1.set(7usize, 1u8, val as u64)
2276        }
2277    }
2278    #[inline]
2279    pub unsafe fn trace_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
2280        unsafe {
2281            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2282                ::std::ptr::addr_of!((*this)._bitfield_1),
2283                7usize,
2284                1u8,
2285            ) as u32)
2286        }
2287    }
2288    #[inline]
2289    pub unsafe fn set_trace_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2290        unsafe {
2291            let val: u32 = ::std::mem::transmute(val);
2292            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2293                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2294                7usize,
2295                1u8,
2296                val as u64,
2297            )
2298        }
2299    }
2300    #[inline]
2301    pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
2302        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
2303    }
2304    #[inline]
2305    pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
2306        unsafe {
2307            let val: u32 = ::std::mem::transmute(val);
2308            self._bitfield_1.set(8usize, 1u8, val as u64)
2309        }
2310    }
2311    #[inline]
2312    pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
2313        unsafe {
2314            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2315                ::std::ptr::addr_of!((*this)._bitfield_1),
2316                8usize,
2317                1u8,
2318            ) as u32)
2319        }
2320    }
2321    #[inline]
2322    pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2323        unsafe {
2324            let val: u32 = ::std::mem::transmute(val);
2325            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2326                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2327                8usize,
2328                1u8,
2329                val as u64,
2330            )
2331        }
2332    }
2333    #[inline]
2334    pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
2335        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
2336    }
2337    #[inline]
2338    pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
2339        unsafe {
2340            let val: u32 = ::std::mem::transmute(val);
2341            self._bitfield_1.set(9usize, 1u8, val as u64)
2342        }
2343    }
2344    #[inline]
2345    pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
2346        unsafe {
2347            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2348                ::std::ptr::addr_of!((*this)._bitfield_1),
2349                9usize,
2350                1u8,
2351            ) as u32)
2352        }
2353    }
2354    #[inline]
2355    pub unsafe fn set_debug_frozen_string_literal_raw(
2356        this: *mut Self,
2357        val: ::std::os::raw::c_uint,
2358    ) {
2359        unsafe {
2360            let val: u32 = ::std::mem::transmute(val);
2361            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2362                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2363                9usize,
2364                1u8,
2365                val as u64,
2366            )
2367        }
2368    }
2369    #[inline]
2370    pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
2371        unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
2372    }
2373    #[inline]
2374    pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
2375        unsafe {
2376            let val: u32 = ::std::mem::transmute(val);
2377            self._bitfield_1.set(10usize, 1u8, val as u64)
2378        }
2379    }
2380    #[inline]
2381    pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
2382        unsafe {
2383            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2384                ::std::ptr::addr_of!((*this)._bitfield_1),
2385                10usize,
2386                1u8,
2387            ) as u32)
2388        }
2389    }
2390    #[inline]
2391    pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2392        unsafe {
2393            let val: u32 = ::std::mem::transmute(val);
2394            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2395                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2396                10usize,
2397                1u8,
2398                val as u64,
2399            )
2400        }
2401    }
2402    #[inline]
2403    pub fn new_bitfield_1(
2404        inline_const_cache: ::std::os::raw::c_uint,
2405        peephole_optimization: ::std::os::raw::c_uint,
2406        tailcall_optimization: ::std::os::raw::c_uint,
2407        specialized_instruction: ::std::os::raw::c_uint,
2408        operands_unification: ::std::os::raw::c_uint,
2409        instructions_unification: ::std::os::raw::c_uint,
2410        stack_caching: ::std::os::raw::c_uint,
2411        trace_instruction: ::std::os::raw::c_uint,
2412        frozen_string_literal: ::std::os::raw::c_uint,
2413        debug_frozen_string_literal: ::std::os::raw::c_uint,
2414        coverage_enabled: ::std::os::raw::c_uint,
2415    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2416        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2417        __bindgen_bitfield_unit.set(0usize, 1u8, {
2418            let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
2419            inline_const_cache as u64
2420        });
2421        __bindgen_bitfield_unit.set(1usize, 1u8, {
2422            let peephole_optimization: u32 =
2423                unsafe { ::std::mem::transmute(peephole_optimization) };
2424            peephole_optimization as u64
2425        });
2426        __bindgen_bitfield_unit.set(2usize, 1u8, {
2427            let tailcall_optimization: u32 =
2428                unsafe { ::std::mem::transmute(tailcall_optimization) };
2429            tailcall_optimization as u64
2430        });
2431        __bindgen_bitfield_unit.set(3usize, 1u8, {
2432            let specialized_instruction: u32 =
2433                unsafe { ::std::mem::transmute(specialized_instruction) };
2434            specialized_instruction as u64
2435        });
2436        __bindgen_bitfield_unit.set(4usize, 1u8, {
2437            let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
2438            operands_unification as u64
2439        });
2440        __bindgen_bitfield_unit.set(5usize, 1u8, {
2441            let instructions_unification: u32 =
2442                unsafe { ::std::mem::transmute(instructions_unification) };
2443            instructions_unification as u64
2444        });
2445        __bindgen_bitfield_unit.set(6usize, 1u8, {
2446            let stack_caching: u32 = unsafe { ::std::mem::transmute(stack_caching) };
2447            stack_caching as u64
2448        });
2449        __bindgen_bitfield_unit.set(7usize, 1u8, {
2450            let trace_instruction: u32 = unsafe { ::std::mem::transmute(trace_instruction) };
2451            trace_instruction as u64
2452        });
2453        __bindgen_bitfield_unit.set(8usize, 1u8, {
2454            let frozen_string_literal: u32 =
2455                unsafe { ::std::mem::transmute(frozen_string_literal) };
2456            frozen_string_literal as u64
2457        });
2458        __bindgen_bitfield_unit.set(9usize, 1u8, {
2459            let debug_frozen_string_literal: u32 =
2460                unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
2461            debug_frozen_string_literal as u64
2462        });
2463        __bindgen_bitfield_unit.set(10usize, 1u8, {
2464            let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
2465            coverage_enabled as u64
2466        });
2467        __bindgen_bitfield_unit
2468    }
2469}
2470#[repr(C)]
2471#[derive(Debug, Copy, Clone)]
2472pub struct iseq_line_info_entry {
2473    pub position: ::std::os::raw::c_uint,
2474    pub line_no: ::std::os::raw::c_uint,
2475}
2476#[repr(C)]
2477#[derive(Debug, Copy, Clone)]
2478pub struct iseq_catch_table_entry {
2479    pub type_: iseq_catch_table_entry_catch_type,
2480    pub iseq: *const rb_iseq_t,
2481    pub start: ::std::os::raw::c_uint,
2482    pub end: ::std::os::raw::c_uint,
2483    pub cont: ::std::os::raw::c_uint,
2484    pub sp: ::std::os::raw::c_uint,
2485}
2486pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
2487    3;
2488pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
2489    5;
2490pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
2491pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
2492pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
2493pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
2494pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
2495#[repr(C)]
2496#[derive(Copy, Clone)]
2497pub struct iseq_catch_table {
2498    pub size: ::std::os::raw::c_uint,
2499    pub entries: [iseq_catch_table_entry; 1usize],
2500}
2501#[repr(C)]
2502#[derive(Debug, Copy, Clone)]
2503pub struct iseq_compile_data_storage {
2504    pub next: *mut iseq_compile_data_storage,
2505    pub pos: ::std::os::raw::c_uint,
2506    pub size: ::std::os::raw::c_uint,
2507    pub buff: [::std::os::raw::c_char; 1usize],
2508}
2509#[repr(C)]
2510#[derive(Debug, Copy, Clone)]
2511pub struct iseq_compile_data {
2512    pub err_info: VALUE,
2513    pub mark_ary: VALUE,
2514    pub catch_table_ary: VALUE,
2515    pub start_label: *mut iseq_label_data,
2516    pub end_label: *mut iseq_label_data,
2517    pub redo_label: *mut iseq_label_data,
2518    pub current_block: *const rb_iseq_t,
2519    pub ensure_node: VALUE,
2520    pub for_iseq: VALUE,
2521    pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2522    pub loopval_popped: ::std::os::raw::c_int,
2523    pub cached_const: ::std::os::raw::c_int,
2524    pub storage_head: *mut iseq_compile_data_storage,
2525    pub storage_current: *mut iseq_compile_data_storage,
2526    pub last_line: ::std::os::raw::c_int,
2527    pub last_coverable_line: ::std::os::raw::c_int,
2528    pub label_no: ::std::os::raw::c_int,
2529    pub node_level: ::std::os::raw::c_int,
2530    pub ci_index: ::std::os::raw::c_uint,
2531    pub ci_kw_index: ::std::os::raw::c_uint,
2532    pub option: *const rb_compile_option_t,
2533    pub ivar_cache_table: *mut rb_id_table,
2534}
2535#[repr(C)]
2536#[derive(Debug, Copy, Clone)]
2537pub struct rb_id_table {
2538    pub _address: u8,
2539}
2540#[repr(C)]
2541#[derive(Debug, Copy, Clone)]
2542pub struct rb_event_hook_struct {
2543    pub _address: u8,
2544}
2545#[repr(C)]
2546#[derive(Debug, Copy, Clone)]
2547pub struct rb_postponed_job_struct {
2548    pub _address: u8,
2549}
2550#[repr(C)]
2551#[derive(Debug, Copy, Clone)]
2552pub struct iseq_label_data {
2553    pub _address: u8,
2554}
2555#[repr(C)]
2556#[derive(Debug, Copy, Clone)]
2557pub struct iseq_compile_data_ensure_node_stack {
2558    pub _address: u8,
2559}