rbspy_ruby_structs/
ruby_3_1_3.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}
140#[repr(C)]
141#[derive(Default)]
142pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
143impl<T> __IncompleteArrayField<T> {
144    #[inline]
145    pub const fn new() -> Self {
146        __IncompleteArrayField(::std::marker::PhantomData, [])
147    }
148    #[inline]
149    pub fn as_ptr(&self) -> *const T {
150        self as *const _ as *const T
151    }
152    #[inline]
153    pub fn as_mut_ptr(&mut self) -> *mut T {
154        self as *mut _ as *mut T
155    }
156    #[inline]
157    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
158        ::std::slice::from_raw_parts(self.as_ptr(), len)
159    }
160    #[inline]
161    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
162        ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
163    }
164}
165impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
166    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
167        fmt.write_str("__IncompleteArrayField")
168    }
169}
170#[repr(C)]
171#[derive(Debug, Copy, Clone)]
172pub struct __sigset_t {
173    pub __val: [usize; 16usize],
174}
175#[repr(C)]
176#[derive(Debug, Copy, Clone)]
177pub struct __pthread_internal_list {
178    pub __prev: *mut __pthread_internal_list,
179    pub __next: *mut __pthread_internal_list,
180}
181pub type __pthread_list_t = __pthread_internal_list;
182#[repr(C)]
183#[derive(Debug, Copy, Clone)]
184pub struct __pthread_mutex_s {
185    pub __lock: ::std::os::raw::c_int,
186    pub __count: ::std::os::raw::c_uint,
187    pub __owner: ::std::os::raw::c_int,
188    pub __nusers: ::std::os::raw::c_uint,
189    pub __kind: ::std::os::raw::c_int,
190    pub __spins: ::std::os::raw::c_short,
191    pub __elision: ::std::os::raw::c_short,
192    pub __list: __pthread_list_t,
193}
194#[repr(C)]
195#[derive(Copy, Clone)]
196pub struct __pthread_cond_s {
197    pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
198    pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
199    pub __g_refs: [::std::os::raw::c_uint; 2usize],
200    pub __g_size: [::std::os::raw::c_uint; 2usize],
201    pub __g1_orig_size: ::std::os::raw::c_uint,
202    pub __wrefs: ::std::os::raw::c_uint,
203    pub __g_signals: [::std::os::raw::c_uint; 2usize],
204}
205#[repr(C)]
206#[derive(Copy, Clone)]
207pub union __pthread_cond_s__bindgen_ty_1 {
208    pub __wseq: ::std::os::raw::c_ulonglong,
209    pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
210}
211#[repr(C)]
212#[derive(Debug, Copy, Clone)]
213pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
214    pub __low: ::std::os::raw::c_uint,
215    pub __high: ::std::os::raw::c_uint,
216}
217impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_1 {
218    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
219        write!(f, "__pthread_cond_s__bindgen_ty_1 {{ union }}")
220    }
221}
222#[repr(C)]
223#[derive(Copy, Clone)]
224pub union __pthread_cond_s__bindgen_ty_2 {
225    pub __g1_start: ::std::os::raw::c_ulonglong,
226    pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
227}
228#[repr(C)]
229#[derive(Debug, Copy, Clone)]
230pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
231    pub __low: ::std::os::raw::c_uint,
232    pub __high: ::std::os::raw::c_uint,
233}
234impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_2 {
235    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
236        write!(f, "__pthread_cond_s__bindgen_ty_2 {{ union }}")
237    }
238}
239impl ::std::fmt::Debug for __pthread_cond_s {
240    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
241        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)
242    }
243}
244pub type pthread_t = usize;
245#[repr(C)]
246#[derive(Copy, Clone)]
247pub union pthread_mutex_t {
248    pub __data: __pthread_mutex_s,
249    pub __size: [::std::os::raw::c_char; 40usize],
250    pub __align: ::std::os::raw::c_long,
251}
252impl ::std::fmt::Debug for pthread_mutex_t {
253    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
254        write!(f, "pthread_mutex_t {{ union }}")
255    }
256}
257#[repr(C)]
258#[derive(Copy, Clone)]
259pub union pthread_cond_t {
260    pub __data: __pthread_cond_s,
261    pub __size: [::std::os::raw::c_char; 48usize],
262    pub __align: ::std::os::raw::c_longlong,
263}
264impl ::std::fmt::Debug for pthread_cond_t {
265    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
266        write!(f, "pthread_cond_t {{ union }}")
267    }
268}
269pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
270#[repr(C)]
271#[derive(Debug, Copy, Clone)]
272pub struct __jmp_buf_tag {
273    pub __jmpbuf: __jmp_buf,
274    pub __mask_was_saved: ::std::os::raw::c_int,
275    pub __saved_mask: __sigset_t,
276}
277pub type jmp_buf = [__jmp_buf_tag; 1usize];
278pub type sigjmp_buf = [__jmp_buf_tag; 1usize];
279#[repr(C)]
280#[derive(Debug, Copy, Clone)]
281pub struct list_node {
282    pub next: *mut list_node,
283    pub prev: *mut list_node,
284}
285#[repr(C)]
286#[derive(Debug, Copy, Clone)]
287pub struct list_head {
288    pub n: list_node,
289}
290pub const ruby_id_types_RUBY_ID_STATIC_SYM: ruby_id_types = 1;
291pub const ruby_id_types_RUBY_ID_LOCAL: ruby_id_types = 0;
292pub const ruby_id_types_RUBY_ID_INSTANCE: ruby_id_types = 2;
293pub const ruby_id_types_RUBY_ID_GLOBAL: ruby_id_types = 6;
294pub const ruby_id_types_RUBY_ID_ATTRSET: ruby_id_types = 8;
295pub const ruby_id_types_RUBY_ID_CONST: ruby_id_types = 10;
296pub const ruby_id_types_RUBY_ID_CLASS: ruby_id_types = 12;
297pub const ruby_id_types_RUBY_ID_JUNK: ruby_id_types = 14;
298pub const ruby_id_types_RUBY_ID_INTERNAL: ruby_id_types = 14;
299pub const ruby_id_types_RUBY_ID_SCOPE_SHIFT: ruby_id_types = 4;
300pub const ruby_id_types_RUBY_ID_SCOPE_MASK: ruby_id_types = 14;
301pub type ruby_id_types = ::std::os::raw::c_uint;
302pub const ruby_method_ids_idDot2: ruby_method_ids = 128;
303pub const ruby_method_ids_idDot3: ruby_method_ids = 129;
304pub const ruby_method_ids_idUPlus: ruby_method_ids = 132;
305pub const ruby_method_ids_idUMinus: ruby_method_ids = 133;
306pub const ruby_method_ids_idPow: ruby_method_ids = 134;
307pub const ruby_method_ids_idCmp: ruby_method_ids = 135;
308pub const ruby_method_ids_idPLUS: ruby_method_ids = 43;
309pub const ruby_method_ids_idMINUS: ruby_method_ids = 45;
310pub const ruby_method_ids_idMULT: ruby_method_ids = 42;
311pub const ruby_method_ids_idDIV: ruby_method_ids = 47;
312pub const ruby_method_ids_idMOD: ruby_method_ids = 37;
313pub const ruby_method_ids_idLTLT: ruby_method_ids = 136;
314pub const ruby_method_ids_idGTGT: ruby_method_ids = 137;
315pub const ruby_method_ids_idLT: ruby_method_ids = 60;
316pub const ruby_method_ids_idLE: ruby_method_ids = 138;
317pub const ruby_method_ids_idGT: ruby_method_ids = 62;
318pub const ruby_method_ids_idGE: ruby_method_ids = 139;
319pub const ruby_method_ids_idEq: ruby_method_ids = 140;
320pub const ruby_method_ids_idEqq: ruby_method_ids = 141;
321pub const ruby_method_ids_idNeq: ruby_method_ids = 142;
322pub const ruby_method_ids_idNot: ruby_method_ids = 33;
323pub const ruby_method_ids_idAnd: ruby_method_ids = 38;
324pub const ruby_method_ids_idOr: ruby_method_ids = 124;
325pub const ruby_method_ids_idBackquote: ruby_method_ids = 96;
326pub const ruby_method_ids_idEqTilde: ruby_method_ids = 143;
327pub const ruby_method_ids_idNeqTilde: ruby_method_ids = 144;
328pub const ruby_method_ids_idAREF: ruby_method_ids = 145;
329pub const ruby_method_ids_idASET: ruby_method_ids = 146;
330pub const ruby_method_ids_idCOLON2: ruby_method_ids = 147;
331pub const ruby_method_ids_idANDOP: ruby_method_ids = 148;
332pub const ruby_method_ids_idOROP: ruby_method_ids = 149;
333pub const ruby_method_ids_idANDDOT: ruby_method_ids = 150;
334pub const ruby_method_ids_tPRESERVED_ID_BEGIN: ruby_method_ids = 150;
335pub const ruby_method_ids_idNilP: ruby_method_ids = 151;
336pub const ruby_method_ids_idNULL: ruby_method_ids = 152;
337pub const ruby_method_ids_idEmptyP: ruby_method_ids = 153;
338pub const ruby_method_ids_idEqlP: ruby_method_ids = 154;
339pub const ruby_method_ids_idRespond_to: ruby_method_ids = 155;
340pub const ruby_method_ids_idRespond_to_missing: ruby_method_ids = 156;
341pub const ruby_method_ids_idIFUNC: ruby_method_ids = 157;
342pub const ruby_method_ids_idCFUNC: ruby_method_ids = 158;
343pub const ruby_method_ids_id_core_set_method_alias: ruby_method_ids = 159;
344pub const ruby_method_ids_id_core_set_variable_alias: ruby_method_ids = 160;
345pub const ruby_method_ids_id_core_undef_method: ruby_method_ids = 161;
346pub const ruby_method_ids_id_core_define_method: ruby_method_ids = 162;
347pub const ruby_method_ids_id_core_define_singleton_method: ruby_method_ids = 163;
348pub const ruby_method_ids_id_core_set_postexe: ruby_method_ids = 164;
349pub const ruby_method_ids_id_core_hash_merge_ptr: ruby_method_ids = 165;
350pub const ruby_method_ids_id_core_hash_merge_kwd: ruby_method_ids = 166;
351pub const ruby_method_ids_id_core_raise: ruby_method_ids = 167;
352pub const ruby_method_ids_id_core_sprintf: ruby_method_ids = 168;
353pub const ruby_method_ids_id_debug_created_info: ruby_method_ids = 169;
354pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 170;
355pub const ruby_method_ids_tTOKEN_LOCAL_BEGIN: ruby_method_ids = 169;
356pub const ruby_method_ids_tMax: ruby_method_ids = 170;
357pub const ruby_method_ids_tMin: ruby_method_ids = 171;
358pub const ruby_method_ids_tFreeze: ruby_method_ids = 172;
359pub const ruby_method_ids_tInspect: ruby_method_ids = 173;
360pub const ruby_method_ids_tIntern: ruby_method_ids = 174;
361pub const ruby_method_ids_tObject_id: ruby_method_ids = 175;
362pub const ruby_method_ids_tConst_missing: ruby_method_ids = 176;
363pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 177;
364pub const ruby_method_ids_tMethod_added: ruby_method_ids = 178;
365pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 179;
366pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 180;
367pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 181;
368pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 182;
369pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 183;
370pub const ruby_method_ids_tLength: ruby_method_ids = 184;
371pub const ruby_method_ids_tSize: ruby_method_ids = 185;
372pub const ruby_method_ids_tGets: ruby_method_ids = 186;
373pub const ruby_method_ids_tSucc: ruby_method_ids = 187;
374pub const ruby_method_ids_tEach: ruby_method_ids = 188;
375pub const ruby_method_ids_tProc: ruby_method_ids = 189;
376pub const ruby_method_ids_tLambda: ruby_method_ids = 190;
377pub const ruby_method_ids_tSend: ruby_method_ids = 191;
378pub const ruby_method_ids_t__send__: ruby_method_ids = 192;
379pub const ruby_method_ids_t__attached__: ruby_method_ids = 193;
380pub const ruby_method_ids_t__recursive_key__: ruby_method_ids = 194;
381pub const ruby_method_ids_tInitialize: ruby_method_ids = 195;
382pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 196;
383pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 197;
384pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 198;
385pub const ruby_method_ids_tTo_int: ruby_method_ids = 199;
386pub const ruby_method_ids_tTo_ary: ruby_method_ids = 200;
387pub const ruby_method_ids_tTo_str: ruby_method_ids = 201;
388pub const ruby_method_ids_tTo_sym: ruby_method_ids = 202;
389pub const ruby_method_ids_tTo_hash: ruby_method_ids = 203;
390pub const ruby_method_ids_tTo_proc: ruby_method_ids = 204;
391pub const ruby_method_ids_tTo_io: ruby_method_ids = 205;
392pub const ruby_method_ids_tTo_a: ruby_method_ids = 206;
393pub const ruby_method_ids_tTo_s: ruby_method_ids = 207;
394pub const ruby_method_ids_tTo_i: ruby_method_ids = 208;
395pub const ruby_method_ids_tTo_f: ruby_method_ids = 209;
396pub const ruby_method_ids_tTo_r: ruby_method_ids = 210;
397pub const ruby_method_ids_tBt: ruby_method_ids = 211;
398pub const ruby_method_ids_tBt_locations: ruby_method_ids = 212;
399pub const ruby_method_ids_tCall: ruby_method_ids = 213;
400pub const ruby_method_ids_tMesg: ruby_method_ids = 214;
401pub const ruby_method_ids_tException: ruby_method_ids = 215;
402pub const ruby_method_ids_tLocals: ruby_method_ids = 216;
403pub const ruby_method_ids_tNOT: ruby_method_ids = 217;
404pub const ruby_method_ids_tAND: ruby_method_ids = 218;
405pub const ruby_method_ids_tOR: ruby_method_ids = 219;
406pub const ruby_method_ids_tDiv: ruby_method_ids = 220;
407pub const ruby_method_ids_tDivmod: ruby_method_ids = 221;
408pub const ruby_method_ids_tFdiv: ruby_method_ids = 222;
409pub const ruby_method_ids_tQuo: ruby_method_ids = 223;
410pub const ruby_method_ids_tName: ruby_method_ids = 224;
411pub const ruby_method_ids_tNil: ruby_method_ids = 225;
412pub const ruby_method_ids_tUScore: ruby_method_ids = 226;
413pub const ruby_method_ids_tNUMPARAM_1: ruby_method_ids = 227;
414pub const ruby_method_ids_tNUMPARAM_2: ruby_method_ids = 228;
415pub const ruby_method_ids_tNUMPARAM_3: ruby_method_ids = 229;
416pub const ruby_method_ids_tNUMPARAM_4: ruby_method_ids = 230;
417pub const ruby_method_ids_tNUMPARAM_5: ruby_method_ids = 231;
418pub const ruby_method_ids_tNUMPARAM_6: ruby_method_ids = 232;
419pub const ruby_method_ids_tNUMPARAM_7: ruby_method_ids = 233;
420pub const ruby_method_ids_tNUMPARAM_8: ruby_method_ids = 234;
421pub const ruby_method_ids_tNUMPARAM_9: ruby_method_ids = 235;
422pub const ruby_method_ids_tTOKEN_LOCAL_END: ruby_method_ids = 236;
423pub const ruby_method_ids_tTOKEN_INSTANCE_BEGIN: ruby_method_ids = 235;
424pub const ruby_method_ids_tTOKEN_INSTANCE_END: ruby_method_ids = 236;
425pub const ruby_method_ids_tTOKEN_GLOBAL_BEGIN: ruby_method_ids = 235;
426pub const ruby_method_ids_tLASTLINE: ruby_method_ids = 236;
427pub const ruby_method_ids_tBACKREF: ruby_method_ids = 237;
428pub const ruby_method_ids_tERROR_INFO: ruby_method_ids = 238;
429pub const ruby_method_ids_tTOKEN_GLOBAL_END: ruby_method_ids = 239;
430pub const ruby_method_ids_tTOKEN_CONST_BEGIN: ruby_method_ids = 238;
431pub const ruby_method_ids_tTOKEN_CONST_END: ruby_method_ids = 239;
432pub const ruby_method_ids_tTOKEN_CLASS_BEGIN: ruby_method_ids = 238;
433pub const ruby_method_ids_tTOKEN_CLASS_END: ruby_method_ids = 239;
434pub const ruby_method_ids_tTOKEN_ATTRSET_BEGIN: ruby_method_ids = 238;
435pub const ruby_method_ids_tTOKEN_ATTRSET_END: ruby_method_ids = 239;
436pub const ruby_method_ids_tNEXT_ID: ruby_method_ids = 239;
437pub const ruby_method_ids_idMax: ruby_method_ids = 2721;
438pub const ruby_method_ids_idMin: ruby_method_ids = 2737;
439pub const ruby_method_ids_idFreeze: ruby_method_ids = 2753;
440pub const ruby_method_ids_idInspect: ruby_method_ids = 2769;
441pub const ruby_method_ids_idIntern: ruby_method_ids = 2785;
442pub const ruby_method_ids_idObject_id: ruby_method_ids = 2801;
443pub const ruby_method_ids_idConst_missing: ruby_method_ids = 2817;
444pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 2833;
445pub const ruby_method_ids_idMethod_added: ruby_method_ids = 2849;
446pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 2865;
447pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 2881;
448pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 2897;
449pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 2913;
450pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 2929;
451pub const ruby_method_ids_idLength: ruby_method_ids = 2945;
452pub const ruby_method_ids_idSize: ruby_method_ids = 2961;
453pub const ruby_method_ids_idGets: ruby_method_ids = 2977;
454pub const ruby_method_ids_idSucc: ruby_method_ids = 2993;
455pub const ruby_method_ids_idEach: ruby_method_ids = 3009;
456pub const ruby_method_ids_idProc: ruby_method_ids = 3025;
457pub const ruby_method_ids_idLambda: ruby_method_ids = 3041;
458pub const ruby_method_ids_idSend: ruby_method_ids = 3057;
459pub const ruby_method_ids_id__send__: ruby_method_ids = 3073;
460pub const ruby_method_ids_id__attached__: ruby_method_ids = 3089;
461pub const ruby_method_ids_id__recursive_key__: ruby_method_ids = 3105;
462pub const ruby_method_ids_idInitialize: ruby_method_ids = 3121;
463pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 3137;
464pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 3153;
465pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 3169;
466pub const ruby_method_ids_idTo_int: ruby_method_ids = 3185;
467pub const ruby_method_ids_idTo_ary: ruby_method_ids = 3201;
468pub const ruby_method_ids_idTo_str: ruby_method_ids = 3217;
469pub const ruby_method_ids_idTo_sym: ruby_method_ids = 3233;
470pub const ruby_method_ids_idTo_hash: ruby_method_ids = 3249;
471pub const ruby_method_ids_idTo_proc: ruby_method_ids = 3265;
472pub const ruby_method_ids_idTo_io: ruby_method_ids = 3281;
473pub const ruby_method_ids_idTo_a: ruby_method_ids = 3297;
474pub const ruby_method_ids_idTo_s: ruby_method_ids = 3313;
475pub const ruby_method_ids_idTo_i: ruby_method_ids = 3329;
476pub const ruby_method_ids_idTo_f: ruby_method_ids = 3345;
477pub const ruby_method_ids_idTo_r: ruby_method_ids = 3361;
478pub const ruby_method_ids_idBt: ruby_method_ids = 3377;
479pub const ruby_method_ids_idBt_locations: ruby_method_ids = 3393;
480pub const ruby_method_ids_idCall: ruby_method_ids = 3409;
481pub const ruby_method_ids_idMesg: ruby_method_ids = 3425;
482pub const ruby_method_ids_idException: ruby_method_ids = 3441;
483pub const ruby_method_ids_idLocals: ruby_method_ids = 3457;
484pub const ruby_method_ids_idNOT: ruby_method_ids = 3473;
485pub const ruby_method_ids_idAND: ruby_method_ids = 3489;
486pub const ruby_method_ids_idOR: ruby_method_ids = 3505;
487pub const ruby_method_ids_idDiv: ruby_method_ids = 3521;
488pub const ruby_method_ids_idDivmod: ruby_method_ids = 3537;
489pub const ruby_method_ids_idFdiv: ruby_method_ids = 3553;
490pub const ruby_method_ids_idQuo: ruby_method_ids = 3569;
491pub const ruby_method_ids_idName: ruby_method_ids = 3585;
492pub const ruby_method_ids_idNil: ruby_method_ids = 3601;
493pub const ruby_method_ids_idUScore: ruby_method_ids = 3617;
494pub const ruby_method_ids_idNUMPARAM_1: ruby_method_ids = 3633;
495pub const ruby_method_ids_idNUMPARAM_2: ruby_method_ids = 3649;
496pub const ruby_method_ids_idNUMPARAM_3: ruby_method_ids = 3665;
497pub const ruby_method_ids_idNUMPARAM_4: ruby_method_ids = 3681;
498pub const ruby_method_ids_idNUMPARAM_5: ruby_method_ids = 3697;
499pub const ruby_method_ids_idNUMPARAM_6: ruby_method_ids = 3713;
500pub const ruby_method_ids_idNUMPARAM_7: ruby_method_ids = 3729;
501pub const ruby_method_ids_idNUMPARAM_8: ruby_method_ids = 3745;
502pub const ruby_method_ids_idNUMPARAM_9: ruby_method_ids = 3761;
503pub const ruby_method_ids_idLASTLINE: ruby_method_ids = 3783;
504pub const ruby_method_ids_idBACKREF: ruby_method_ids = 3799;
505pub const ruby_method_ids_idERROR_INFO: ruby_method_ids = 3815;
506pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 169;
507pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 10;
508pub type ruby_method_ids = ::std::os::raw::c_uint;
509pub type VALUE = usize;
510pub type ID = usize;
511#[repr(C)]
512#[derive(Debug, Copy, Clone)]
513pub struct RBasic {
514    pub flags: VALUE,
515    pub klass: VALUE,
516}
517pub const ruby_fl_ushift_RUBY_FL_USHIFT: ruby_fl_ushift = 12;
518pub type ruby_fl_ushift = ::std::os::raw::c_uint;
519pub const ruby_fl_type_RUBY_FL_WB_PROTECTED: ruby_fl_type = 32;
520pub const ruby_fl_type_RUBY_FL_PROMOTED0: ruby_fl_type = 32;
521pub const ruby_fl_type_RUBY_FL_PROMOTED1: ruby_fl_type = 64;
522pub const ruby_fl_type_RUBY_FL_PROMOTED: ruby_fl_type = 96;
523pub const ruby_fl_type_RUBY_FL_FINALIZE: ruby_fl_type = 128;
524pub const ruby_fl_type_RUBY_FL_TAINT: ruby_fl_type = 256;
525pub const ruby_fl_type_RUBY_FL_SHAREABLE: ruby_fl_type = 256;
526pub const ruby_fl_type_RUBY_FL_UNTRUSTED: ruby_fl_type = 256;
527pub const ruby_fl_type_RUBY_FL_SEEN_OBJ_ID: ruby_fl_type = 512;
528pub const ruby_fl_type_RUBY_FL_EXIVAR: ruby_fl_type = 1024;
529pub const ruby_fl_type_RUBY_FL_FREEZE: ruby_fl_type = 2048;
530pub const ruby_fl_type_RUBY_FL_USER0: ruby_fl_type = 4096;
531pub const ruby_fl_type_RUBY_FL_USER1: ruby_fl_type = 8192;
532pub const ruby_fl_type_RUBY_FL_USER2: ruby_fl_type = 16384;
533pub const ruby_fl_type_RUBY_FL_USER3: ruby_fl_type = 32768;
534pub const ruby_fl_type_RUBY_FL_USER4: ruby_fl_type = 65536;
535pub const ruby_fl_type_RUBY_FL_USER5: ruby_fl_type = 131072;
536pub const ruby_fl_type_RUBY_FL_USER6: ruby_fl_type = 262144;
537pub const ruby_fl_type_RUBY_FL_USER7: ruby_fl_type = 524288;
538pub const ruby_fl_type_RUBY_FL_USER8: ruby_fl_type = 1048576;
539pub const ruby_fl_type_RUBY_FL_USER9: ruby_fl_type = 2097152;
540pub const ruby_fl_type_RUBY_FL_USER10: ruby_fl_type = 4194304;
541pub const ruby_fl_type_RUBY_FL_USER11: ruby_fl_type = 8388608;
542pub const ruby_fl_type_RUBY_FL_USER12: ruby_fl_type = 16777216;
543pub const ruby_fl_type_RUBY_FL_USER13: ruby_fl_type = 33554432;
544pub const ruby_fl_type_RUBY_FL_USER14: ruby_fl_type = 67108864;
545pub const ruby_fl_type_RUBY_FL_USER15: ruby_fl_type = 134217728;
546pub const ruby_fl_type_RUBY_FL_USER16: ruby_fl_type = 268435456;
547pub const ruby_fl_type_RUBY_FL_USER17: ruby_fl_type = 536870912;
548pub const ruby_fl_type_RUBY_FL_USER18: ruby_fl_type = 1073741824;
549pub const ruby_fl_type_RUBY_FL_USER19: ruby_fl_type = -2147483648;
550pub const ruby_fl_type_RUBY_ELTS_SHARED: ruby_fl_type = 16384;
551pub const ruby_fl_type_RUBY_FL_SINGLETON: ruby_fl_type = 4096;
552pub type ruby_fl_type = ::std::os::raw::c_int;
553#[repr(C)]
554#[derive(Copy, Clone)]
555pub struct RString {
556    pub basic: RBasic,
557    pub as_: RString__bindgen_ty_1,
558}
559#[repr(C)]
560#[derive(Copy, Clone)]
561pub union RString__bindgen_ty_1 {
562    pub heap: RString__bindgen_ty_1__bindgen_ty_1,
563    pub embed: RString__bindgen_ty_1__bindgen_ty_2,
564}
565#[repr(C)]
566#[derive(Copy, Clone)]
567pub struct RString__bindgen_ty_1__bindgen_ty_1 {
568    pub len: ::std::os::raw::c_long,
569    pub ptr: *mut ::std::os::raw::c_char,
570    pub aux: RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
571}
572#[repr(C)]
573#[derive(Copy, Clone)]
574pub union RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
575    pub capa: ::std::os::raw::c_long,
576    pub shared: VALUE,
577}
578impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
579    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
580        write!(
581            f,
582            "RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
583        )
584    }
585}
586impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1 {
587    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
588        write!(
589            f,
590            "RString__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, ptr: {:?}, aux: {:?} }}",
591            self.len, self.ptr, self.aux
592        )
593    }
594}
595#[repr(C)]
596#[derive(Debug, Copy, Clone)]
597pub struct RString__bindgen_ty_1__bindgen_ty_2 {
598    pub ary: [::std::os::raw::c_char; 24usize],
599}
600impl ::std::fmt::Debug for RString__bindgen_ty_1 {
601    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
602        write!(f, "RString__bindgen_ty_1 {{ union }}")
603    }
604}
605impl ::std::fmt::Debug for RString {
606    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
607        write!(
608            f,
609            "RString {{ basic: {:?}, as: {:?} }}",
610            self.basic, self.as_
611        )
612    }
613}
614pub type st_data_t = usize;
615pub type st_index_t = st_data_t;
616#[repr(C)]
617#[derive(Debug, Copy, Clone)]
618pub struct st_hash_type {
619    pub compare: ::std::option::Option<
620        unsafe extern "C" fn(arg1: st_data_t, arg2: st_data_t) -> ::std::os::raw::c_int,
621    >,
622    pub hash: ::std::option::Option<unsafe extern "C" fn(arg1: st_data_t) -> st_index_t>,
623}
624#[repr(C)]
625#[derive(Debug, Copy, Clone)]
626pub struct st_table_entry {
627    _unused: [u8; 0],
628}
629#[repr(C)]
630#[derive(Debug, Copy, Clone)]
631pub struct st_table {
632    pub entry_power: ::std::os::raw::c_uchar,
633    pub bin_power: ::std::os::raw::c_uchar,
634    pub size_ind: ::std::os::raw::c_uchar,
635    pub rebuilds_num: ::std::os::raw::c_uint,
636    pub type_: *const st_hash_type,
637    pub num_entries: st_index_t,
638    pub bins: *mut st_index_t,
639    pub entries_start: st_index_t,
640    pub entries_bound: st_index_t,
641    pub entries: *mut st_table_entry,
642}
643#[repr(C)]
644#[derive(Copy, Clone)]
645pub struct RArray {
646    pub basic: RBasic,
647    pub as_: RArray__bindgen_ty_1,
648}
649#[repr(C)]
650#[derive(Copy, Clone)]
651pub union RArray__bindgen_ty_1 {
652    pub heap: RArray__bindgen_ty_1__bindgen_ty_1,
653    pub ary: [VALUE; 3usize],
654}
655#[repr(C)]
656#[derive(Copy, Clone)]
657pub struct RArray__bindgen_ty_1__bindgen_ty_1 {
658    pub len: ::std::os::raw::c_long,
659    pub aux: RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
660    pub ptr: *const VALUE,
661}
662#[repr(C)]
663#[derive(Copy, Clone)]
664pub union RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
665    pub capa: ::std::os::raw::c_long,
666    pub shared_root: VALUE,
667}
668impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
669    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
670        write!(
671            f,
672            "RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
673        )
674    }
675}
676impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1 {
677    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
678        write!(
679            f,
680            "RArray__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, aux: {:?}, ptr: {:?} }}",
681            self.len, self.aux, self.ptr
682        )
683    }
684}
685impl ::std::fmt::Debug for RArray__bindgen_ty_1 {
686    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
687        write!(f, "RArray__bindgen_ty_1 {{ union }}")
688    }
689}
690impl ::std::fmt::Debug for RArray {
691    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
692        write!(
693            f,
694            "RArray {{ basic: {:?}, as: {:?} }}",
695            self.basic, self.as_
696        )
697    }
698}
699pub type rb_event_flag_t = u32;
700pub type rb_unblock_function_t =
701    ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
702pub type rb_serial_t = ::std::os::raw::c_ulonglong;
703#[repr(C)]
704#[derive(Debug, Copy, Clone)]
705pub struct rb_callinfo {
706    _unused: [u8; 0],
707}
708pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
709pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
710pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
711pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
712pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
713pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
714pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
715pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
716pub type method_missing_reason = ::std::os::raw::c_uint;
717#[repr(C)]
718#[derive(Debug, Copy, Clone)]
719pub struct rb_callcache {
720    _unused: [u8; 0],
721}
722#[repr(C)]
723#[derive(Debug, Copy, Clone)]
724pub struct rb_objspace {
725    _unused: [u8; 0],
726}
727#[repr(C)]
728#[derive(Debug, Copy, Clone)]
729pub struct ractor_newobj_size_pool_cache {
730    pub freelist: *mut RVALUE,
731    pub using_page: *mut heap_page,
732}
733pub type rb_ractor_newobj_size_pool_cache_t = ractor_newobj_size_pool_cache;
734#[repr(C)]
735#[derive(Debug, Copy, Clone)]
736pub struct ractor_newobj_cache {
737    pub size_pool_caches: [rb_ractor_newobj_size_pool_cache_t; 1usize],
738}
739pub type rb_ractor_newobj_cache_t = ractor_newobj_cache;
740pub const imemo_type_imemo_env: imemo_type = 0;
741pub const imemo_type_imemo_cref: imemo_type = 1;
742pub const imemo_type_imemo_svar: imemo_type = 2;
743pub const imemo_type_imemo_throw_data: imemo_type = 3;
744pub const imemo_type_imemo_ifunc: imemo_type = 4;
745pub const imemo_type_imemo_memo: imemo_type = 5;
746pub const imemo_type_imemo_ment: imemo_type = 6;
747pub const imemo_type_imemo_iseq: imemo_type = 7;
748pub const imemo_type_imemo_tmpbuf: imemo_type = 8;
749pub const imemo_type_imemo_ast: imemo_type = 9;
750pub const imemo_type_imemo_parser_strterm: imemo_type = 10;
751pub const imemo_type_imemo_callinfo: imemo_type = 11;
752pub const imemo_type_imemo_callcache: imemo_type = 12;
753pub const imemo_type_imemo_constcache: imemo_type = 13;
754pub type imemo_type = ::std::os::raw::c_uint;
755#[repr(C)]
756#[derive(Debug, Copy, Clone)]
757pub struct vm_svar {
758    pub flags: VALUE,
759    pub cref_or_me: VALUE,
760    pub lastline: VALUE,
761    pub backref: VALUE,
762    pub others: VALUE,
763}
764pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
765pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
766pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
767pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
768pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
769pub type rb_method_visibility_t = ::std::os::raw::c_uint;
770#[repr(C)]
771#[repr(align(4))]
772#[derive(Debug, Copy, Clone)]
773pub struct rb_scope_visi_struct {
774    pub _bitfield_align_1: [u8; 0],
775    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
776    pub __bindgen_padding_0: [u8; 3usize],
777}
778impl rb_scope_visi_struct {
779    #[inline]
780    pub fn method_visi(&self) -> rb_method_visibility_t {
781        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) }
782    }
783    #[inline]
784    pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
785        unsafe {
786            let val: u32 = ::std::mem::transmute(val);
787            self._bitfield_1.set(0usize, 3u8, val as u64)
788        }
789    }
790    #[inline]
791    pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
792        unsafe {
793            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
794                ::std::ptr::addr_of!((*this)._bitfield_1),
795                0usize,
796                3u8,
797            ) as u32)
798        }
799    }
800    #[inline]
801    pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
802        unsafe {
803            let val: u32 = ::std::mem::transmute(val);
804            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
805                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
806                0usize,
807                3u8,
808                val as u64,
809            )
810        }
811    }
812    #[inline]
813    pub fn module_func(&self) -> ::std::os::raw::c_uint {
814        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
815    }
816    #[inline]
817    pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
818        unsafe {
819            let val: u32 = ::std::mem::transmute(val);
820            self._bitfield_1.set(3usize, 1u8, val as u64)
821        }
822    }
823    #[inline]
824    pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
825        unsafe {
826            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
827                ::std::ptr::addr_of!((*this)._bitfield_1),
828                3usize,
829                1u8,
830            ) as u32)
831        }
832    }
833    #[inline]
834    pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
835        unsafe {
836            let val: u32 = ::std::mem::transmute(val);
837            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
838                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
839                3usize,
840                1u8,
841                val as u64,
842            )
843        }
844    }
845    #[inline]
846    pub fn new_bitfield_1(
847        method_visi: rb_method_visibility_t,
848        module_func: ::std::os::raw::c_uint,
849    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
850        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
851        __bindgen_bitfield_unit.set(0usize, 3u8, {
852            let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
853            method_visi as u64
854        });
855        __bindgen_bitfield_unit.set(3usize, 1u8, {
856            let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
857            module_func as u64
858        });
859        __bindgen_bitfield_unit
860    }
861}
862pub type rb_scope_visibility_t = rb_scope_visi_struct;
863#[repr(C)]
864#[derive(Debug, Copy, Clone)]
865pub struct rb_cref_struct {
866    pub flags: VALUE,
867    pub refinements: VALUE,
868    pub klass_or_self: VALUE,
869    pub next: *mut rb_cref_struct,
870    pub scope_visi: rb_scope_visibility_t,
871}
872pub type rb_cref_t = rb_cref_struct;
873#[repr(C)]
874#[derive(Debug, Copy, Clone)]
875pub struct rb_method_entry_struct {
876    pub flags: VALUE,
877    pub defined_class: VALUE,
878    pub def: *mut rb_method_definition_struct,
879    pub called_id: ID,
880    pub owner: VALUE,
881}
882pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
883pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
884pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
885pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
886pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
887pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
888pub const rb_method_type_t_VM_METHOD_TYPE_ALIAS: rb_method_type_t = 6;
889pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 7;
890pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 8;
891pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 9;
892pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 10;
893pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 11;
894pub type rb_method_type_t = ::std::os::raw::c_uint;
895pub type rb_iseq_t = rb_iseq_struct;
896#[repr(C)]
897#[derive(Debug, Copy, Clone)]
898pub struct rb_method_iseq_struct {
899    pub iseqptr: *const rb_iseq_t,
900    pub cref: *mut rb_cref_t,
901}
902pub type rb_method_iseq_t = rb_method_iseq_struct;
903#[repr(C)]
904#[derive(Debug, Copy, Clone)]
905pub struct rb_method_cfunc_struct {
906    pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
907    pub invoker: ::std::option::Option<
908        unsafe extern "C" fn(
909            recv: VALUE,
910            argc: ::std::os::raw::c_int,
911            argv: *const VALUE,
912            func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
913        ) -> VALUE,
914    >,
915    pub argc: ::std::os::raw::c_int,
916}
917pub type rb_method_cfunc_t = rb_method_cfunc_struct;
918#[repr(C)]
919#[derive(Debug, Copy, Clone)]
920pub struct rb_method_attr_struct {
921    pub id: ID,
922    pub location: VALUE,
923}
924pub type rb_method_attr_t = rb_method_attr_struct;
925#[repr(C)]
926#[derive(Debug, Copy, Clone)]
927pub struct rb_method_alias_struct {
928    pub original_me: *mut rb_method_entry_struct,
929}
930pub type rb_method_alias_t = rb_method_alias_struct;
931#[repr(C)]
932#[derive(Debug, Copy, Clone)]
933pub struct rb_method_refined_struct {
934    pub orig_me: *mut rb_method_entry_struct,
935    pub owner: VALUE,
936}
937pub type rb_method_refined_t = rb_method_refined_struct;
938#[repr(C)]
939#[derive(Debug, Copy, Clone)]
940pub struct rb_method_bmethod_struct {
941    pub proc_: VALUE,
942    pub hooks: *mut rb_hook_list_struct,
943    pub defined_ractor: VALUE,
944}
945pub type rb_method_bmethod_t = rb_method_bmethod_struct;
946pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND: method_optimized_type = 0;
947pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL: method_optimized_type = 1;
948pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_BLOCK_CALL: method_optimized_type = 2;
949pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_STRUCT_AREF: method_optimized_type = 3;
950pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_STRUCT_ASET: method_optimized_type = 4;
951pub const method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX: method_optimized_type = 5;
952pub type method_optimized_type = ::std::os::raw::c_uint;
953#[repr(C)]
954#[derive(Debug, Copy, Clone)]
955pub struct rb_method_optimized {
956    pub type_: method_optimized_type,
957    pub index: ::std::os::raw::c_uint,
958}
959pub type rb_method_optimized_t = rb_method_optimized;
960#[repr(C)]
961#[derive(Copy, Clone)]
962pub struct rb_method_definition_struct {
963    pub _bitfield_align_1: [u32; 0],
964    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
965    pub body: rb_method_definition_struct__bindgen_ty_1,
966    pub original_id: ID,
967    pub method_serial: usize,
968}
969#[repr(C)]
970#[derive(Copy, Clone)]
971pub union rb_method_definition_struct__bindgen_ty_1 {
972    pub iseq: rb_method_iseq_t,
973    pub cfunc: rb_method_cfunc_t,
974    pub attr: rb_method_attr_t,
975    pub alias: rb_method_alias_t,
976    pub refined: rb_method_refined_t,
977    pub bmethod: rb_method_bmethod_t,
978    pub optimized: rb_method_optimized_t,
979}
980impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
981    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
982        write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
983    }
984}
985impl rb_method_definition_struct {
986    #[inline]
987    pub fn type_(&self) -> rb_method_type_t {
988        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
989    }
990    #[inline]
991    pub fn set_type(&mut self, val: rb_method_type_t) {
992        unsafe {
993            let val: u32 = ::std::mem::transmute(val);
994            self._bitfield_1.set(0usize, 4u8, val as u64)
995        }
996    }
997    #[inline]
998    pub unsafe fn type__raw(this: *const Self) -> rb_method_type_t {
999        unsafe {
1000            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1001                ::std::ptr::addr_of!((*this)._bitfield_1),
1002                0usize,
1003                4u8,
1004            ) as u32)
1005        }
1006    }
1007    #[inline]
1008    pub unsafe fn set_type_raw(this: *mut Self, val: rb_method_type_t) {
1009        unsafe {
1010            let val: u32 = ::std::mem::transmute(val);
1011            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1012                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1013                0usize,
1014                4u8,
1015                val as u64,
1016            )
1017        }
1018    }
1019    #[inline]
1020    pub fn iseq_overload(&self) -> ::std::os::raw::c_uint {
1021        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1022    }
1023    #[inline]
1024    pub fn set_iseq_overload(&mut self, val: ::std::os::raw::c_uint) {
1025        unsafe {
1026            let val: u32 = ::std::mem::transmute(val);
1027            self._bitfield_1.set(4usize, 1u8, val as u64)
1028        }
1029    }
1030    #[inline]
1031    pub unsafe fn iseq_overload_raw(this: *const Self) -> ::std::os::raw::c_uint {
1032        unsafe {
1033            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1034                ::std::ptr::addr_of!((*this)._bitfield_1),
1035                4usize,
1036                1u8,
1037            ) as u32)
1038        }
1039    }
1040    #[inline]
1041    pub unsafe fn set_iseq_overload_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1042        unsafe {
1043            let val: u32 = ::std::mem::transmute(val);
1044            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1045                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1046                4usize,
1047                1u8,
1048                val as u64,
1049            )
1050        }
1051    }
1052    #[inline]
1053    pub fn alias_count(&self) -> ::std::os::raw::c_int {
1054        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) }
1055    }
1056    #[inline]
1057    pub fn set_alias_count(&mut self, val: ::std::os::raw::c_int) {
1058        unsafe {
1059            let val: u32 = ::std::mem::transmute(val);
1060            self._bitfield_1.set(5usize, 27u8, val as u64)
1061        }
1062    }
1063    #[inline]
1064    pub unsafe fn alias_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1065        unsafe {
1066            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1067                ::std::ptr::addr_of!((*this)._bitfield_1),
1068                5usize,
1069                27u8,
1070            ) as u32)
1071        }
1072    }
1073    #[inline]
1074    pub unsafe fn set_alias_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1075        unsafe {
1076            let val: u32 = ::std::mem::transmute(val);
1077            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1078                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1079                5usize,
1080                27u8,
1081                val as u64,
1082            )
1083        }
1084    }
1085    #[inline]
1086    pub fn complemented_count(&self) -> ::std::os::raw::c_int {
1087        unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 28u8) as u32) }
1088    }
1089    #[inline]
1090    pub fn set_complemented_count(&mut self, val: ::std::os::raw::c_int) {
1091        unsafe {
1092            let val: u32 = ::std::mem::transmute(val);
1093            self._bitfield_1.set(32usize, 28u8, val as u64)
1094        }
1095    }
1096    #[inline]
1097    pub unsafe fn complemented_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1098        unsafe {
1099            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1100                ::std::ptr::addr_of!((*this)._bitfield_1),
1101                32usize,
1102                28u8,
1103            ) as u32)
1104        }
1105    }
1106    #[inline]
1107    pub unsafe fn set_complemented_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1108        unsafe {
1109            let val: u32 = ::std::mem::transmute(val);
1110            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1111                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1112                32usize,
1113                28u8,
1114                val as u64,
1115            )
1116        }
1117    }
1118    #[inline]
1119    pub fn no_redef_warning(&self) -> ::std::os::raw::c_uint {
1120        unsafe { ::std::mem::transmute(self._bitfield_1.get(60usize, 1u8) as u32) }
1121    }
1122    #[inline]
1123    pub fn set_no_redef_warning(&mut self, val: ::std::os::raw::c_uint) {
1124        unsafe {
1125            let val: u32 = ::std::mem::transmute(val);
1126            self._bitfield_1.set(60usize, 1u8, val as u64)
1127        }
1128    }
1129    #[inline]
1130    pub unsafe fn no_redef_warning_raw(this: *const Self) -> ::std::os::raw::c_uint {
1131        unsafe {
1132            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1133                ::std::ptr::addr_of!((*this)._bitfield_1),
1134                60usize,
1135                1u8,
1136            ) as u32)
1137        }
1138    }
1139    #[inline]
1140    pub unsafe fn set_no_redef_warning_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1141        unsafe {
1142            let val: u32 = ::std::mem::transmute(val);
1143            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1144                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1145                60usize,
1146                1u8,
1147                val as u64,
1148            )
1149        }
1150    }
1151    #[inline]
1152    pub fn new_bitfield_1(
1153        type_: rb_method_type_t,
1154        iseq_overload: ::std::os::raw::c_uint,
1155        alias_count: ::std::os::raw::c_int,
1156        complemented_count: ::std::os::raw::c_int,
1157        no_redef_warning: ::std::os::raw::c_uint,
1158    ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
1159        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
1160        __bindgen_bitfield_unit.set(0usize, 4u8, {
1161            let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1162            type_ as u64
1163        });
1164        __bindgen_bitfield_unit.set(4usize, 1u8, {
1165            let iseq_overload: u32 = unsafe { ::std::mem::transmute(iseq_overload) };
1166            iseq_overload as u64
1167        });
1168        __bindgen_bitfield_unit.set(5usize, 27u8, {
1169            let alias_count: u32 = unsafe { ::std::mem::transmute(alias_count) };
1170            alias_count as u64
1171        });
1172        __bindgen_bitfield_unit.set(32usize, 28u8, {
1173            let complemented_count: u32 = unsafe { ::std::mem::transmute(complemented_count) };
1174            complemented_count as u64
1175        });
1176        __bindgen_bitfield_unit.set(60usize, 1u8, {
1177            let no_redef_warning: u32 = unsafe { ::std::mem::transmute(no_redef_warning) };
1178            no_redef_warning as u64
1179        });
1180        __bindgen_bitfield_unit
1181    }
1182}
1183#[repr(C)]
1184#[derive(Debug, Copy, Clone)]
1185pub struct rb_id_table {
1186    _unused: [u8; 0],
1187}
1188#[repr(C)]
1189#[derive(Debug, Copy, Clone)]
1190pub struct rb_code_position_struct {
1191    pub lineno: ::std::os::raw::c_int,
1192    pub column: ::std::os::raw::c_int,
1193}
1194pub type rb_code_position_t = rb_code_position_struct;
1195#[repr(C)]
1196#[derive(Debug, Copy, Clone)]
1197pub struct rb_code_location_struct {
1198    pub beg_pos: rb_code_position_t,
1199    pub end_pos: rb_code_position_t,
1200}
1201pub type rb_code_location_t = rb_code_location_struct;
1202#[repr(C)]
1203#[derive(Debug)]
1204pub struct rb_ast_id_table {
1205    pub size: ::std::os::raw::c_int,
1206    pub ids: __IncompleteArrayField<ID>,
1207}
1208pub type rb_ast_id_table_t = rb_ast_id_table;
1209#[repr(C)]
1210#[derive(Copy, Clone)]
1211pub struct RNode {
1212    pub flags: VALUE,
1213    pub u1: RNode__bindgen_ty_1,
1214    pub u2: RNode__bindgen_ty_2,
1215    pub u3: RNode__bindgen_ty_3,
1216    pub nd_loc: rb_code_location_t,
1217    pub node_id: ::std::os::raw::c_int,
1218}
1219#[repr(C)]
1220#[derive(Copy, Clone)]
1221pub union RNode__bindgen_ty_1 {
1222    pub node: *mut RNode,
1223    pub id: ID,
1224    pub value: VALUE,
1225    pub tbl: *mut rb_ast_id_table_t,
1226}
1227impl ::std::fmt::Debug for RNode__bindgen_ty_1 {
1228    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1229        write!(f, "RNode__bindgen_ty_1 {{ union }}")
1230    }
1231}
1232#[repr(C)]
1233#[derive(Copy, Clone)]
1234pub union RNode__bindgen_ty_2 {
1235    pub node: *mut RNode,
1236    pub id: ID,
1237    pub argc: ::std::os::raw::c_long,
1238    pub value: VALUE,
1239}
1240impl ::std::fmt::Debug for RNode__bindgen_ty_2 {
1241    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1242        write!(f, "RNode__bindgen_ty_2 {{ union }}")
1243    }
1244}
1245#[repr(C)]
1246#[derive(Copy, Clone)]
1247pub union RNode__bindgen_ty_3 {
1248    pub node: *mut RNode,
1249    pub id: ID,
1250    pub state: ::std::os::raw::c_long,
1251    pub args: *mut rb_args_info,
1252    pub apinfo: *mut rb_ary_pattern_info,
1253    pub fpinfo: *mut rb_fnd_pattern_info,
1254    pub value: VALUE,
1255}
1256impl ::std::fmt::Debug for RNode__bindgen_ty_3 {
1257    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1258        write!(f, "RNode__bindgen_ty_3 {{ union }}")
1259    }
1260}
1261impl ::std::fmt::Debug for RNode {
1262    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1263        write!(
1264            f,
1265            "RNode {{ flags: {:?}, u1: {:?}, u2: {:?}, u3: {:?}, nd_loc: {:?}, node_id: {:?} }}",
1266            self.flags, self.u1, self.u2, self.u3, self.nd_loc, self.node_id
1267        )
1268    }
1269}
1270pub type NODE = RNode;
1271#[repr(C)]
1272#[derive(Debug, Copy, Clone)]
1273pub struct rb_args_info {
1274    pub pre_init: *mut NODE,
1275    pub post_init: *mut NODE,
1276    pub pre_args_num: ::std::os::raw::c_int,
1277    pub post_args_num: ::std::os::raw::c_int,
1278    pub first_post_arg: ID,
1279    pub rest_arg: ID,
1280    pub block_arg: ID,
1281    pub kw_args: *mut NODE,
1282    pub kw_rest_arg: *mut NODE,
1283    pub opt_args: *mut NODE,
1284    pub _bitfield_align_1: [u8; 0],
1285    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1286    pub imemo: VALUE,
1287}
1288impl rb_args_info {
1289    #[inline]
1290    pub fn no_kwarg(&self) -> ::std::os::raw::c_uint {
1291        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1292    }
1293    #[inline]
1294    pub fn set_no_kwarg(&mut self, val: ::std::os::raw::c_uint) {
1295        unsafe {
1296            let val: u32 = ::std::mem::transmute(val);
1297            self._bitfield_1.set(0usize, 1u8, val as u64)
1298        }
1299    }
1300    #[inline]
1301    pub unsafe fn no_kwarg_raw(this: *const Self) -> ::std::os::raw::c_uint {
1302        unsafe {
1303            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1304                ::std::ptr::addr_of!((*this)._bitfield_1),
1305                0usize,
1306                1u8,
1307            ) as u32)
1308        }
1309    }
1310    #[inline]
1311    pub unsafe fn set_no_kwarg_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1312        unsafe {
1313            let val: u32 = ::std::mem::transmute(val);
1314            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1315                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1316                0usize,
1317                1u8,
1318                val as u64,
1319            )
1320        }
1321    }
1322    #[inline]
1323    pub fn ruby2_keywords(&self) -> ::std::os::raw::c_uint {
1324        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1325    }
1326    #[inline]
1327    pub fn set_ruby2_keywords(&mut self, val: ::std::os::raw::c_uint) {
1328        unsafe {
1329            let val: u32 = ::std::mem::transmute(val);
1330            self._bitfield_1.set(1usize, 1u8, val as u64)
1331        }
1332    }
1333    #[inline]
1334    pub unsafe fn ruby2_keywords_raw(this: *const Self) -> ::std::os::raw::c_uint {
1335        unsafe {
1336            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1337                ::std::ptr::addr_of!((*this)._bitfield_1),
1338                1usize,
1339                1u8,
1340            ) as u32)
1341        }
1342    }
1343    #[inline]
1344    pub unsafe fn set_ruby2_keywords_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1345        unsafe {
1346            let val: u32 = ::std::mem::transmute(val);
1347            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1348                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1349                1usize,
1350                1u8,
1351                val as u64,
1352            )
1353        }
1354    }
1355    #[inline]
1356    pub fn new_bitfield_1(
1357        no_kwarg: ::std::os::raw::c_uint,
1358        ruby2_keywords: ::std::os::raw::c_uint,
1359    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1360        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1361        __bindgen_bitfield_unit.set(0usize, 1u8, {
1362            let no_kwarg: u32 = unsafe { ::std::mem::transmute(no_kwarg) };
1363            no_kwarg as u64
1364        });
1365        __bindgen_bitfield_unit.set(1usize, 1u8, {
1366            let ruby2_keywords: u32 = unsafe { ::std::mem::transmute(ruby2_keywords) };
1367            ruby2_keywords as u64
1368        });
1369        __bindgen_bitfield_unit
1370    }
1371}
1372#[repr(C)]
1373#[derive(Debug, Copy, Clone)]
1374pub struct rb_ary_pattern_info {
1375    pub pre_args: *mut NODE,
1376    pub rest_arg: *mut NODE,
1377    pub post_args: *mut NODE,
1378}
1379#[repr(C)]
1380#[derive(Debug, Copy, Clone)]
1381pub struct rb_fnd_pattern_info {
1382    pub pre_rest_arg: *mut NODE,
1383    pub args: *mut NODE,
1384    pub post_rest_arg: *mut NODE,
1385}
1386pub type rb_atomic_t = ::std::os::raw::c_uint;
1387#[repr(C)]
1388#[derive(Debug, Copy, Clone)]
1389pub struct rb_darray_meta {
1390    pub size: i32,
1391    pub capa: i32,
1392}
1393pub type rb_darray_meta_t = rb_darray_meta;
1394pub type rb_nativethread_id_t = pthread_t;
1395pub type rb_nativethread_lock_t = pthread_mutex_t;
1396pub type rb_nativethread_cond_t = pthread_cond_t;
1397#[repr(C)]
1398#[derive(Copy, Clone)]
1399pub struct native_thread_data_struct {
1400    pub node: native_thread_data_struct__bindgen_ty_1,
1401    pub cond: native_thread_data_struct__bindgen_ty_2,
1402}
1403#[repr(C)]
1404#[derive(Copy, Clone)]
1405pub union native_thread_data_struct__bindgen_ty_1 {
1406    pub ubf: list_node,
1407    pub gvl: list_node,
1408}
1409impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_1 {
1410    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1411        write!(f, "native_thread_data_struct__bindgen_ty_1 {{ union }}")
1412    }
1413}
1414#[repr(C)]
1415#[derive(Copy, Clone)]
1416pub union native_thread_data_struct__bindgen_ty_2 {
1417    pub intr: rb_nativethread_cond_t,
1418    pub gvlq: rb_nativethread_cond_t,
1419}
1420impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_2 {
1421    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1422        write!(f, "native_thread_data_struct__bindgen_ty_2 {{ union }}")
1423    }
1424}
1425impl ::std::fmt::Debug for native_thread_data_struct {
1426    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1427        write!(
1428            f,
1429            "native_thread_data_struct {{ node: {:?}, cond: {:?} }}",
1430            self.node, self.cond
1431        )
1432    }
1433}
1434pub type native_thread_data_t = native_thread_data_struct;
1435#[repr(C)]
1436#[derive(Copy, Clone)]
1437pub struct rb_global_vm_lock_struct {
1438    pub owner: *const rb_thread_struct,
1439    pub lock: rb_nativethread_lock_t,
1440    pub waitq: list_head,
1441    pub timer: *const rb_thread_struct,
1442    pub timer_err: ::std::os::raw::c_int,
1443    pub switch_cond: rb_nativethread_cond_t,
1444    pub switch_wait_cond: rb_nativethread_cond_t,
1445    pub need_yield: ::std::os::raw::c_int,
1446    pub wait_yield: ::std::os::raw::c_int,
1447}
1448impl ::std::fmt::Debug for rb_global_vm_lock_struct {
1449    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1450        write ! (f , "rb_global_vm_lock_struct {{ owner: {:?}, lock: {:?}, waitq: {:?}, timer: {:?}, timer_err: {:?}, switch_cond: {:?}, switch_wait_cond: {:?}, need_yield: {:?}, wait_yield: {:?} }}" , self . owner , self . lock , self . waitq , self . timer , self . timer_err , self . switch_cond , self . switch_wait_cond , self . need_yield , self . wait_yield)
1451    }
1452}
1453pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
1454pub type rb_snum_t = ::std::os::raw::c_long;
1455pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1456pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1457pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1458pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1459pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1460pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1461pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1462pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1463pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1464pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1465pub type ruby_tag_type = ::std::os::raw::c_uint;
1466pub type rb_compile_option_t = rb_compile_option_struct;
1467#[repr(C)]
1468#[derive(Copy, Clone)]
1469pub union ic_serial_entry {
1470    pub raw: rb_serial_t,
1471    pub data: [VALUE; 2usize],
1472}
1473impl ::std::fmt::Debug for ic_serial_entry {
1474    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1475        write!(f, "ic_serial_entry {{ union }}")
1476    }
1477}
1478#[repr(C)]
1479#[derive(Copy, Clone)]
1480pub struct iseq_inline_constant_cache_entry {
1481    pub flags: VALUE,
1482    pub value: VALUE,
1483    pub ic_serial: ic_serial_entry,
1484    pub ic_cref: *const rb_cref_t,
1485}
1486impl ::std::fmt::Debug for iseq_inline_constant_cache_entry {
1487    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1488        write ! (f , "iseq_inline_constant_cache_entry {{ flags: {:?}, value: {:?}, ic_serial: {:?}, ic_cref: {:?} }}" , self . flags , self . value , self . ic_serial , self . ic_cref)
1489    }
1490}
1491#[repr(C)]
1492#[derive(Debug, Copy, Clone)]
1493pub struct iseq_inline_constant_cache {
1494    pub entry: *mut iseq_inline_constant_cache_entry,
1495    pub get_insn_idx: ::std::os::raw::c_uint,
1496}
1497#[repr(C)]
1498#[derive(Debug, Copy, Clone)]
1499pub struct iseq_inline_iv_cache_entry {
1500    pub entry: *mut rb_iv_index_tbl_entry,
1501}
1502#[repr(C)]
1503#[derive(Copy, Clone)]
1504pub union iseq_inline_storage_entry {
1505    pub once: iseq_inline_storage_entry__bindgen_ty_1,
1506    pub ic_cache: iseq_inline_constant_cache,
1507    pub iv_cache: iseq_inline_iv_cache_entry,
1508}
1509#[repr(C)]
1510#[derive(Debug, Copy, Clone)]
1511pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1512    pub running_thread: *mut rb_thread_struct,
1513    pub value: VALUE,
1514}
1515impl ::std::fmt::Debug for iseq_inline_storage_entry {
1516    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1517        write!(f, "iseq_inline_storage_entry {{ union }}")
1518    }
1519}
1520#[repr(C)]
1521#[derive(Debug, Copy, Clone)]
1522pub struct rb_calling_info {
1523    pub ci: *const rb_callinfo,
1524    pub cc: *const rb_callcache,
1525    pub block_handler: VALUE,
1526    pub recv: VALUE,
1527    pub argc: ::std::os::raw::c_int,
1528    pub kw_splat: ::std::os::raw::c_int,
1529}
1530#[repr(C)]
1531#[derive(Debug, Copy, Clone)]
1532pub struct rb_iseq_location_struct {
1533    pub pathobj: VALUE,
1534    pub base_label: VALUE,
1535    pub label: VALUE,
1536    pub first_lineno: VALUE,
1537    pub node_id: ::std::os::raw::c_int,
1538    pub code_location: rb_code_location_t,
1539}
1540pub type rb_iseq_location_t = rb_iseq_location_struct;
1541#[repr(C)]
1542#[derive(Debug, Copy, Clone)]
1543pub struct rb_mjit_unit {
1544    _unused: [u8; 0],
1545}
1546#[repr(C)]
1547#[derive(Debug)]
1548pub struct _bindgen_ty_36 {
1549    pub meta: rb_darray_meta_t,
1550    pub data: __IncompleteArrayField<*mut yjit_block_version>,
1551}
1552pub type rb_yjit_block_array_t = *mut _bindgen_ty_36;
1553#[repr(C)]
1554#[derive(Debug)]
1555pub struct _bindgen_ty_37 {
1556    pub meta: rb_darray_meta_t,
1557    pub data: __IncompleteArrayField<rb_yjit_block_array_t>,
1558}
1559pub type rb_yjit_block_array_array_t = *mut _bindgen_ty_37;
1560#[repr(C)]
1561#[derive(Debug, Copy, Clone)]
1562pub struct rb_iseq_constant_body {
1563    pub type_: rb_iseq_constant_body_iseq_type,
1564    pub iseq_size: ::std::os::raw::c_uint,
1565    pub iseq_encoded: *mut VALUE,
1566    pub param: rb_iseq_constant_body__bindgen_ty_1,
1567    pub location: rb_iseq_location_t,
1568    pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1569    pub local_table: *const ID,
1570    pub catch_table: *mut iseq_catch_table,
1571    pub parent_iseq: *const rb_iseq_struct,
1572    pub local_iseq: *mut rb_iseq_struct,
1573    pub is_entries: *mut iseq_inline_storage_entry,
1574    pub call_data: *mut rb_call_data,
1575    pub variable: rb_iseq_constant_body__bindgen_ty_2,
1576    pub local_table_size: ::std::os::raw::c_uint,
1577    pub is_size: ::std::os::raw::c_uint,
1578    pub ci_size: ::std::os::raw::c_uint,
1579    pub stack_max: ::std::os::raw::c_uint,
1580    pub catch_except_p: ::std::os::raw::c_char,
1581    pub builtin_inline_p: bool,
1582    pub outer_variables: *mut rb_id_table,
1583    pub mandatory_only_iseq: *const rb_iseq_t,
1584    pub jit_func: ::std::option::Option<
1585        unsafe extern "C" fn(
1586            arg1: *mut rb_execution_context_struct,
1587            arg2: *mut rb_control_frame_struct,
1588        ) -> VALUE,
1589    >,
1590    pub total_calls: ::std::os::raw::c_ulong,
1591    pub jit_unit: *mut rb_mjit_unit,
1592    pub yjit_blocks: rb_yjit_block_array_array_t,
1593}
1594pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_TOP: rb_iseq_constant_body_iseq_type = 0;
1595pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_constant_body_iseq_type = 1;
1596pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_constant_body_iseq_type = 2;
1597pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_constant_body_iseq_type = 3;
1598pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_constant_body_iseq_type = 4;
1599pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_constant_body_iseq_type = 5;
1600pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_constant_body_iseq_type = 6;
1601pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_constant_body_iseq_type = 7;
1602pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_constant_body_iseq_type = 8;
1603pub type rb_iseq_constant_body_iseq_type = ::std::os::raw::c_uint;
1604#[repr(C)]
1605#[derive(Debug, Copy, Clone)]
1606pub struct rb_iseq_constant_body__bindgen_ty_1 {
1607    pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1608    pub size: ::std::os::raw::c_uint,
1609    pub lead_num: ::std::os::raw::c_int,
1610    pub opt_num: ::std::os::raw::c_int,
1611    pub rest_start: ::std::os::raw::c_int,
1612    pub post_start: ::std::os::raw::c_int,
1613    pub post_num: ::std::os::raw::c_int,
1614    pub block_start: ::std::os::raw::c_int,
1615    pub opt_table: *const VALUE,
1616    pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1617}
1618#[repr(C)]
1619#[repr(align(4))]
1620#[derive(Debug, Copy, Clone)]
1621pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1622    pub _bitfield_align_1: [u8; 0],
1623    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
1624    pub __bindgen_padding_0: u16,
1625}
1626impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1627    #[inline]
1628    pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1629        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1630    }
1631    #[inline]
1632    pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1633        unsafe {
1634            let val: u32 = ::std::mem::transmute(val);
1635            self._bitfield_1.set(0usize, 1u8, val as u64)
1636        }
1637    }
1638    #[inline]
1639    pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1640        unsafe {
1641            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1642                ::std::ptr::addr_of!((*this)._bitfield_1),
1643                0usize,
1644                1u8,
1645            ) as u32)
1646        }
1647    }
1648    #[inline]
1649    pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1650        unsafe {
1651            let val: u32 = ::std::mem::transmute(val);
1652            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1653                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1654                0usize,
1655                1u8,
1656                val as u64,
1657            )
1658        }
1659    }
1660    #[inline]
1661    pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1662        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1663    }
1664    #[inline]
1665    pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1666        unsafe {
1667            let val: u32 = ::std::mem::transmute(val);
1668            self._bitfield_1.set(1usize, 1u8, val as u64)
1669        }
1670    }
1671    #[inline]
1672    pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1673        unsafe {
1674            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1675                ::std::ptr::addr_of!((*this)._bitfield_1),
1676                1usize,
1677                1u8,
1678            ) as u32)
1679        }
1680    }
1681    #[inline]
1682    pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1683        unsafe {
1684            let val: u32 = ::std::mem::transmute(val);
1685            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1686                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1687                1usize,
1688                1u8,
1689                val as u64,
1690            )
1691        }
1692    }
1693    #[inline]
1694    pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1695        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1696    }
1697    #[inline]
1698    pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1699        unsafe {
1700            let val: u32 = ::std::mem::transmute(val);
1701            self._bitfield_1.set(2usize, 1u8, val as u64)
1702        }
1703    }
1704    #[inline]
1705    pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1706        unsafe {
1707            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1708                ::std::ptr::addr_of!((*this)._bitfield_1),
1709                2usize,
1710                1u8,
1711            ) as u32)
1712        }
1713    }
1714    #[inline]
1715    pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1716        unsafe {
1717            let val: u32 = ::std::mem::transmute(val);
1718            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1719                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1720                2usize,
1721                1u8,
1722                val as u64,
1723            )
1724        }
1725    }
1726    #[inline]
1727    pub fn has_post(&self) -> ::std::os::raw::c_uint {
1728        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1729    }
1730    #[inline]
1731    pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1732        unsafe {
1733            let val: u32 = ::std::mem::transmute(val);
1734            self._bitfield_1.set(3usize, 1u8, val as u64)
1735        }
1736    }
1737    #[inline]
1738    pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1739        unsafe {
1740            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1741                ::std::ptr::addr_of!((*this)._bitfield_1),
1742                3usize,
1743                1u8,
1744            ) as u32)
1745        }
1746    }
1747    #[inline]
1748    pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1749        unsafe {
1750            let val: u32 = ::std::mem::transmute(val);
1751            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1752                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1753                3usize,
1754                1u8,
1755                val as u64,
1756            )
1757        }
1758    }
1759    #[inline]
1760    pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1761        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1762    }
1763    #[inline]
1764    pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1765        unsafe {
1766            let val: u32 = ::std::mem::transmute(val);
1767            self._bitfield_1.set(4usize, 1u8, val as u64)
1768        }
1769    }
1770    #[inline]
1771    pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1772        unsafe {
1773            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1774                ::std::ptr::addr_of!((*this)._bitfield_1),
1775                4usize,
1776                1u8,
1777            ) as u32)
1778        }
1779    }
1780    #[inline]
1781    pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1782        unsafe {
1783            let val: u32 = ::std::mem::transmute(val);
1784            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1785                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1786                4usize,
1787                1u8,
1788                val as u64,
1789            )
1790        }
1791    }
1792    #[inline]
1793    pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1794        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1795    }
1796    #[inline]
1797    pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1798        unsafe {
1799            let val: u32 = ::std::mem::transmute(val);
1800            self._bitfield_1.set(5usize, 1u8, val as u64)
1801        }
1802    }
1803    #[inline]
1804    pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1805        unsafe {
1806            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1807                ::std::ptr::addr_of!((*this)._bitfield_1),
1808                5usize,
1809                1u8,
1810            ) as u32)
1811        }
1812    }
1813    #[inline]
1814    pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1815        unsafe {
1816            let val: u32 = ::std::mem::transmute(val);
1817            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1818                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1819                5usize,
1820                1u8,
1821                val as u64,
1822            )
1823        }
1824    }
1825    #[inline]
1826    pub fn has_block(&self) -> ::std::os::raw::c_uint {
1827        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1828    }
1829    #[inline]
1830    pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1831        unsafe {
1832            let val: u32 = ::std::mem::transmute(val);
1833            self._bitfield_1.set(6usize, 1u8, val as u64)
1834        }
1835    }
1836    #[inline]
1837    pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1838        unsafe {
1839            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1840                ::std::ptr::addr_of!((*this)._bitfield_1),
1841                6usize,
1842                1u8,
1843            ) as u32)
1844        }
1845    }
1846    #[inline]
1847    pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1848        unsafe {
1849            let val: u32 = ::std::mem::transmute(val);
1850            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1851                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1852                6usize,
1853                1u8,
1854                val as u64,
1855            )
1856        }
1857    }
1858    #[inline]
1859    pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1860        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1861    }
1862    #[inline]
1863    pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1864        unsafe {
1865            let val: u32 = ::std::mem::transmute(val);
1866            self._bitfield_1.set(7usize, 1u8, val as u64)
1867        }
1868    }
1869    #[inline]
1870    pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1871        unsafe {
1872            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1873                ::std::ptr::addr_of!((*this)._bitfield_1),
1874                7usize,
1875                1u8,
1876            ) as u32)
1877        }
1878    }
1879    #[inline]
1880    pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1881        unsafe {
1882            let val: u32 = ::std::mem::transmute(val);
1883            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1884                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1885                7usize,
1886                1u8,
1887                val as u64,
1888            )
1889        }
1890    }
1891    #[inline]
1892    pub fn accepts_no_kwarg(&self) -> ::std::os::raw::c_uint {
1893        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
1894    }
1895    #[inline]
1896    pub fn set_accepts_no_kwarg(&mut self, val: ::std::os::raw::c_uint) {
1897        unsafe {
1898            let val: u32 = ::std::mem::transmute(val);
1899            self._bitfield_1.set(8usize, 1u8, val as u64)
1900        }
1901    }
1902    #[inline]
1903    pub unsafe fn accepts_no_kwarg_raw(this: *const Self) -> ::std::os::raw::c_uint {
1904        unsafe {
1905            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1906                ::std::ptr::addr_of!((*this)._bitfield_1),
1907                8usize,
1908                1u8,
1909            ) as u32)
1910        }
1911    }
1912    #[inline]
1913    pub unsafe fn set_accepts_no_kwarg_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1914        unsafe {
1915            let val: u32 = ::std::mem::transmute(val);
1916            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1917                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1918                8usize,
1919                1u8,
1920                val as u64,
1921            )
1922        }
1923    }
1924    #[inline]
1925    pub fn ruby2_keywords(&self) -> ::std::os::raw::c_uint {
1926        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
1927    }
1928    #[inline]
1929    pub fn set_ruby2_keywords(&mut self, val: ::std::os::raw::c_uint) {
1930        unsafe {
1931            let val: u32 = ::std::mem::transmute(val);
1932            self._bitfield_1.set(9usize, 1u8, val as u64)
1933        }
1934    }
1935    #[inline]
1936    pub unsafe fn ruby2_keywords_raw(this: *const Self) -> ::std::os::raw::c_uint {
1937        unsafe {
1938            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1939                ::std::ptr::addr_of!((*this)._bitfield_1),
1940                9usize,
1941                1u8,
1942            ) as u32)
1943        }
1944    }
1945    #[inline]
1946    pub unsafe fn set_ruby2_keywords_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1947        unsafe {
1948            let val: u32 = ::std::mem::transmute(val);
1949            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1950                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1951                9usize,
1952                1u8,
1953                val as u64,
1954            )
1955        }
1956    }
1957    #[inline]
1958    pub fn new_bitfield_1(
1959        has_lead: ::std::os::raw::c_uint,
1960        has_opt: ::std::os::raw::c_uint,
1961        has_rest: ::std::os::raw::c_uint,
1962        has_post: ::std::os::raw::c_uint,
1963        has_kw: ::std::os::raw::c_uint,
1964        has_kwrest: ::std::os::raw::c_uint,
1965        has_block: ::std::os::raw::c_uint,
1966        ambiguous_param0: ::std::os::raw::c_uint,
1967        accepts_no_kwarg: ::std::os::raw::c_uint,
1968        ruby2_keywords: ::std::os::raw::c_uint,
1969    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
1970        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
1971        __bindgen_bitfield_unit.set(0usize, 1u8, {
1972            let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1973            has_lead as u64
1974        });
1975        __bindgen_bitfield_unit.set(1usize, 1u8, {
1976            let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1977            has_opt as u64
1978        });
1979        __bindgen_bitfield_unit.set(2usize, 1u8, {
1980            let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1981            has_rest as u64
1982        });
1983        __bindgen_bitfield_unit.set(3usize, 1u8, {
1984            let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1985            has_post as u64
1986        });
1987        __bindgen_bitfield_unit.set(4usize, 1u8, {
1988            let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1989            has_kw as u64
1990        });
1991        __bindgen_bitfield_unit.set(5usize, 1u8, {
1992            let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1993            has_kwrest as u64
1994        });
1995        __bindgen_bitfield_unit.set(6usize, 1u8, {
1996            let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1997            has_block as u64
1998        });
1999        __bindgen_bitfield_unit.set(7usize, 1u8, {
2000            let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
2001            ambiguous_param0 as u64
2002        });
2003        __bindgen_bitfield_unit.set(8usize, 1u8, {
2004            let accepts_no_kwarg: u32 = unsafe { ::std::mem::transmute(accepts_no_kwarg) };
2005            accepts_no_kwarg as u64
2006        });
2007        __bindgen_bitfield_unit.set(9usize, 1u8, {
2008            let ruby2_keywords: u32 = unsafe { ::std::mem::transmute(ruby2_keywords) };
2009            ruby2_keywords as u64
2010        });
2011        __bindgen_bitfield_unit
2012    }
2013}
2014#[repr(C)]
2015#[derive(Debug, Copy, Clone)]
2016pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
2017    pub num: ::std::os::raw::c_int,
2018    pub required_num: ::std::os::raw::c_int,
2019    pub bits_start: ::std::os::raw::c_int,
2020    pub rest_start: ::std::os::raw::c_int,
2021    pub table: *const ID,
2022    pub default_values: *mut VALUE,
2023}
2024#[repr(C)]
2025#[derive(Debug, Copy, Clone)]
2026pub struct rb_iseq_constant_body_iseq_insn_info {
2027    pub body: *const iseq_insn_info_entry,
2028    pub positions: *mut ::std::os::raw::c_uint,
2029    pub size: ::std::os::raw::c_uint,
2030    pub succ_index_table: *mut succ_index_table,
2031}
2032#[repr(C)]
2033#[derive(Debug, Copy, Clone)]
2034pub struct rb_iseq_constant_body__bindgen_ty_2 {
2035    pub flip_count: rb_snum_t,
2036    pub script_lines: VALUE,
2037    pub coverage: VALUE,
2038    pub pc2branchindex: VALUE,
2039    pub original_iseq: *mut VALUE,
2040}
2041#[repr(C)]
2042#[derive(Copy, Clone)]
2043pub struct rb_iseq_struct {
2044    pub flags: VALUE,
2045    pub wrapper: VALUE,
2046    pub body: *mut rb_iseq_constant_body,
2047    pub aux: rb_iseq_struct__bindgen_ty_1,
2048}
2049#[repr(C)]
2050#[derive(Copy, Clone)]
2051pub union rb_iseq_struct__bindgen_ty_1 {
2052    pub compile_data: *mut iseq_compile_data,
2053    pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
2054    pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
2055}
2056#[repr(C)]
2057#[derive(Debug, Copy, Clone)]
2058pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
2059    pub obj: VALUE,
2060    pub index: ::std::os::raw::c_int,
2061}
2062#[repr(C)]
2063#[derive(Debug, Copy, Clone)]
2064pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
2065    pub local_hooks: *mut rb_hook_list_struct,
2066    pub global_trace_events: rb_event_flag_t,
2067}
2068impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
2069    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2070        write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
2071    }
2072}
2073impl ::std::fmt::Debug for rb_iseq_struct {
2074    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2075        write!(
2076            f,
2077            "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
2078            self.flags, self.wrapper, self.body, self.aux
2079        )
2080    }
2081}
2082pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
2083#[repr(C)]
2084#[derive(Debug, Copy, Clone)]
2085pub struct rb_at_exit_list {
2086    pub func: rb_vm_at_exit_func,
2087    pub next: *mut rb_at_exit_list,
2088}
2089#[repr(C)]
2090#[derive(Debug, Copy, Clone)]
2091pub struct rb_hook_list_struct {
2092    pub hooks: *mut rb_event_hook_struct,
2093    pub events: rb_event_flag_t,
2094    pub running: ::std::os::raw::c_uint,
2095    pub need_clean: bool,
2096    pub is_local: bool,
2097}
2098pub type rb_hook_list_t = rb_hook_list_struct;
2099#[repr(C)]
2100#[derive(Debug, Copy, Clone)]
2101pub struct rb_builtin_function {
2102    _unused: [u8; 0],
2103}
2104#[repr(C)]
2105#[derive(Copy, Clone)]
2106pub struct rb_vm_struct {
2107    pub self_: VALUE,
2108    pub ractor: rb_vm_struct__bindgen_ty_1,
2109    pub main_altstack: *mut ::std::os::raw::c_void,
2110    pub fork_gen: rb_serial_t,
2111    pub waitpid_lock: rb_nativethread_lock_t,
2112    pub waiting_pids: list_head,
2113    pub waiting_grps: list_head,
2114    pub waiting_fds: list_head,
2115    pub ubf_async_safe: ::std::os::raw::c_int,
2116    pub _bitfield_align_1: [u8; 0],
2117    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2118    pub mark_object_ary: VALUE,
2119    pub special_exceptions: [VALUE; 5usize],
2120    pub top_self: VALUE,
2121    pub load_path: VALUE,
2122    pub load_path_snapshot: VALUE,
2123    pub load_path_check_cache: VALUE,
2124    pub expanded_load_path: VALUE,
2125    pub loaded_features: VALUE,
2126    pub loaded_features_snapshot: VALUE,
2127    pub loaded_features_realpaths: VALUE,
2128    pub loaded_features_index: *mut st_table,
2129    pub loading_table: *mut st_table,
2130    pub trap_list: rb_vm_struct__bindgen_ty_2,
2131    pub ensure_rollback_table: *mut st_table,
2132    pub postponed_job_buffer: *mut rb_postponed_job_struct,
2133    pub postponed_job_index: rb_atomic_t,
2134    pub src_encoding_index: ::std::os::raw::c_int,
2135    pub workqueue: list_head,
2136    pub workqueue_lock: rb_nativethread_lock_t,
2137    pub orig_progname: VALUE,
2138    pub progname: VALUE,
2139    pub coverages: VALUE,
2140    pub me2counter: VALUE,
2141    pub coverage_mode: ::std::os::raw::c_int,
2142    pub defined_module_hash: *mut st_table,
2143    pub objspace: *mut rb_objspace,
2144    pub at_exit: *mut rb_at_exit_list,
2145    pub frozen_strings: *mut st_table,
2146    pub builtin_function_table: *const rb_builtin_function,
2147    pub builtin_inline_index: ::std::os::raw::c_int,
2148    pub negative_cme_table: *mut rb_id_table,
2149    pub overloaded_cme_table: *mut st_table,
2150    pub global_cc_cache_table: [*const rb_callcache; 1023usize],
2151    pub default_params: rb_vm_struct__bindgen_ty_3,
2152    pub redefined_flag: [::std::os::raw::c_short; 29usize],
2153}
2154#[repr(C)]
2155#[derive(Copy, Clone)]
2156pub struct rb_vm_struct__bindgen_ty_1 {
2157    pub set: list_head,
2158    pub cnt: ::std::os::raw::c_uint,
2159    pub blocking_cnt: ::std::os::raw::c_uint,
2160    pub main_ractor: *mut rb_ractor_struct,
2161    pub main_thread: *mut rb_thread_struct,
2162    pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
2163}
2164#[repr(C)]
2165#[derive(Copy, Clone)]
2166pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2167    pub lock: rb_nativethread_lock_t,
2168    pub lock_owner: *mut rb_ractor_struct,
2169    pub lock_rec: ::std::os::raw::c_uint,
2170    pub barrier_waiting: bool,
2171    pub barrier_cnt: ::std::os::raw::c_uint,
2172    pub barrier_cond: rb_nativethread_cond_t,
2173    pub terminate_cond: rb_nativethread_cond_t,
2174    pub terminate_waiting: bool,
2175}
2176impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2177    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2178        write ! (f , "rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {{ lock: {:?}, lock_owner: {:?}, lock_rec: {:?}, barrier_waiting: {:?}, barrier_cnt: {:?}, barrier_cond: {:?}, terminate_cond: {:?}, terminate_waiting: {:?} }}" , self . lock , self . lock_owner , self . lock_rec , self . barrier_waiting , self . barrier_cnt , self . barrier_cond , self . terminate_cond , self . terminate_waiting)
2179    }
2180}
2181impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2182    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2183        write ! (f , "rb_vm_struct__bindgen_ty_1 {{ set: {:?}, cnt: {:?}, blocking_cnt: {:?}, main_ractor: {:?}, main_thread: {:?}, sync: {:?} }}" , self . set , self . cnt , self . blocking_cnt , self . main_ractor , self . main_thread , self . sync)
2184    }
2185}
2186#[repr(C)]
2187#[derive(Debug, Copy, Clone)]
2188pub struct rb_vm_struct__bindgen_ty_2 {
2189    pub cmd: [VALUE; 65usize],
2190}
2191#[repr(C)]
2192#[derive(Debug, Copy, Clone)]
2193pub struct rb_vm_struct__bindgen_ty_3 {
2194    pub thread_vm_stack_size: usize,
2195    pub thread_machine_stack_size: usize,
2196    pub fiber_vm_stack_size: usize,
2197    pub fiber_machine_stack_size: usize,
2198}
2199impl ::std::fmt::Debug for rb_vm_struct {
2200    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2201        write ! (f , "rb_vm_struct {{ self: {:?}, ractor: {:?}, main_altstack: {:?}, fork_gen: {:?}, waitpid_lock: {:?}, waiting_pids: {:?}, waiting_grps: {:?}, waiting_fds: {:?}, ubf_async_safe: {:?}, running : {:?}, thread_abort_on_exception : {:?}, thread_report_on_exception : {:?}, thread_ignore_deadlock : {:?}, 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_realpaths: {:?}, loaded_features_index: {:?}, loading_table: {:?}, trap_list: {:?}, ensure_rollback_table: {:?}, postponed_job_buffer: {:?}, postponed_job_index: {:?}, src_encoding_index: {:?}, workqueue: {:?}, workqueue_lock: {:?}, orig_progname: {:?}, progname: {:?}, coverages: {:?}, me2counter: {:?}, coverage_mode: {:?}, defined_module_hash: {:?}, objspace: {:?}, at_exit: {:?}, frozen_strings: {:?}, builtin_function_table: {:?}, builtin_inline_index: {:?}, negative_cme_table: {:?}, overloaded_cme_table: {:?}, global_cc_cache_table: {:?}, default_params: {:?}, redefined_flag: {:?} }}" , self . self_ , self . ractor , self . main_altstack , self . fork_gen , self . waitpid_lock , self . waiting_pids , self . waiting_grps , self . waiting_fds , self . ubf_async_safe , self . running () , self . thread_abort_on_exception () , self . thread_report_on_exception () , self . thread_ignore_deadlock () , 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_realpaths , self . loaded_features_index , self . loading_table , self . trap_list , self . ensure_rollback_table , self . postponed_job_buffer , self . postponed_job_index , self . src_encoding_index , self . workqueue , self . workqueue_lock , self . orig_progname , self . progname , self . coverages , self . me2counter , self . coverage_mode , self . defined_module_hash , self . objspace , self . at_exit , self . frozen_strings , self . builtin_function_table , self . builtin_inline_index , self . negative_cme_table , self . overloaded_cme_table , self . global_cc_cache_table , self . default_params , self . redefined_flag)
2202    }
2203}
2204impl rb_vm_struct {
2205    #[inline]
2206    pub fn running(&self) -> ::std::os::raw::c_uint {
2207        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2208    }
2209    #[inline]
2210    pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2211        unsafe {
2212            let val: u32 = ::std::mem::transmute(val);
2213            self._bitfield_1.set(0usize, 1u8, val as u64)
2214        }
2215    }
2216    #[inline]
2217    pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2218        unsafe {
2219            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2220                ::std::ptr::addr_of!((*this)._bitfield_1),
2221                0usize,
2222                1u8,
2223            ) as u32)
2224        }
2225    }
2226    #[inline]
2227    pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2228        unsafe {
2229            let val: u32 = ::std::mem::transmute(val);
2230            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2231                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2232                0usize,
2233                1u8,
2234                val as u64,
2235            )
2236        }
2237    }
2238    #[inline]
2239    pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2240        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2241    }
2242    #[inline]
2243    pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2244        unsafe {
2245            let val: u32 = ::std::mem::transmute(val);
2246            self._bitfield_1.set(1usize, 1u8, val as u64)
2247        }
2248    }
2249    #[inline]
2250    pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2251        unsafe {
2252            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2253                ::std::ptr::addr_of!((*this)._bitfield_1),
2254                1usize,
2255                1u8,
2256            ) as u32)
2257        }
2258    }
2259    #[inline]
2260    pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2261        unsafe {
2262            let val: u32 = ::std::mem::transmute(val);
2263            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2264                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2265                1usize,
2266                1u8,
2267                val as u64,
2268            )
2269        }
2270    }
2271    #[inline]
2272    pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2273        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2274    }
2275    #[inline]
2276    pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2277        unsafe {
2278            let val: u32 = ::std::mem::transmute(val);
2279            self._bitfield_1.set(2usize, 1u8, val as u64)
2280        }
2281    }
2282    #[inline]
2283    pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2284        unsafe {
2285            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2286                ::std::ptr::addr_of!((*this)._bitfield_1),
2287                2usize,
2288                1u8,
2289            ) as u32)
2290        }
2291    }
2292    #[inline]
2293    pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2294        unsafe {
2295            let val: u32 = ::std::mem::transmute(val);
2296            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2297                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2298                2usize,
2299                1u8,
2300                val as u64,
2301            )
2302        }
2303    }
2304    #[inline]
2305    pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2306        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2307    }
2308    #[inline]
2309    pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2310        unsafe {
2311            let val: u32 = ::std::mem::transmute(val);
2312            self._bitfield_1.set(3usize, 1u8, val as u64)
2313        }
2314    }
2315    #[inline]
2316    pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2317        unsafe {
2318            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2319                ::std::ptr::addr_of!((*this)._bitfield_1),
2320                3usize,
2321                1u8,
2322            ) as u32)
2323        }
2324    }
2325    #[inline]
2326    pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2327        unsafe {
2328            let val: u32 = ::std::mem::transmute(val);
2329            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2330                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2331                3usize,
2332                1u8,
2333                val as u64,
2334            )
2335        }
2336    }
2337    #[inline]
2338    pub fn new_bitfield_1(
2339        running: ::std::os::raw::c_uint,
2340        thread_abort_on_exception: ::std::os::raw::c_uint,
2341        thread_report_on_exception: ::std::os::raw::c_uint,
2342        thread_ignore_deadlock: ::std::os::raw::c_uint,
2343    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2344        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2345        __bindgen_bitfield_unit.set(0usize, 1u8, {
2346            let running: u32 = unsafe { ::std::mem::transmute(running) };
2347            running as u64
2348        });
2349        __bindgen_bitfield_unit.set(1usize, 1u8, {
2350            let thread_abort_on_exception: u32 =
2351                unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2352            thread_abort_on_exception as u64
2353        });
2354        __bindgen_bitfield_unit.set(2usize, 1u8, {
2355            let thread_report_on_exception: u32 =
2356                unsafe { ::std::mem::transmute(thread_report_on_exception) };
2357            thread_report_on_exception as u64
2358        });
2359        __bindgen_bitfield_unit.set(3usize, 1u8, {
2360            let thread_ignore_deadlock: u32 =
2361                unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2362            thread_ignore_deadlock as u64
2363        });
2364        __bindgen_bitfield_unit
2365    }
2366}
2367pub type rb_vm_t = rb_vm_struct;
2368#[repr(C)]
2369#[derive(Debug, Copy, Clone)]
2370pub struct rb_control_frame_struct {
2371    pub pc: *const VALUE,
2372    pub sp: *mut VALUE,
2373    pub iseq: *const rb_iseq_t,
2374    pub self_: VALUE,
2375    pub ep: *const VALUE,
2376    pub block_code: *const ::std::os::raw::c_void,
2377    pub __bp__: *mut VALUE,
2378    pub jit_return: *mut ::std::os::raw::c_void,
2379}
2380pub type rb_control_frame_t = rb_control_frame_struct;
2381pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2382pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2383pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2384pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2385pub type rb_thread_status = ::std::os::raw::c_uint;
2386pub type rb_jmpbuf_t = sigjmp_buf;
2387#[repr(C)]
2388#[derive(Debug, Copy, Clone)]
2389pub struct rb_vm_tag {
2390    pub tag: VALUE,
2391    pub retval: VALUE,
2392    pub buf: rb_jmpbuf_t,
2393    pub prev: *mut rb_vm_tag,
2394    pub state: ruby_tag_type,
2395    pub lock_rec: ::std::os::raw::c_uint,
2396}
2397#[repr(C)]
2398#[derive(Debug, Copy, Clone)]
2399pub struct rb_unblock_callback {
2400    pub func: rb_unblock_function_t,
2401    pub arg: *mut ::std::os::raw::c_void,
2402}
2403#[repr(C)]
2404#[derive(Debug, Copy, Clone)]
2405pub struct rb_mutex_struct {
2406    _unused: [u8; 0],
2407}
2408#[repr(C)]
2409#[derive(Debug, Copy, Clone)]
2410pub struct rb_ensure_entry {
2411    pub marker: VALUE,
2412    pub e_proc: ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>,
2413    pub data2: VALUE,
2414}
2415#[repr(C)]
2416#[derive(Debug, Copy, Clone)]
2417pub struct rb_ensure_list {
2418    pub next: *mut rb_ensure_list,
2419    pub entry: rb_ensure_entry,
2420}
2421pub type rb_ensure_list_t = rb_ensure_list;
2422#[repr(C)]
2423#[derive(Debug, Copy, Clone)]
2424pub struct rb_fiber_struct {
2425    _unused: [u8; 0],
2426}
2427pub type rb_fiber_t = rb_fiber_struct;
2428#[repr(C)]
2429#[derive(Debug, Copy, Clone)]
2430pub struct rb_waiting_list {
2431    pub next: *mut rb_waiting_list,
2432    pub thread: *mut rb_thread_struct,
2433    pub fiber: *mut rb_fiber_struct,
2434}
2435#[repr(C)]
2436#[derive(Debug, Copy, Clone)]
2437pub struct rb_execution_context_struct {
2438    pub vm_stack: *mut VALUE,
2439    pub vm_stack_size: usize,
2440    pub cfp: *mut rb_control_frame_t,
2441    pub tag: *mut rb_vm_tag,
2442    pub interrupt_flag: rb_atomic_t,
2443    pub interrupt_mask: rb_atomic_t,
2444    pub fiber_ptr: *mut rb_fiber_t,
2445    pub thread_ptr: *mut rb_thread_struct,
2446    pub local_storage: *mut rb_id_table,
2447    pub local_storage_recursive_hash: VALUE,
2448    pub local_storage_recursive_hash_for_trace: VALUE,
2449    pub root_lep: *const VALUE,
2450    pub root_svar: VALUE,
2451    pub ensure_list: *mut rb_ensure_list_t,
2452    pub trace_arg: *mut rb_trace_arg_struct,
2453    pub errinfo: VALUE,
2454    pub passed_block_handler: VALUE,
2455    pub raised_flag: u8,
2456    pub _bitfield_align_1: [u8; 0],
2457    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2458    pub private_const_reference: VALUE,
2459    pub machine: rb_execution_context_struct__bindgen_ty_1,
2460}
2461#[repr(C)]
2462#[derive(Debug, Copy, Clone)]
2463pub struct rb_execution_context_struct__bindgen_ty_1 {
2464    pub stack_start: *mut VALUE,
2465    pub stack_end: *mut VALUE,
2466    pub stack_maxsize: usize,
2467    pub regs: jmp_buf,
2468}
2469impl rb_execution_context_struct {
2470    #[inline]
2471    pub fn method_missing_reason(&self) -> method_missing_reason {
2472        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
2473    }
2474    #[inline]
2475    pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2476        unsafe {
2477            let val: u32 = ::std::mem::transmute(val);
2478            self._bitfield_1.set(0usize, 8u8, val as u64)
2479        }
2480    }
2481    #[inline]
2482    pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2483        unsafe {
2484            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2485                ::std::ptr::addr_of!((*this)._bitfield_1),
2486                0usize,
2487                8u8,
2488            ) as u32)
2489        }
2490    }
2491    #[inline]
2492    pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2493        unsafe {
2494            let val: u32 = ::std::mem::transmute(val);
2495            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2496                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2497                0usize,
2498                8u8,
2499                val as u64,
2500            )
2501        }
2502    }
2503    #[inline]
2504    pub fn new_bitfield_1(
2505        method_missing_reason: method_missing_reason,
2506    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2507        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2508        __bindgen_bitfield_unit.set(0usize, 8u8, {
2509            let method_missing_reason: u32 =
2510                unsafe { ::std::mem::transmute(method_missing_reason) };
2511            method_missing_reason as u64
2512        });
2513        __bindgen_bitfield_unit
2514    }
2515}
2516pub type rb_execution_context_t = rb_execution_context_struct;
2517#[repr(C)]
2518#[derive(Debug, Copy, Clone)]
2519pub struct rb_ext_config {
2520    pub ractor_safe: bool,
2521}
2522pub type rb_ractor_t = rb_ractor_struct;
2523#[repr(C)]
2524#[derive(Copy, Clone)]
2525pub struct rb_thread_struct {
2526    pub lt_node: list_node,
2527    pub self_: VALUE,
2528    pub ractor: *mut rb_ractor_t,
2529    pub vm: *mut rb_vm_t,
2530    pub ec: *mut rb_execution_context_t,
2531    pub last_status: VALUE,
2532    pub calling: *mut rb_calling_info,
2533    pub top_self: VALUE,
2534    pub top_wrapper: VALUE,
2535    pub thread_id: rb_nativethread_id_t,
2536    pub tid: ::std::os::raw::c_int,
2537    pub _bitfield_align_1: [u8; 0],
2538    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2539    pub priority: i8,
2540    pub running_time_us: u32,
2541    pub native_thread_data: native_thread_data_t,
2542    pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2543    pub thgroup: VALUE,
2544    pub value: VALUE,
2545    pub pending_interrupt_queue: VALUE,
2546    pub pending_interrupt_mask_stack: VALUE,
2547    pub interrupt_lock: rb_nativethread_lock_t,
2548    pub unblock: rb_unblock_callback,
2549    pub locking_mutex: VALUE,
2550    pub keeping_mutexes: *mut rb_mutex_struct,
2551    pub join_list: *mut rb_waiting_list,
2552    pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2553    pub invoke_type: rb_thread_struct_thread_invoke_type,
2554    pub stat_insn_usage: VALUE,
2555    pub root_fiber: *mut rb_fiber_t,
2556    pub scheduler: VALUE,
2557    pub blocking: ::std::os::raw::c_uint,
2558    pub name: VALUE,
2559    pub ext_config: rb_ext_config,
2560    pub altstack: *mut ::std::os::raw::c_void,
2561}
2562#[repr(C)]
2563#[derive(Copy, Clone)]
2564pub union rb_thread_struct__bindgen_ty_1 {
2565    pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2566    pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2567}
2568#[repr(C)]
2569#[derive(Debug, Copy, Clone)]
2570pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2571    pub proc_: VALUE,
2572    pub args: VALUE,
2573    pub kw_splat: ::std::os::raw::c_int,
2574}
2575#[repr(C)]
2576#[derive(Debug, Copy, Clone)]
2577pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2578    pub func:
2579        ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
2580    pub arg: *mut ::std::os::raw::c_void,
2581}
2582impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2583    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2584        write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2585    }
2586}
2587pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
2588    rb_thread_struct_thread_invoke_type = 0;
2589pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
2590    rb_thread_struct_thread_invoke_type = 1;
2591pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
2592    rb_thread_struct_thread_invoke_type = 2;
2593pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
2594    rb_thread_struct_thread_invoke_type = 3;
2595pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
2596impl ::std::fmt::Debug for rb_thread_struct {
2597    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2598        write ! (f , "rb_thread_struct {{ lt_node: {:?}, self: {:?}, ractor: {:?}, vm: {:?}, ec: {:?}, last_status: {:?}, calling: {:?}, top_self: {:?}, top_wrapper: {:?}, thread_id: {:?}, tid: {:?}, status : {:?}, to_kill : {:?}, abort_on_exception : {:?}, report_on_exception : {:?}, pending_interrupt_queue_checked : {:?}, native_thread_data: {:?}, blocking_region_buffer: {:?}, thgroup: {:?}, value: {:?}, pending_interrupt_queue: {:?}, pending_interrupt_mask_stack: {:?}, interrupt_lock: {:?}, unblock: {:?}, locking_mutex: {:?}, keeping_mutexes: {:?}, join_list: {:?}, invoke_arg: {:?}, invoke_type: {:?}, stat_insn_usage: {:?}, root_fiber: {:?}, scheduler: {:?}, blocking: {:?}, name: {:?}, ext_config: {:?}, altstack: {:?} }}" , self . lt_node , self . self_ , self . ractor , self . vm , self . ec , self . last_status , self . calling , self . top_self , self . top_wrapper , self . thread_id , self . tid , self . status () , self . to_kill () , self . abort_on_exception () , self . report_on_exception () , self . pending_interrupt_queue_checked () , self . native_thread_data , self . blocking_region_buffer , self . thgroup , self . value , self . pending_interrupt_queue , self . pending_interrupt_mask_stack , self . interrupt_lock , self . unblock , self . locking_mutex , self . keeping_mutexes , self . join_list , self . invoke_arg , self . invoke_type , self . stat_insn_usage , self . root_fiber , self . scheduler , self . blocking , self . name , self . ext_config , self . altstack)
2599    }
2600}
2601impl rb_thread_struct {
2602    #[inline]
2603    pub fn status(&self) -> rb_thread_status {
2604        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
2605    }
2606    #[inline]
2607    pub fn set_status(&mut self, val: rb_thread_status) {
2608        unsafe {
2609            let val: u32 = ::std::mem::transmute(val);
2610            self._bitfield_1.set(0usize, 2u8, val as u64)
2611        }
2612    }
2613    #[inline]
2614    pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2615        unsafe {
2616            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2617                ::std::ptr::addr_of!((*this)._bitfield_1),
2618                0usize,
2619                2u8,
2620            ) as u32)
2621        }
2622    }
2623    #[inline]
2624    pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2625        unsafe {
2626            let val: u32 = ::std::mem::transmute(val);
2627            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2628                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2629                0usize,
2630                2u8,
2631                val as u64,
2632            )
2633        }
2634    }
2635    #[inline]
2636    pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2637        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2638    }
2639    #[inline]
2640    pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2641        unsafe {
2642            let val: u32 = ::std::mem::transmute(val);
2643            self._bitfield_1.set(2usize, 1u8, val as u64)
2644        }
2645    }
2646    #[inline]
2647    pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2648        unsafe {
2649            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2650                ::std::ptr::addr_of!((*this)._bitfield_1),
2651                2usize,
2652                1u8,
2653            ) as u32)
2654        }
2655    }
2656    #[inline]
2657    pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2658        unsafe {
2659            let val: u32 = ::std::mem::transmute(val);
2660            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2661                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2662                2usize,
2663                1u8,
2664                val as u64,
2665            )
2666        }
2667    }
2668    #[inline]
2669    pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2670        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2671    }
2672    #[inline]
2673    pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2674        unsafe {
2675            let val: u32 = ::std::mem::transmute(val);
2676            self._bitfield_1.set(3usize, 1u8, val as u64)
2677        }
2678    }
2679    #[inline]
2680    pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2681        unsafe {
2682            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2683                ::std::ptr::addr_of!((*this)._bitfield_1),
2684                3usize,
2685                1u8,
2686            ) as u32)
2687        }
2688    }
2689    #[inline]
2690    pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2691        unsafe {
2692            let val: u32 = ::std::mem::transmute(val);
2693            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2694                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2695                3usize,
2696                1u8,
2697                val as u64,
2698            )
2699        }
2700    }
2701    #[inline]
2702    pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2703        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2704    }
2705    #[inline]
2706    pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2707        unsafe {
2708            let val: u32 = ::std::mem::transmute(val);
2709            self._bitfield_1.set(4usize, 1u8, val as u64)
2710        }
2711    }
2712    #[inline]
2713    pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2714        unsafe {
2715            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2716                ::std::ptr::addr_of!((*this)._bitfield_1),
2717                4usize,
2718                1u8,
2719            ) as u32)
2720        }
2721    }
2722    #[inline]
2723    pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2724        unsafe {
2725            let val: u32 = ::std::mem::transmute(val);
2726            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2727                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2728                4usize,
2729                1u8,
2730                val as u64,
2731            )
2732        }
2733    }
2734    #[inline]
2735    pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
2736        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2737    }
2738    #[inline]
2739    pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
2740        unsafe {
2741            let val: u32 = ::std::mem::transmute(val);
2742            self._bitfield_1.set(5usize, 1u8, val as u64)
2743        }
2744    }
2745    #[inline]
2746    pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
2747        unsafe {
2748            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2749                ::std::ptr::addr_of!((*this)._bitfield_1),
2750                5usize,
2751                1u8,
2752            ) as u32)
2753        }
2754    }
2755    #[inline]
2756    pub unsafe fn set_pending_interrupt_queue_checked_raw(
2757        this: *mut Self,
2758        val: ::std::os::raw::c_uint,
2759    ) {
2760        unsafe {
2761            let val: u32 = ::std::mem::transmute(val);
2762            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2763                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2764                5usize,
2765                1u8,
2766                val as u64,
2767            )
2768        }
2769    }
2770    #[inline]
2771    pub fn new_bitfield_1(
2772        status: rb_thread_status,
2773        to_kill: ::std::os::raw::c_uint,
2774        abort_on_exception: ::std::os::raw::c_uint,
2775        report_on_exception: ::std::os::raw::c_uint,
2776        pending_interrupt_queue_checked: ::std::os::raw::c_uint,
2777    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2778        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2779        __bindgen_bitfield_unit.set(0usize, 2u8, {
2780            let status: u32 = unsafe { ::std::mem::transmute(status) };
2781            status as u64
2782        });
2783        __bindgen_bitfield_unit.set(2usize, 1u8, {
2784            let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
2785            to_kill as u64
2786        });
2787        __bindgen_bitfield_unit.set(3usize, 1u8, {
2788            let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2789            abort_on_exception as u64
2790        });
2791        __bindgen_bitfield_unit.set(4usize, 1u8, {
2792            let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2793            report_on_exception as u64
2794        });
2795        __bindgen_bitfield_unit.set(5usize, 1u8, {
2796            let pending_interrupt_queue_checked: u32 =
2797                unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
2798            pending_interrupt_queue_checked as u64
2799        });
2800        __bindgen_bitfield_unit
2801    }
2802}
2803pub type rb_thread_t = rb_thread_struct;
2804#[repr(C)]
2805#[derive(Debug, Copy, Clone)]
2806pub struct rb_trace_arg_struct {
2807    pub event: rb_event_flag_t,
2808    pub ec: *mut rb_execution_context_t,
2809    pub cfp: *const rb_control_frame_t,
2810    pub self_: VALUE,
2811    pub id: ID,
2812    pub called_id: ID,
2813    pub klass: VALUE,
2814    pub data: VALUE,
2815    pub klass_solved: ::std::os::raw::c_int,
2816    pub lineno: ::std::os::raw::c_int,
2817    pub path: VALUE,
2818}
2819#[repr(C)]
2820#[derive(Debug, Copy, Clone)]
2821pub struct rb_ractor_pub {
2822    pub self_: VALUE,
2823    pub id: u32,
2824    pub hooks: rb_hook_list_t,
2825}
2826pub const rb_ractor_basket_type_basket_type_none: rb_ractor_basket_type = 0;
2827pub const rb_ractor_basket_type_basket_type_ref: rb_ractor_basket_type = 1;
2828pub const rb_ractor_basket_type_basket_type_copy: rb_ractor_basket_type = 2;
2829pub const rb_ractor_basket_type_basket_type_move: rb_ractor_basket_type = 3;
2830pub const rb_ractor_basket_type_basket_type_will: rb_ractor_basket_type = 4;
2831pub const rb_ractor_basket_type_basket_type_deleted: rb_ractor_basket_type = 5;
2832pub const rb_ractor_basket_type_basket_type_reserved: rb_ractor_basket_type = 6;
2833pub type rb_ractor_basket_type = ::std::os::raw::c_uint;
2834#[repr(C)]
2835#[derive(Debug, Copy, Clone)]
2836pub struct rb_ractor_basket {
2837    pub exception: bool,
2838    pub type_: rb_ractor_basket_type,
2839    pub v: VALUE,
2840    pub sender: VALUE,
2841}
2842#[repr(C)]
2843#[derive(Debug, Copy, Clone)]
2844pub struct rb_ractor_queue {
2845    pub baskets: *mut rb_ractor_basket,
2846    pub start: ::std::os::raw::c_int,
2847    pub cnt: ::std::os::raw::c_int,
2848    pub size: ::std::os::raw::c_int,
2849    pub serial: ::std::os::raw::c_uint,
2850    pub reserved_cnt: ::std::os::raw::c_uint,
2851}
2852#[repr(C)]
2853#[derive(Debug, Copy, Clone)]
2854pub struct rb_ractor_waiting_list {
2855    pub cnt: ::std::os::raw::c_int,
2856    pub size: ::std::os::raw::c_int,
2857    pub ractors: *mut *mut rb_ractor_t,
2858}
2859#[repr(C)]
2860#[derive(Copy, Clone)]
2861pub struct rb_ractor_sync {
2862    pub lock: rb_nativethread_lock_t,
2863    pub cond: rb_nativethread_cond_t,
2864    pub incoming_queue: rb_ractor_queue,
2865    pub taking_ractors: rb_ractor_waiting_list,
2866    pub incoming_port_closed: bool,
2867    pub outgoing_port_closed: bool,
2868    pub wait: rb_ractor_sync_ractor_wait,
2869}
2870#[repr(C)]
2871#[derive(Debug, Copy, Clone)]
2872pub struct rb_ractor_sync_ractor_wait {
2873    pub status: rb_ractor_sync_ractor_wait_ractor_wait_status,
2874    pub wakeup_status: rb_ractor_sync_ractor_wait_ractor_wakeup_status,
2875    pub yielded_basket: rb_ractor_basket,
2876    pub taken_basket: rb_ractor_basket,
2877}
2878pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_none:
2879    rb_ractor_sync_ractor_wait_ractor_wait_status = 0;
2880pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_receiving:
2881    rb_ractor_sync_ractor_wait_ractor_wait_status = 1;
2882pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_taking:
2883    rb_ractor_sync_ractor_wait_ractor_wait_status = 2;
2884pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_yielding:
2885    rb_ractor_sync_ractor_wait_ractor_wait_status = 4;
2886pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_moving:
2887    rb_ractor_sync_ractor_wait_ractor_wait_status = 8;
2888pub type rb_ractor_sync_ractor_wait_ractor_wait_status = ::std::os::raw::c_uint;
2889pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_none:
2890    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 0;
2891pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_send:
2892    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 1;
2893pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_yield:
2894    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 2;
2895pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_take:
2896    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 3;
2897pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_close:
2898    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 4;
2899pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_interrupt:
2900    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 5;
2901pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_retry:
2902    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 6;
2903pub type rb_ractor_sync_ractor_wait_ractor_wakeup_status = ::std::os::raw::c_uint;
2904impl ::std::fmt::Debug for rb_ractor_sync {
2905    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2906        write ! (f , "rb_ractor_sync {{ lock: {:?}, cond: {:?}, incoming_queue: {:?}, taking_ractors: {:?}, incoming_port_closed: {:?}, outgoing_port_closed: {:?}, wait: {:?} }}" , self . lock , self . cond , self . incoming_queue , self . taking_ractors , self . incoming_port_closed , self . outgoing_port_closed , self . wait)
2907    }
2908}
2909#[repr(C)]
2910#[derive(Copy, Clone)]
2911pub struct rb_ractor_struct {
2912    pub pub_: rb_ractor_pub,
2913    pub sync: rb_ractor_sync,
2914    pub receiving_mutex: VALUE,
2915    pub yield_atexit: bool,
2916    pub barrier_wait_cond: rb_nativethread_cond_t,
2917    pub threads: rb_ractor_struct__bindgen_ty_1,
2918    pub thgroup_default: VALUE,
2919    pub name: VALUE,
2920    pub loc: VALUE,
2921    pub status_: rb_ractor_struct_ractor_status,
2922    pub vmlr_node: list_node,
2923    pub local_storage: *mut st_table,
2924    pub idkey_local_storage: *mut rb_id_table,
2925    pub r_stdin: VALUE,
2926    pub r_stdout: VALUE,
2927    pub r_stderr: VALUE,
2928    pub verbose: VALUE,
2929    pub debug: VALUE,
2930    pub newobj_cache: rb_ractor_newobj_cache_t,
2931    pub mfd: *mut rb_ractor_struct_gc_mark_func_data_struct,
2932}
2933#[repr(C)]
2934#[derive(Copy, Clone)]
2935pub struct rb_ractor_struct__bindgen_ty_1 {
2936    pub set: list_head,
2937    pub cnt: ::std::os::raw::c_uint,
2938    pub blocking_cnt: ::std::os::raw::c_uint,
2939    pub sleeper: ::std::os::raw::c_uint,
2940    pub gvl: rb_global_vm_lock_t,
2941    pub running_ec: *mut rb_execution_context_t,
2942    pub main: *mut rb_thread_t,
2943}
2944impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
2945    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2946        write ! (f , "rb_ractor_struct__bindgen_ty_1 {{ set: {:?}, cnt: {:?}, blocking_cnt: {:?}, sleeper: {:?}, gvl: {:?}, running_ec: {:?}, main: {:?} }}" , self . set , self . cnt , self . blocking_cnt , self . sleeper , self . gvl , self . running_ec , self . main)
2947    }
2948}
2949pub const rb_ractor_struct_ractor_status_ractor_created: rb_ractor_struct_ractor_status = 0;
2950pub const rb_ractor_struct_ractor_status_ractor_running: rb_ractor_struct_ractor_status = 1;
2951pub const rb_ractor_struct_ractor_status_ractor_blocking: rb_ractor_struct_ractor_status = 2;
2952pub const rb_ractor_struct_ractor_status_ractor_terminated: rb_ractor_struct_ractor_status = 3;
2953pub type rb_ractor_struct_ractor_status = ::std::os::raw::c_uint;
2954#[repr(C)]
2955#[derive(Debug, Copy, Clone)]
2956pub struct rb_ractor_struct_gc_mark_func_data_struct {
2957    pub data: *mut ::std::os::raw::c_void,
2958    pub mark_func:
2959        ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
2960}
2961impl ::std::fmt::Debug for rb_ractor_struct {
2962    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2963        write ! (f , "rb_ractor_struct {{ pub: {:?}, sync: {:?}, receiving_mutex: {:?}, yield_atexit: {:?}, barrier_wait_cond: {:?}, threads: {:?}, thgroup_default: {:?}, name: {:?}, loc: {:?}, status_: {:?}, vmlr_node: {:?}, local_storage: {:?}, idkey_local_storage: {:?}, r_stdin: {:?}, r_stdout: {:?}, r_stderr: {:?}, verbose: {:?}, debug: {:?}, newobj_cache: {:?}, mfd: {:?} }}" , self . pub_ , self . sync , self . receiving_mutex , self . yield_atexit , self . barrier_wait_cond , self . threads , self . thgroup_default , self . name , self . loc , self . status_ , self . vmlr_node , self . local_storage , self . idkey_local_storage , self . r_stdin , self . r_stdout , self . r_stderr , self . verbose , self . debug , self . newobj_cache , self . mfd)
2964    }
2965}
2966#[repr(C)]
2967#[derive(Debug, Copy, Clone)]
2968pub struct iseq_compile_data {
2969    pub err_info: VALUE,
2970    pub catch_table_ary: VALUE,
2971    pub start_label: *mut iseq_label_data,
2972    pub end_label: *mut iseq_label_data,
2973    pub redo_label: *mut iseq_label_data,
2974    pub current_block: *const rb_iseq_t,
2975    pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2976    pub node: iseq_compile_data__bindgen_ty_1,
2977    pub insn: iseq_compile_data__bindgen_ty_2,
2978    pub in_rescue: bool,
2979    pub loopval_popped: ::std::os::raw::c_int,
2980    pub last_line: ::std::os::raw::c_int,
2981    pub label_no: ::std::os::raw::c_int,
2982    pub node_level: ::std::os::raw::c_int,
2983    pub isolated_depth: ::std::os::raw::c_int,
2984    pub ci_index: ::std::os::raw::c_uint,
2985    pub option: *const rb_compile_option_t,
2986    pub ivar_cache_table: *mut rb_id_table,
2987    pub builtin_function_table: *const rb_builtin_function,
2988    pub root_node: *const NODE,
2989}
2990#[repr(C)]
2991#[derive(Debug, Copy, Clone)]
2992pub struct iseq_compile_data__bindgen_ty_1 {
2993    pub storage_head: *mut iseq_compile_data_storage,
2994    pub storage_current: *mut iseq_compile_data_storage,
2995}
2996#[repr(C)]
2997#[derive(Debug, Copy, Clone)]
2998pub struct iseq_compile_data__bindgen_ty_2 {
2999    pub storage_head: *mut iseq_compile_data_storage,
3000    pub storage_current: *mut iseq_compile_data_storage,
3001}
3002#[repr(C)]
3003#[derive(Debug, Copy, Clone)]
3004pub struct rb_compile_option_struct {
3005    pub _bitfield_align_1: [u8; 0],
3006    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
3007    pub debug_level: ::std::os::raw::c_int,
3008}
3009impl rb_compile_option_struct {
3010    #[inline]
3011    pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
3012        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3013    }
3014    #[inline]
3015    pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
3016        unsafe {
3017            let val: u32 = ::std::mem::transmute(val);
3018            self._bitfield_1.set(0usize, 1u8, val as u64)
3019        }
3020    }
3021    #[inline]
3022    pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
3023        unsafe {
3024            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3025                ::std::ptr::addr_of!((*this)._bitfield_1),
3026                0usize,
3027                1u8,
3028            ) as u32)
3029        }
3030    }
3031    #[inline]
3032    pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3033        unsafe {
3034            let val: u32 = ::std::mem::transmute(val);
3035            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3036                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3037                0usize,
3038                1u8,
3039                val as u64,
3040            )
3041        }
3042    }
3043    #[inline]
3044    pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
3045        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3046    }
3047    #[inline]
3048    pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
3049        unsafe {
3050            let val: u32 = ::std::mem::transmute(val);
3051            self._bitfield_1.set(1usize, 1u8, val as u64)
3052        }
3053    }
3054    #[inline]
3055    pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3056        unsafe {
3057            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3058                ::std::ptr::addr_of!((*this)._bitfield_1),
3059                1usize,
3060                1u8,
3061            ) as u32)
3062        }
3063    }
3064    #[inline]
3065    pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3066        unsafe {
3067            let val: u32 = ::std::mem::transmute(val);
3068            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3069                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3070                1usize,
3071                1u8,
3072                val as u64,
3073            )
3074        }
3075    }
3076    #[inline]
3077    pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3078        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3079    }
3080    #[inline]
3081    pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3082        unsafe {
3083            let val: u32 = ::std::mem::transmute(val);
3084            self._bitfield_1.set(2usize, 1u8, val as u64)
3085        }
3086    }
3087    #[inline]
3088    pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3089        unsafe {
3090            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3091                ::std::ptr::addr_of!((*this)._bitfield_1),
3092                2usize,
3093                1u8,
3094            ) as u32)
3095        }
3096    }
3097    #[inline]
3098    pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3099        unsafe {
3100            let val: u32 = ::std::mem::transmute(val);
3101            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3102                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3103                2usize,
3104                1u8,
3105                val as u64,
3106            )
3107        }
3108    }
3109    #[inline]
3110    pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3111        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3112    }
3113    #[inline]
3114    pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3115        unsafe {
3116            let val: u32 = ::std::mem::transmute(val);
3117            self._bitfield_1.set(3usize, 1u8, val as u64)
3118        }
3119    }
3120    #[inline]
3121    pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3122        unsafe {
3123            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3124                ::std::ptr::addr_of!((*this)._bitfield_1),
3125                3usize,
3126                1u8,
3127            ) as u32)
3128        }
3129    }
3130    #[inline]
3131    pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3132        unsafe {
3133            let val: u32 = ::std::mem::transmute(val);
3134            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3135                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3136                3usize,
3137                1u8,
3138                val as u64,
3139            )
3140        }
3141    }
3142    #[inline]
3143    pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3144        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3145    }
3146    #[inline]
3147    pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3148        unsafe {
3149            let val: u32 = ::std::mem::transmute(val);
3150            self._bitfield_1.set(4usize, 1u8, val as u64)
3151        }
3152    }
3153    #[inline]
3154    pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3155        unsafe {
3156            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3157                ::std::ptr::addr_of!((*this)._bitfield_1),
3158                4usize,
3159                1u8,
3160            ) as u32)
3161        }
3162    }
3163    #[inline]
3164    pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3165        unsafe {
3166            let val: u32 = ::std::mem::transmute(val);
3167            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3168                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3169                4usize,
3170                1u8,
3171                val as u64,
3172            )
3173        }
3174    }
3175    #[inline]
3176    pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3177        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3178    }
3179    #[inline]
3180    pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3181        unsafe {
3182            let val: u32 = ::std::mem::transmute(val);
3183            self._bitfield_1.set(5usize, 1u8, val as u64)
3184        }
3185    }
3186    #[inline]
3187    pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3188        unsafe {
3189            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3190                ::std::ptr::addr_of!((*this)._bitfield_1),
3191                5usize,
3192                1u8,
3193            ) as u32)
3194        }
3195    }
3196    #[inline]
3197    pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3198        unsafe {
3199            let val: u32 = ::std::mem::transmute(val);
3200            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3201                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3202                5usize,
3203                1u8,
3204                val as u64,
3205            )
3206        }
3207    }
3208    #[inline]
3209    pub fn stack_caching(&self) -> ::std::os::raw::c_uint {
3210        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
3211    }
3212    #[inline]
3213    pub fn set_stack_caching(&mut self, val: ::std::os::raw::c_uint) {
3214        unsafe {
3215            let val: u32 = ::std::mem::transmute(val);
3216            self._bitfield_1.set(6usize, 1u8, val as u64)
3217        }
3218    }
3219    #[inline]
3220    pub unsafe fn stack_caching_raw(this: *const Self) -> ::std::os::raw::c_uint {
3221        unsafe {
3222            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3223                ::std::ptr::addr_of!((*this)._bitfield_1),
3224                6usize,
3225                1u8,
3226            ) as u32)
3227        }
3228    }
3229    #[inline]
3230    pub unsafe fn set_stack_caching_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3231        unsafe {
3232            let val: u32 = ::std::mem::transmute(val);
3233            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3234                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3235                6usize,
3236                1u8,
3237                val as u64,
3238            )
3239        }
3240    }
3241    #[inline]
3242    pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3243        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
3244    }
3245    #[inline]
3246    pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3247        unsafe {
3248            let val: u32 = ::std::mem::transmute(val);
3249            self._bitfield_1.set(7usize, 1u8, val as u64)
3250        }
3251    }
3252    #[inline]
3253    pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3254        unsafe {
3255            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3256                ::std::ptr::addr_of!((*this)._bitfield_1),
3257                7usize,
3258                1u8,
3259            ) as u32)
3260        }
3261    }
3262    #[inline]
3263    pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3264        unsafe {
3265            let val: u32 = ::std::mem::transmute(val);
3266            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3267                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3268                7usize,
3269                1u8,
3270                val as u64,
3271            )
3272        }
3273    }
3274    #[inline]
3275    pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3276        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
3277    }
3278    #[inline]
3279    pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3280        unsafe {
3281            let val: u32 = ::std::mem::transmute(val);
3282            self._bitfield_1.set(8usize, 1u8, val as u64)
3283        }
3284    }
3285    #[inline]
3286    pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3287        unsafe {
3288            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3289                ::std::ptr::addr_of!((*this)._bitfield_1),
3290                8usize,
3291                1u8,
3292            ) as u32)
3293        }
3294    }
3295    #[inline]
3296    pub unsafe fn set_debug_frozen_string_literal_raw(
3297        this: *mut Self,
3298        val: ::std::os::raw::c_uint,
3299    ) {
3300        unsafe {
3301            let val: u32 = ::std::mem::transmute(val);
3302            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3303                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3304                8usize,
3305                1u8,
3306                val as u64,
3307            )
3308        }
3309    }
3310    #[inline]
3311    pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3312        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
3313    }
3314    #[inline]
3315    pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3316        unsafe {
3317            let val: u32 = ::std::mem::transmute(val);
3318            self._bitfield_1.set(9usize, 1u8, val as u64)
3319        }
3320    }
3321    #[inline]
3322    pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3323        unsafe {
3324            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3325                ::std::ptr::addr_of!((*this)._bitfield_1),
3326                9usize,
3327                1u8,
3328            ) as u32)
3329        }
3330    }
3331    #[inline]
3332    pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3333        unsafe {
3334            let val: u32 = ::std::mem::transmute(val);
3335            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3336                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3337                9usize,
3338                1u8,
3339                val as u64,
3340            )
3341        }
3342    }
3343    #[inline]
3344    pub fn new_bitfield_1(
3345        inline_const_cache: ::std::os::raw::c_uint,
3346        peephole_optimization: ::std::os::raw::c_uint,
3347        tailcall_optimization: ::std::os::raw::c_uint,
3348        specialized_instruction: ::std::os::raw::c_uint,
3349        operands_unification: ::std::os::raw::c_uint,
3350        instructions_unification: ::std::os::raw::c_uint,
3351        stack_caching: ::std::os::raw::c_uint,
3352        frozen_string_literal: ::std::os::raw::c_uint,
3353        debug_frozen_string_literal: ::std::os::raw::c_uint,
3354        coverage_enabled: ::std::os::raw::c_uint,
3355    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3356        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3357        __bindgen_bitfield_unit.set(0usize, 1u8, {
3358            let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3359            inline_const_cache as u64
3360        });
3361        __bindgen_bitfield_unit.set(1usize, 1u8, {
3362            let peephole_optimization: u32 =
3363                unsafe { ::std::mem::transmute(peephole_optimization) };
3364            peephole_optimization as u64
3365        });
3366        __bindgen_bitfield_unit.set(2usize, 1u8, {
3367            let tailcall_optimization: u32 =
3368                unsafe { ::std::mem::transmute(tailcall_optimization) };
3369            tailcall_optimization as u64
3370        });
3371        __bindgen_bitfield_unit.set(3usize, 1u8, {
3372            let specialized_instruction: u32 =
3373                unsafe { ::std::mem::transmute(specialized_instruction) };
3374            specialized_instruction as u64
3375        });
3376        __bindgen_bitfield_unit.set(4usize, 1u8, {
3377            let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3378            operands_unification as u64
3379        });
3380        __bindgen_bitfield_unit.set(5usize, 1u8, {
3381            let instructions_unification: u32 =
3382                unsafe { ::std::mem::transmute(instructions_unification) };
3383            instructions_unification as u64
3384        });
3385        __bindgen_bitfield_unit.set(6usize, 1u8, {
3386            let stack_caching: u32 = unsafe { ::std::mem::transmute(stack_caching) };
3387            stack_caching as u64
3388        });
3389        __bindgen_bitfield_unit.set(7usize, 1u8, {
3390            let frozen_string_literal: u32 =
3391                unsafe { ::std::mem::transmute(frozen_string_literal) };
3392            frozen_string_literal as u64
3393        });
3394        __bindgen_bitfield_unit.set(8usize, 1u8, {
3395            let debug_frozen_string_literal: u32 =
3396                unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3397            debug_frozen_string_literal as u64
3398        });
3399        __bindgen_bitfield_unit.set(9usize, 1u8, {
3400            let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3401            coverage_enabled as u64
3402        });
3403        __bindgen_bitfield_unit
3404    }
3405}
3406#[repr(C)]
3407#[derive(Debug, Copy, Clone)]
3408pub struct iseq_insn_info_entry {
3409    pub line_no: ::std::os::raw::c_int,
3410    pub node_id: ::std::os::raw::c_int,
3411    pub events: rb_event_flag_t,
3412}
3413#[repr(C)]
3414#[derive(Debug, Copy, Clone)]
3415pub struct iseq_catch_table_entry {
3416    pub type_: iseq_catch_table_entry_catch_type,
3417    pub iseq: *mut rb_iseq_t,
3418    pub start: ::std::os::raw::c_uint,
3419    pub end: ::std::os::raw::c_uint,
3420    pub cont: ::std::os::raw::c_uint,
3421    pub sp: ::std::os::raw::c_uint,
3422}
3423pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
3424    3;
3425pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
3426    5;
3427pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
3428pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
3429pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
3430pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
3431pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
3432#[repr(C, packed)]
3433pub struct iseq_catch_table {
3434    pub size: ::std::os::raw::c_uint,
3435    pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3436}
3437#[repr(C)]
3438#[derive(Debug)]
3439pub struct iseq_compile_data_storage {
3440    pub next: *mut iseq_compile_data_storage,
3441    pub pos: ::std::os::raw::c_uint,
3442    pub size: ::std::os::raw::c_uint,
3443    pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3444}
3445#[repr(C)]
3446#[derive(Debug, Copy, Clone)]
3447pub struct RVALUE {
3448    pub _address: u8,
3449}
3450#[repr(C)]
3451#[derive(Debug, Copy, Clone)]
3452pub struct heap_page {
3453    pub _address: u8,
3454}
3455#[repr(C)]
3456#[derive(Debug, Copy, Clone)]
3457pub struct rb_iv_index_tbl_entry {
3458    pub _address: u8,
3459}
3460#[repr(C)]
3461#[derive(Debug, Copy, Clone)]
3462pub struct yjit_block_version {
3463    pub _address: u8,
3464}
3465#[repr(C)]
3466#[derive(Debug, Copy, Clone)]
3467pub struct succ_index_table {
3468    pub _address: u8,
3469}
3470#[repr(C)]
3471#[derive(Debug, Copy, Clone)]
3472pub struct rb_call_data {
3473    pub _address: u8,
3474}
3475#[repr(C)]
3476#[derive(Debug, Copy, Clone)]
3477pub struct rb_event_hook_struct {
3478    pub _address: u8,
3479}
3480#[repr(C)]
3481#[derive(Debug, Copy, Clone)]
3482pub struct rb_postponed_job_struct {
3483    pub _address: u8,
3484}
3485#[repr(C)]
3486#[derive(Debug, Copy, Clone)]
3487pub struct iseq_label_data {
3488    pub _address: u8,
3489}
3490#[repr(C)]
3491#[derive(Debug, Copy, Clone)]
3492pub struct iseq_compile_data_ensure_node_stack {
3493    pub _address: u8,
3494}