rbspy_ruby_structs/
ruby_3_1_0.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 new_bitfield_1(
1120        type_: rb_method_type_t,
1121        iseq_overload: ::std::os::raw::c_uint,
1122        alias_count: ::std::os::raw::c_int,
1123        complemented_count: ::std::os::raw::c_int,
1124    ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
1125        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
1126        __bindgen_bitfield_unit.set(0usize, 4u8, {
1127            let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1128            type_ as u64
1129        });
1130        __bindgen_bitfield_unit.set(4usize, 1u8, {
1131            let iseq_overload: u32 = unsafe { ::std::mem::transmute(iseq_overload) };
1132            iseq_overload as u64
1133        });
1134        __bindgen_bitfield_unit.set(5usize, 27u8, {
1135            let alias_count: u32 = unsafe { ::std::mem::transmute(alias_count) };
1136            alias_count as u64
1137        });
1138        __bindgen_bitfield_unit.set(32usize, 28u8, {
1139            let complemented_count: u32 = unsafe { ::std::mem::transmute(complemented_count) };
1140            complemented_count as u64
1141        });
1142        __bindgen_bitfield_unit
1143    }
1144}
1145#[repr(C)]
1146#[derive(Debug, Copy, Clone)]
1147pub struct rb_id_table {
1148    _unused: [u8; 0],
1149}
1150#[repr(C)]
1151#[derive(Debug, Copy, Clone)]
1152pub struct rb_code_position_struct {
1153    pub lineno: ::std::os::raw::c_int,
1154    pub column: ::std::os::raw::c_int,
1155}
1156pub type rb_code_position_t = rb_code_position_struct;
1157#[repr(C)]
1158#[derive(Debug, Copy, Clone)]
1159pub struct rb_code_location_struct {
1160    pub beg_pos: rb_code_position_t,
1161    pub end_pos: rb_code_position_t,
1162}
1163pub type rb_code_location_t = rb_code_location_struct;
1164#[repr(C)]
1165#[derive(Debug)]
1166pub struct rb_ast_id_table {
1167    pub size: ::std::os::raw::c_int,
1168    pub ids: __IncompleteArrayField<ID>,
1169}
1170pub type rb_ast_id_table_t = rb_ast_id_table;
1171#[repr(C)]
1172#[derive(Copy, Clone)]
1173pub struct RNode {
1174    pub flags: VALUE,
1175    pub u1: RNode__bindgen_ty_1,
1176    pub u2: RNode__bindgen_ty_2,
1177    pub u3: RNode__bindgen_ty_3,
1178    pub nd_loc: rb_code_location_t,
1179    pub node_id: ::std::os::raw::c_int,
1180}
1181#[repr(C)]
1182#[derive(Copy, Clone)]
1183pub union RNode__bindgen_ty_1 {
1184    pub node: *mut RNode,
1185    pub id: ID,
1186    pub value: VALUE,
1187    pub tbl: *mut rb_ast_id_table_t,
1188}
1189impl ::std::fmt::Debug for RNode__bindgen_ty_1 {
1190    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1191        write!(f, "RNode__bindgen_ty_1 {{ union }}")
1192    }
1193}
1194#[repr(C)]
1195#[derive(Copy, Clone)]
1196pub union RNode__bindgen_ty_2 {
1197    pub node: *mut RNode,
1198    pub id: ID,
1199    pub argc: ::std::os::raw::c_long,
1200    pub value: VALUE,
1201}
1202impl ::std::fmt::Debug for RNode__bindgen_ty_2 {
1203    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1204        write!(f, "RNode__bindgen_ty_2 {{ union }}")
1205    }
1206}
1207#[repr(C)]
1208#[derive(Copy, Clone)]
1209pub union RNode__bindgen_ty_3 {
1210    pub node: *mut RNode,
1211    pub id: ID,
1212    pub state: ::std::os::raw::c_long,
1213    pub args: *mut rb_args_info,
1214    pub apinfo: *mut rb_ary_pattern_info,
1215    pub fpinfo: *mut rb_fnd_pattern_info,
1216    pub value: VALUE,
1217}
1218impl ::std::fmt::Debug for RNode__bindgen_ty_3 {
1219    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1220        write!(f, "RNode__bindgen_ty_3 {{ union }}")
1221    }
1222}
1223impl ::std::fmt::Debug for RNode {
1224    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1225        write!(
1226            f,
1227            "RNode {{ flags: {:?}, u1: {:?}, u2: {:?}, u3: {:?}, nd_loc: {:?}, node_id: {:?} }}",
1228            self.flags, self.u1, self.u2, self.u3, self.nd_loc, self.node_id
1229        )
1230    }
1231}
1232pub type NODE = RNode;
1233#[repr(C)]
1234#[derive(Debug, Copy, Clone)]
1235pub struct rb_args_info {
1236    pub pre_init: *mut NODE,
1237    pub post_init: *mut NODE,
1238    pub pre_args_num: ::std::os::raw::c_int,
1239    pub post_args_num: ::std::os::raw::c_int,
1240    pub first_post_arg: ID,
1241    pub rest_arg: ID,
1242    pub block_arg: ID,
1243    pub kw_args: *mut NODE,
1244    pub kw_rest_arg: *mut NODE,
1245    pub opt_args: *mut NODE,
1246    pub _bitfield_align_1: [u8; 0],
1247    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1248    pub imemo: VALUE,
1249}
1250impl rb_args_info {
1251    #[inline]
1252    pub fn no_kwarg(&self) -> ::std::os::raw::c_uint {
1253        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1254    }
1255    #[inline]
1256    pub fn set_no_kwarg(&mut self, val: ::std::os::raw::c_uint) {
1257        unsafe {
1258            let val: u32 = ::std::mem::transmute(val);
1259            self._bitfield_1.set(0usize, 1u8, val as u64)
1260        }
1261    }
1262    #[inline]
1263    pub unsafe fn no_kwarg_raw(this: *const Self) -> ::std::os::raw::c_uint {
1264        unsafe {
1265            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1266                ::std::ptr::addr_of!((*this)._bitfield_1),
1267                0usize,
1268                1u8,
1269            ) as u32)
1270        }
1271    }
1272    #[inline]
1273    pub unsafe fn set_no_kwarg_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1274        unsafe {
1275            let val: u32 = ::std::mem::transmute(val);
1276            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1277                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1278                0usize,
1279                1u8,
1280                val as u64,
1281            )
1282        }
1283    }
1284    #[inline]
1285    pub fn ruby2_keywords(&self) -> ::std::os::raw::c_uint {
1286        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1287    }
1288    #[inline]
1289    pub fn set_ruby2_keywords(&mut self, val: ::std::os::raw::c_uint) {
1290        unsafe {
1291            let val: u32 = ::std::mem::transmute(val);
1292            self._bitfield_1.set(1usize, 1u8, val as u64)
1293        }
1294    }
1295    #[inline]
1296    pub unsafe fn ruby2_keywords_raw(this: *const Self) -> ::std::os::raw::c_uint {
1297        unsafe {
1298            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1299                ::std::ptr::addr_of!((*this)._bitfield_1),
1300                1usize,
1301                1u8,
1302            ) as u32)
1303        }
1304    }
1305    #[inline]
1306    pub unsafe fn set_ruby2_keywords_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1307        unsafe {
1308            let val: u32 = ::std::mem::transmute(val);
1309            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1310                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1311                1usize,
1312                1u8,
1313                val as u64,
1314            )
1315        }
1316    }
1317    #[inline]
1318    pub fn new_bitfield_1(
1319        no_kwarg: ::std::os::raw::c_uint,
1320        ruby2_keywords: ::std::os::raw::c_uint,
1321    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1322        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1323        __bindgen_bitfield_unit.set(0usize, 1u8, {
1324            let no_kwarg: u32 = unsafe { ::std::mem::transmute(no_kwarg) };
1325            no_kwarg as u64
1326        });
1327        __bindgen_bitfield_unit.set(1usize, 1u8, {
1328            let ruby2_keywords: u32 = unsafe { ::std::mem::transmute(ruby2_keywords) };
1329            ruby2_keywords as u64
1330        });
1331        __bindgen_bitfield_unit
1332    }
1333}
1334#[repr(C)]
1335#[derive(Debug, Copy, Clone)]
1336pub struct rb_ary_pattern_info {
1337    pub pre_args: *mut NODE,
1338    pub rest_arg: *mut NODE,
1339    pub post_args: *mut NODE,
1340}
1341#[repr(C)]
1342#[derive(Debug, Copy, Clone)]
1343pub struct rb_fnd_pattern_info {
1344    pub pre_rest_arg: *mut NODE,
1345    pub args: *mut NODE,
1346    pub post_rest_arg: *mut NODE,
1347}
1348pub type rb_atomic_t = ::std::os::raw::c_uint;
1349#[repr(C)]
1350#[derive(Debug, Copy, Clone)]
1351pub struct rb_darray_meta {
1352    pub size: i32,
1353    pub capa: i32,
1354}
1355pub type rb_darray_meta_t = rb_darray_meta;
1356pub type rb_nativethread_id_t = pthread_t;
1357pub type rb_nativethread_lock_t = pthread_mutex_t;
1358pub type rb_nativethread_cond_t = pthread_cond_t;
1359#[repr(C)]
1360#[derive(Copy, Clone)]
1361pub struct native_thread_data_struct {
1362    pub node: native_thread_data_struct__bindgen_ty_1,
1363    pub cond: native_thread_data_struct__bindgen_ty_2,
1364}
1365#[repr(C)]
1366#[derive(Copy, Clone)]
1367pub union native_thread_data_struct__bindgen_ty_1 {
1368    pub ubf: list_node,
1369    pub gvl: list_node,
1370}
1371impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_1 {
1372    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1373        write!(f, "native_thread_data_struct__bindgen_ty_1 {{ union }}")
1374    }
1375}
1376#[repr(C)]
1377#[derive(Copy, Clone)]
1378pub union native_thread_data_struct__bindgen_ty_2 {
1379    pub intr: rb_nativethread_cond_t,
1380    pub gvlq: rb_nativethread_cond_t,
1381}
1382impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_2 {
1383    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1384        write!(f, "native_thread_data_struct__bindgen_ty_2 {{ union }}")
1385    }
1386}
1387impl ::std::fmt::Debug for native_thread_data_struct {
1388    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1389        write!(
1390            f,
1391            "native_thread_data_struct {{ node: {:?}, cond: {:?} }}",
1392            self.node, self.cond
1393        )
1394    }
1395}
1396pub type native_thread_data_t = native_thread_data_struct;
1397#[repr(C)]
1398#[derive(Copy, Clone)]
1399pub struct rb_global_vm_lock_struct {
1400    pub owner: *const rb_thread_struct,
1401    pub lock: rb_nativethread_lock_t,
1402    pub waitq: list_head,
1403    pub timer: *const rb_thread_struct,
1404    pub timer_err: ::std::os::raw::c_int,
1405    pub switch_cond: rb_nativethread_cond_t,
1406    pub switch_wait_cond: rb_nativethread_cond_t,
1407    pub need_yield: ::std::os::raw::c_int,
1408    pub wait_yield: ::std::os::raw::c_int,
1409}
1410impl ::std::fmt::Debug for rb_global_vm_lock_struct {
1411    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1412        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)
1413    }
1414}
1415pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
1416pub type rb_snum_t = ::std::os::raw::c_long;
1417pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1418pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1419pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1420pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1421pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1422pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1423pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1424pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1425pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1426pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1427pub type ruby_tag_type = ::std::os::raw::c_uint;
1428pub type rb_compile_option_t = rb_compile_option_struct;
1429#[repr(C)]
1430#[derive(Copy, Clone)]
1431pub union ic_serial_entry {
1432    pub raw: rb_serial_t,
1433    pub data: [VALUE; 2usize],
1434}
1435impl ::std::fmt::Debug for ic_serial_entry {
1436    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1437        write!(f, "ic_serial_entry {{ union }}")
1438    }
1439}
1440#[repr(C)]
1441#[derive(Copy, Clone)]
1442pub struct iseq_inline_constant_cache_entry {
1443    pub flags: VALUE,
1444    pub value: VALUE,
1445    pub ic_serial: ic_serial_entry,
1446    pub ic_cref: *const rb_cref_t,
1447}
1448impl ::std::fmt::Debug for iseq_inline_constant_cache_entry {
1449    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1450        write ! (f , "iseq_inline_constant_cache_entry {{ flags: {:?}, value: {:?}, ic_serial: {:?}, ic_cref: {:?} }}" , self . flags , self . value , self . ic_serial , self . ic_cref)
1451    }
1452}
1453#[repr(C)]
1454#[derive(Debug, Copy, Clone)]
1455pub struct iseq_inline_constant_cache {
1456    pub entry: *mut iseq_inline_constant_cache_entry,
1457    pub get_insn_idx: ::std::os::raw::c_uint,
1458}
1459#[repr(C)]
1460#[derive(Debug, Copy, Clone)]
1461pub struct iseq_inline_iv_cache_entry {
1462    pub entry: *mut rb_iv_index_tbl_entry,
1463}
1464#[repr(C)]
1465#[derive(Copy, Clone)]
1466pub union iseq_inline_storage_entry {
1467    pub once: iseq_inline_storage_entry__bindgen_ty_1,
1468    pub ic_cache: iseq_inline_constant_cache,
1469    pub iv_cache: iseq_inline_iv_cache_entry,
1470}
1471#[repr(C)]
1472#[derive(Debug, Copy, Clone)]
1473pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1474    pub running_thread: *mut rb_thread_struct,
1475    pub value: VALUE,
1476}
1477impl ::std::fmt::Debug for iseq_inline_storage_entry {
1478    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1479        write!(f, "iseq_inline_storage_entry {{ union }}")
1480    }
1481}
1482#[repr(C)]
1483#[derive(Debug, Copy, Clone)]
1484pub struct rb_calling_info {
1485    pub ci: *const rb_callinfo,
1486    pub cc: *const rb_callcache,
1487    pub block_handler: VALUE,
1488    pub recv: VALUE,
1489    pub argc: ::std::os::raw::c_int,
1490    pub kw_splat: ::std::os::raw::c_int,
1491}
1492#[repr(C)]
1493#[derive(Debug, Copy, Clone)]
1494pub struct rb_iseq_location_struct {
1495    pub pathobj: VALUE,
1496    pub base_label: VALUE,
1497    pub label: VALUE,
1498    pub first_lineno: VALUE,
1499    pub node_id: ::std::os::raw::c_int,
1500    pub code_location: rb_code_location_t,
1501}
1502pub type rb_iseq_location_t = rb_iseq_location_struct;
1503#[repr(C)]
1504#[derive(Debug, Copy, Clone)]
1505pub struct rb_mjit_unit {
1506    _unused: [u8; 0],
1507}
1508#[repr(C)]
1509#[derive(Debug)]
1510pub struct _bindgen_ty_36 {
1511    pub meta: rb_darray_meta_t,
1512    pub data: __IncompleteArrayField<*mut yjit_block_version>,
1513}
1514pub type rb_yjit_block_array_t = *mut _bindgen_ty_36;
1515#[repr(C)]
1516#[derive(Debug)]
1517pub struct _bindgen_ty_37 {
1518    pub meta: rb_darray_meta_t,
1519    pub data: __IncompleteArrayField<rb_yjit_block_array_t>,
1520}
1521pub type rb_yjit_block_array_array_t = *mut _bindgen_ty_37;
1522#[repr(C)]
1523#[derive(Debug, Copy, Clone)]
1524pub struct rb_iseq_constant_body {
1525    pub type_: rb_iseq_constant_body_iseq_type,
1526    pub iseq_size: ::std::os::raw::c_uint,
1527    pub iseq_encoded: *mut VALUE,
1528    pub param: rb_iseq_constant_body__bindgen_ty_1,
1529    pub location: rb_iseq_location_t,
1530    pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1531    pub local_table: *const ID,
1532    pub catch_table: *mut iseq_catch_table,
1533    pub parent_iseq: *const rb_iseq_struct,
1534    pub local_iseq: *mut rb_iseq_struct,
1535    pub is_entries: *mut iseq_inline_storage_entry,
1536    pub call_data: *mut rb_call_data,
1537    pub variable: rb_iseq_constant_body__bindgen_ty_2,
1538    pub local_table_size: ::std::os::raw::c_uint,
1539    pub is_size: ::std::os::raw::c_uint,
1540    pub ci_size: ::std::os::raw::c_uint,
1541    pub stack_max: ::std::os::raw::c_uint,
1542    pub catch_except_p: ::std::os::raw::c_char,
1543    pub builtin_inline_p: bool,
1544    pub outer_variables: *mut rb_id_table,
1545    pub mandatory_only_iseq: *const rb_iseq_t,
1546    pub jit_func: ::std::option::Option<
1547        unsafe extern "C" fn(
1548            arg1: *mut rb_execution_context_struct,
1549            arg2: *mut rb_control_frame_struct,
1550        ) -> VALUE,
1551    >,
1552    pub total_calls: ::std::os::raw::c_ulong,
1553    pub jit_unit: *mut rb_mjit_unit,
1554    pub yjit_blocks: rb_yjit_block_array_array_t,
1555}
1556pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_TOP: rb_iseq_constant_body_iseq_type = 0;
1557pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_constant_body_iseq_type = 1;
1558pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_constant_body_iseq_type = 2;
1559pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_constant_body_iseq_type = 3;
1560pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_constant_body_iseq_type = 4;
1561pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_constant_body_iseq_type = 5;
1562pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_constant_body_iseq_type = 6;
1563pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_constant_body_iseq_type = 7;
1564pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_constant_body_iseq_type = 8;
1565pub type rb_iseq_constant_body_iseq_type = ::std::os::raw::c_uint;
1566#[repr(C)]
1567#[derive(Debug, Copy, Clone)]
1568pub struct rb_iseq_constant_body__bindgen_ty_1 {
1569    pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1570    pub size: ::std::os::raw::c_uint,
1571    pub lead_num: ::std::os::raw::c_int,
1572    pub opt_num: ::std::os::raw::c_int,
1573    pub rest_start: ::std::os::raw::c_int,
1574    pub post_start: ::std::os::raw::c_int,
1575    pub post_num: ::std::os::raw::c_int,
1576    pub block_start: ::std::os::raw::c_int,
1577    pub opt_table: *const VALUE,
1578    pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1579}
1580#[repr(C)]
1581#[repr(align(4))]
1582#[derive(Debug, Copy, Clone)]
1583pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1584    pub _bitfield_align_1: [u8; 0],
1585    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
1586    pub __bindgen_padding_0: u16,
1587}
1588impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1589    #[inline]
1590    pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1591        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1592    }
1593    #[inline]
1594    pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1595        unsafe {
1596            let val: u32 = ::std::mem::transmute(val);
1597            self._bitfield_1.set(0usize, 1u8, val as u64)
1598        }
1599    }
1600    #[inline]
1601    pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1602        unsafe {
1603            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1604                ::std::ptr::addr_of!((*this)._bitfield_1),
1605                0usize,
1606                1u8,
1607            ) as u32)
1608        }
1609    }
1610    #[inline]
1611    pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1612        unsafe {
1613            let val: u32 = ::std::mem::transmute(val);
1614            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1615                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1616                0usize,
1617                1u8,
1618                val as u64,
1619            )
1620        }
1621    }
1622    #[inline]
1623    pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1624        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1625    }
1626    #[inline]
1627    pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1628        unsafe {
1629            let val: u32 = ::std::mem::transmute(val);
1630            self._bitfield_1.set(1usize, 1u8, val as u64)
1631        }
1632    }
1633    #[inline]
1634    pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1635        unsafe {
1636            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1637                ::std::ptr::addr_of!((*this)._bitfield_1),
1638                1usize,
1639                1u8,
1640            ) as u32)
1641        }
1642    }
1643    #[inline]
1644    pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1645        unsafe {
1646            let val: u32 = ::std::mem::transmute(val);
1647            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1648                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1649                1usize,
1650                1u8,
1651                val as u64,
1652            )
1653        }
1654    }
1655    #[inline]
1656    pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1657        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1658    }
1659    #[inline]
1660    pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1661        unsafe {
1662            let val: u32 = ::std::mem::transmute(val);
1663            self._bitfield_1.set(2usize, 1u8, val as u64)
1664        }
1665    }
1666    #[inline]
1667    pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1668        unsafe {
1669            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1670                ::std::ptr::addr_of!((*this)._bitfield_1),
1671                2usize,
1672                1u8,
1673            ) as u32)
1674        }
1675    }
1676    #[inline]
1677    pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1678        unsafe {
1679            let val: u32 = ::std::mem::transmute(val);
1680            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1681                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1682                2usize,
1683                1u8,
1684                val as u64,
1685            )
1686        }
1687    }
1688    #[inline]
1689    pub fn has_post(&self) -> ::std::os::raw::c_uint {
1690        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1691    }
1692    #[inline]
1693    pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1694        unsafe {
1695            let val: u32 = ::std::mem::transmute(val);
1696            self._bitfield_1.set(3usize, 1u8, val as u64)
1697        }
1698    }
1699    #[inline]
1700    pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1701        unsafe {
1702            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1703                ::std::ptr::addr_of!((*this)._bitfield_1),
1704                3usize,
1705                1u8,
1706            ) as u32)
1707        }
1708    }
1709    #[inline]
1710    pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1711        unsafe {
1712            let val: u32 = ::std::mem::transmute(val);
1713            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1714                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1715                3usize,
1716                1u8,
1717                val as u64,
1718            )
1719        }
1720    }
1721    #[inline]
1722    pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1723        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1724    }
1725    #[inline]
1726    pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1727        unsafe {
1728            let val: u32 = ::std::mem::transmute(val);
1729            self._bitfield_1.set(4usize, 1u8, val as u64)
1730        }
1731    }
1732    #[inline]
1733    pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1734        unsafe {
1735            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1736                ::std::ptr::addr_of!((*this)._bitfield_1),
1737                4usize,
1738                1u8,
1739            ) as u32)
1740        }
1741    }
1742    #[inline]
1743    pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1744        unsafe {
1745            let val: u32 = ::std::mem::transmute(val);
1746            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1747                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1748                4usize,
1749                1u8,
1750                val as u64,
1751            )
1752        }
1753    }
1754    #[inline]
1755    pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1756        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1757    }
1758    #[inline]
1759    pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1760        unsafe {
1761            let val: u32 = ::std::mem::transmute(val);
1762            self._bitfield_1.set(5usize, 1u8, val as u64)
1763        }
1764    }
1765    #[inline]
1766    pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1767        unsafe {
1768            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1769                ::std::ptr::addr_of!((*this)._bitfield_1),
1770                5usize,
1771                1u8,
1772            ) as u32)
1773        }
1774    }
1775    #[inline]
1776    pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1777        unsafe {
1778            let val: u32 = ::std::mem::transmute(val);
1779            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1780                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1781                5usize,
1782                1u8,
1783                val as u64,
1784            )
1785        }
1786    }
1787    #[inline]
1788    pub fn has_block(&self) -> ::std::os::raw::c_uint {
1789        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1790    }
1791    #[inline]
1792    pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1793        unsafe {
1794            let val: u32 = ::std::mem::transmute(val);
1795            self._bitfield_1.set(6usize, 1u8, val as u64)
1796        }
1797    }
1798    #[inline]
1799    pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1800        unsafe {
1801            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1802                ::std::ptr::addr_of!((*this)._bitfield_1),
1803                6usize,
1804                1u8,
1805            ) as u32)
1806        }
1807    }
1808    #[inline]
1809    pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1810        unsafe {
1811            let val: u32 = ::std::mem::transmute(val);
1812            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1813                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1814                6usize,
1815                1u8,
1816                val as u64,
1817            )
1818        }
1819    }
1820    #[inline]
1821    pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1822        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1823    }
1824    #[inline]
1825    pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1826        unsafe {
1827            let val: u32 = ::std::mem::transmute(val);
1828            self._bitfield_1.set(7usize, 1u8, val as u64)
1829        }
1830    }
1831    #[inline]
1832    pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1833        unsafe {
1834            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1835                ::std::ptr::addr_of!((*this)._bitfield_1),
1836                7usize,
1837                1u8,
1838            ) as u32)
1839        }
1840    }
1841    #[inline]
1842    pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1843        unsafe {
1844            let val: u32 = ::std::mem::transmute(val);
1845            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1846                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1847                7usize,
1848                1u8,
1849                val as u64,
1850            )
1851        }
1852    }
1853    #[inline]
1854    pub fn accepts_no_kwarg(&self) -> ::std::os::raw::c_uint {
1855        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
1856    }
1857    #[inline]
1858    pub fn set_accepts_no_kwarg(&mut self, val: ::std::os::raw::c_uint) {
1859        unsafe {
1860            let val: u32 = ::std::mem::transmute(val);
1861            self._bitfield_1.set(8usize, 1u8, val as u64)
1862        }
1863    }
1864    #[inline]
1865    pub unsafe fn accepts_no_kwarg_raw(this: *const Self) -> ::std::os::raw::c_uint {
1866        unsafe {
1867            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1868                ::std::ptr::addr_of!((*this)._bitfield_1),
1869                8usize,
1870                1u8,
1871            ) as u32)
1872        }
1873    }
1874    #[inline]
1875    pub unsafe fn set_accepts_no_kwarg_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1876        unsafe {
1877            let val: u32 = ::std::mem::transmute(val);
1878            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1879                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1880                8usize,
1881                1u8,
1882                val as u64,
1883            )
1884        }
1885    }
1886    #[inline]
1887    pub fn ruby2_keywords(&self) -> ::std::os::raw::c_uint {
1888        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
1889    }
1890    #[inline]
1891    pub fn set_ruby2_keywords(&mut self, val: ::std::os::raw::c_uint) {
1892        unsafe {
1893            let val: u32 = ::std::mem::transmute(val);
1894            self._bitfield_1.set(9usize, 1u8, val as u64)
1895        }
1896    }
1897    #[inline]
1898    pub unsafe fn ruby2_keywords_raw(this: *const Self) -> ::std::os::raw::c_uint {
1899        unsafe {
1900            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1901                ::std::ptr::addr_of!((*this)._bitfield_1),
1902                9usize,
1903                1u8,
1904            ) as u32)
1905        }
1906    }
1907    #[inline]
1908    pub unsafe fn set_ruby2_keywords_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1909        unsafe {
1910            let val: u32 = ::std::mem::transmute(val);
1911            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1912                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1913                9usize,
1914                1u8,
1915                val as u64,
1916            )
1917        }
1918    }
1919    #[inline]
1920    pub fn new_bitfield_1(
1921        has_lead: ::std::os::raw::c_uint,
1922        has_opt: ::std::os::raw::c_uint,
1923        has_rest: ::std::os::raw::c_uint,
1924        has_post: ::std::os::raw::c_uint,
1925        has_kw: ::std::os::raw::c_uint,
1926        has_kwrest: ::std::os::raw::c_uint,
1927        has_block: ::std::os::raw::c_uint,
1928        ambiguous_param0: ::std::os::raw::c_uint,
1929        accepts_no_kwarg: ::std::os::raw::c_uint,
1930        ruby2_keywords: ::std::os::raw::c_uint,
1931    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
1932        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
1933        __bindgen_bitfield_unit.set(0usize, 1u8, {
1934            let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1935            has_lead as u64
1936        });
1937        __bindgen_bitfield_unit.set(1usize, 1u8, {
1938            let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1939            has_opt as u64
1940        });
1941        __bindgen_bitfield_unit.set(2usize, 1u8, {
1942            let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1943            has_rest as u64
1944        });
1945        __bindgen_bitfield_unit.set(3usize, 1u8, {
1946            let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1947            has_post as u64
1948        });
1949        __bindgen_bitfield_unit.set(4usize, 1u8, {
1950            let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1951            has_kw as u64
1952        });
1953        __bindgen_bitfield_unit.set(5usize, 1u8, {
1954            let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1955            has_kwrest as u64
1956        });
1957        __bindgen_bitfield_unit.set(6usize, 1u8, {
1958            let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1959            has_block as u64
1960        });
1961        __bindgen_bitfield_unit.set(7usize, 1u8, {
1962            let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
1963            ambiguous_param0 as u64
1964        });
1965        __bindgen_bitfield_unit.set(8usize, 1u8, {
1966            let accepts_no_kwarg: u32 = unsafe { ::std::mem::transmute(accepts_no_kwarg) };
1967            accepts_no_kwarg as u64
1968        });
1969        __bindgen_bitfield_unit.set(9usize, 1u8, {
1970            let ruby2_keywords: u32 = unsafe { ::std::mem::transmute(ruby2_keywords) };
1971            ruby2_keywords as u64
1972        });
1973        __bindgen_bitfield_unit
1974    }
1975}
1976#[repr(C)]
1977#[derive(Debug, Copy, Clone)]
1978pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
1979    pub num: ::std::os::raw::c_int,
1980    pub required_num: ::std::os::raw::c_int,
1981    pub bits_start: ::std::os::raw::c_int,
1982    pub rest_start: ::std::os::raw::c_int,
1983    pub table: *const ID,
1984    pub default_values: *mut VALUE,
1985}
1986#[repr(C)]
1987#[derive(Debug, Copy, Clone)]
1988pub struct rb_iseq_constant_body_iseq_insn_info {
1989    pub body: *const iseq_insn_info_entry,
1990    pub positions: *mut ::std::os::raw::c_uint,
1991    pub size: ::std::os::raw::c_uint,
1992    pub succ_index_table: *mut succ_index_table,
1993}
1994#[repr(C)]
1995#[derive(Debug, Copy, Clone)]
1996pub struct rb_iseq_constant_body__bindgen_ty_2 {
1997    pub flip_count: rb_snum_t,
1998    pub script_lines: VALUE,
1999    pub coverage: VALUE,
2000    pub pc2branchindex: VALUE,
2001    pub original_iseq: *mut VALUE,
2002}
2003#[repr(C)]
2004#[derive(Copy, Clone)]
2005pub struct rb_iseq_struct {
2006    pub flags: VALUE,
2007    pub wrapper: VALUE,
2008    pub body: *mut rb_iseq_constant_body,
2009    pub aux: rb_iseq_struct__bindgen_ty_1,
2010}
2011#[repr(C)]
2012#[derive(Copy, Clone)]
2013pub union rb_iseq_struct__bindgen_ty_1 {
2014    pub compile_data: *mut iseq_compile_data,
2015    pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
2016    pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
2017}
2018#[repr(C)]
2019#[derive(Debug, Copy, Clone)]
2020pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
2021    pub obj: VALUE,
2022    pub index: ::std::os::raw::c_int,
2023}
2024#[repr(C)]
2025#[derive(Debug, Copy, Clone)]
2026pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
2027    pub local_hooks: *mut rb_hook_list_struct,
2028    pub global_trace_events: rb_event_flag_t,
2029}
2030impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
2031    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2032        write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
2033    }
2034}
2035impl ::std::fmt::Debug for rb_iseq_struct {
2036    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2037        write!(
2038            f,
2039            "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
2040            self.flags, self.wrapper, self.body, self.aux
2041        )
2042    }
2043}
2044pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
2045#[repr(C)]
2046#[derive(Debug, Copy, Clone)]
2047pub struct rb_at_exit_list {
2048    pub func: rb_vm_at_exit_func,
2049    pub next: *mut rb_at_exit_list,
2050}
2051#[repr(C)]
2052#[derive(Debug, Copy, Clone)]
2053pub struct rb_hook_list_struct {
2054    pub hooks: *mut rb_event_hook_struct,
2055    pub events: rb_event_flag_t,
2056    pub running: ::std::os::raw::c_uint,
2057    pub need_clean: bool,
2058    pub is_local: bool,
2059}
2060pub type rb_hook_list_t = rb_hook_list_struct;
2061#[repr(C)]
2062#[derive(Debug, Copy, Clone)]
2063pub struct rb_builtin_function {
2064    _unused: [u8; 0],
2065}
2066#[repr(C)]
2067#[derive(Copy, Clone)]
2068pub struct rb_vm_struct {
2069    pub self_: VALUE,
2070    pub ractor: rb_vm_struct__bindgen_ty_1,
2071    pub main_altstack: *mut ::std::os::raw::c_void,
2072    pub fork_gen: rb_serial_t,
2073    pub waitpid_lock: rb_nativethread_lock_t,
2074    pub waiting_pids: list_head,
2075    pub waiting_grps: list_head,
2076    pub waiting_fds: list_head,
2077    pub ubf_async_safe: ::std::os::raw::c_int,
2078    pub _bitfield_align_1: [u8; 0],
2079    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2080    pub mark_object_ary: VALUE,
2081    pub special_exceptions: [VALUE; 5usize],
2082    pub top_self: VALUE,
2083    pub load_path: VALUE,
2084    pub load_path_snapshot: VALUE,
2085    pub load_path_check_cache: VALUE,
2086    pub expanded_load_path: VALUE,
2087    pub loaded_features: VALUE,
2088    pub loaded_features_snapshot: VALUE,
2089    pub loaded_features_realpaths: VALUE,
2090    pub loaded_features_index: *mut st_table,
2091    pub loading_table: *mut st_table,
2092    pub trap_list: rb_vm_struct__bindgen_ty_2,
2093    pub ensure_rollback_table: *mut st_table,
2094    pub postponed_job_buffer: *mut rb_postponed_job_struct,
2095    pub postponed_job_index: rb_atomic_t,
2096    pub src_encoding_index: ::std::os::raw::c_int,
2097    pub workqueue: list_head,
2098    pub workqueue_lock: rb_nativethread_lock_t,
2099    pub orig_progname: VALUE,
2100    pub progname: VALUE,
2101    pub coverages: VALUE,
2102    pub me2counter: VALUE,
2103    pub coverage_mode: ::std::os::raw::c_int,
2104    pub defined_module_hash: *mut st_table,
2105    pub objspace: *mut rb_objspace,
2106    pub at_exit: *mut rb_at_exit_list,
2107    pub frozen_strings: *mut st_table,
2108    pub builtin_function_table: *const rb_builtin_function,
2109    pub builtin_inline_index: ::std::os::raw::c_int,
2110    pub negative_cme_table: *mut rb_id_table,
2111    pub overloaded_cme_table: *mut st_table,
2112    pub global_cc_cache_table: [*const rb_callcache; 1023usize],
2113    pub default_params: rb_vm_struct__bindgen_ty_3,
2114    pub redefined_flag: [::std::os::raw::c_short; 29usize],
2115}
2116#[repr(C)]
2117#[derive(Copy, Clone)]
2118pub struct rb_vm_struct__bindgen_ty_1 {
2119    pub set: list_head,
2120    pub cnt: ::std::os::raw::c_uint,
2121    pub blocking_cnt: ::std::os::raw::c_uint,
2122    pub main_ractor: *mut rb_ractor_struct,
2123    pub main_thread: *mut rb_thread_struct,
2124    pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
2125}
2126#[repr(C)]
2127#[derive(Copy, Clone)]
2128pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2129    pub lock: rb_nativethread_lock_t,
2130    pub lock_owner: *mut rb_ractor_struct,
2131    pub lock_rec: ::std::os::raw::c_uint,
2132    pub barrier_waiting: bool,
2133    pub barrier_cnt: ::std::os::raw::c_uint,
2134    pub barrier_cond: rb_nativethread_cond_t,
2135    pub terminate_cond: rb_nativethread_cond_t,
2136    pub terminate_waiting: bool,
2137}
2138impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2139    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2140        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)
2141    }
2142}
2143impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2144    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2145        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)
2146    }
2147}
2148#[repr(C)]
2149#[derive(Debug, Copy, Clone)]
2150pub struct rb_vm_struct__bindgen_ty_2 {
2151    pub cmd: [VALUE; 65usize],
2152}
2153#[repr(C)]
2154#[derive(Debug, Copy, Clone)]
2155pub struct rb_vm_struct__bindgen_ty_3 {
2156    pub thread_vm_stack_size: usize,
2157    pub thread_machine_stack_size: usize,
2158    pub fiber_vm_stack_size: usize,
2159    pub fiber_machine_stack_size: usize,
2160}
2161impl ::std::fmt::Debug for rb_vm_struct {
2162    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2163        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)
2164    }
2165}
2166impl rb_vm_struct {
2167    #[inline]
2168    pub fn running(&self) -> ::std::os::raw::c_uint {
2169        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2170    }
2171    #[inline]
2172    pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2173        unsafe {
2174            let val: u32 = ::std::mem::transmute(val);
2175            self._bitfield_1.set(0usize, 1u8, val as u64)
2176        }
2177    }
2178    #[inline]
2179    pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2180        unsafe {
2181            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2182                ::std::ptr::addr_of!((*this)._bitfield_1),
2183                0usize,
2184                1u8,
2185            ) as u32)
2186        }
2187    }
2188    #[inline]
2189    pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2190        unsafe {
2191            let val: u32 = ::std::mem::transmute(val);
2192            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2193                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2194                0usize,
2195                1u8,
2196                val as u64,
2197            )
2198        }
2199    }
2200    #[inline]
2201    pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2202        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2203    }
2204    #[inline]
2205    pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2206        unsafe {
2207            let val: u32 = ::std::mem::transmute(val);
2208            self._bitfield_1.set(1usize, 1u8, val as u64)
2209        }
2210    }
2211    #[inline]
2212    pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2213        unsafe {
2214            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2215                ::std::ptr::addr_of!((*this)._bitfield_1),
2216                1usize,
2217                1u8,
2218            ) as u32)
2219        }
2220    }
2221    #[inline]
2222    pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2223        unsafe {
2224            let val: u32 = ::std::mem::transmute(val);
2225            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2226                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2227                1usize,
2228                1u8,
2229                val as u64,
2230            )
2231        }
2232    }
2233    #[inline]
2234    pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2235        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2236    }
2237    #[inline]
2238    pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2239        unsafe {
2240            let val: u32 = ::std::mem::transmute(val);
2241            self._bitfield_1.set(2usize, 1u8, val as u64)
2242        }
2243    }
2244    #[inline]
2245    pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2246        unsafe {
2247            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2248                ::std::ptr::addr_of!((*this)._bitfield_1),
2249                2usize,
2250                1u8,
2251            ) as u32)
2252        }
2253    }
2254    #[inline]
2255    pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2256        unsafe {
2257            let val: u32 = ::std::mem::transmute(val);
2258            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2259                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2260                2usize,
2261                1u8,
2262                val as u64,
2263            )
2264        }
2265    }
2266    #[inline]
2267    pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2268        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2269    }
2270    #[inline]
2271    pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2272        unsafe {
2273            let val: u32 = ::std::mem::transmute(val);
2274            self._bitfield_1.set(3usize, 1u8, val as u64)
2275        }
2276    }
2277    #[inline]
2278    pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2279        unsafe {
2280            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2281                ::std::ptr::addr_of!((*this)._bitfield_1),
2282                3usize,
2283                1u8,
2284            ) as u32)
2285        }
2286    }
2287    #[inline]
2288    pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2289        unsafe {
2290            let val: u32 = ::std::mem::transmute(val);
2291            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2292                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2293                3usize,
2294                1u8,
2295                val as u64,
2296            )
2297        }
2298    }
2299    #[inline]
2300    pub fn new_bitfield_1(
2301        running: ::std::os::raw::c_uint,
2302        thread_abort_on_exception: ::std::os::raw::c_uint,
2303        thread_report_on_exception: ::std::os::raw::c_uint,
2304        thread_ignore_deadlock: ::std::os::raw::c_uint,
2305    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2306        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2307        __bindgen_bitfield_unit.set(0usize, 1u8, {
2308            let running: u32 = unsafe { ::std::mem::transmute(running) };
2309            running as u64
2310        });
2311        __bindgen_bitfield_unit.set(1usize, 1u8, {
2312            let thread_abort_on_exception: u32 =
2313                unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2314            thread_abort_on_exception as u64
2315        });
2316        __bindgen_bitfield_unit.set(2usize, 1u8, {
2317            let thread_report_on_exception: u32 =
2318                unsafe { ::std::mem::transmute(thread_report_on_exception) };
2319            thread_report_on_exception as u64
2320        });
2321        __bindgen_bitfield_unit.set(3usize, 1u8, {
2322            let thread_ignore_deadlock: u32 =
2323                unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2324            thread_ignore_deadlock as u64
2325        });
2326        __bindgen_bitfield_unit
2327    }
2328}
2329pub type rb_vm_t = rb_vm_struct;
2330#[repr(C)]
2331#[derive(Debug, Copy, Clone)]
2332pub struct rb_control_frame_struct {
2333    pub pc: *const VALUE,
2334    pub sp: *mut VALUE,
2335    pub iseq: *const rb_iseq_t,
2336    pub self_: VALUE,
2337    pub ep: *const VALUE,
2338    pub block_code: *const ::std::os::raw::c_void,
2339    pub __bp__: *mut VALUE,
2340    pub jit_return: *mut ::std::os::raw::c_void,
2341}
2342pub type rb_control_frame_t = rb_control_frame_struct;
2343pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2344pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2345pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2346pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2347pub type rb_thread_status = ::std::os::raw::c_uint;
2348pub type rb_jmpbuf_t = sigjmp_buf;
2349#[repr(C)]
2350#[derive(Debug, Copy, Clone)]
2351pub struct rb_vm_tag {
2352    pub tag: VALUE,
2353    pub retval: VALUE,
2354    pub buf: rb_jmpbuf_t,
2355    pub prev: *mut rb_vm_tag,
2356    pub state: ruby_tag_type,
2357    pub lock_rec: ::std::os::raw::c_uint,
2358}
2359#[repr(C)]
2360#[derive(Debug, Copy, Clone)]
2361pub struct rb_unblock_callback {
2362    pub func: rb_unblock_function_t,
2363    pub arg: *mut ::std::os::raw::c_void,
2364}
2365#[repr(C)]
2366#[derive(Debug, Copy, Clone)]
2367pub struct rb_mutex_struct {
2368    _unused: [u8; 0],
2369}
2370#[repr(C)]
2371#[derive(Debug, Copy, Clone)]
2372pub struct rb_ensure_entry {
2373    pub marker: VALUE,
2374    pub e_proc: ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>,
2375    pub data2: VALUE,
2376}
2377#[repr(C)]
2378#[derive(Debug, Copy, Clone)]
2379pub struct rb_ensure_list {
2380    pub next: *mut rb_ensure_list,
2381    pub entry: rb_ensure_entry,
2382}
2383pub type rb_ensure_list_t = rb_ensure_list;
2384#[repr(C)]
2385#[derive(Debug, Copy, Clone)]
2386pub struct rb_fiber_struct {
2387    _unused: [u8; 0],
2388}
2389pub type rb_fiber_t = rb_fiber_struct;
2390#[repr(C)]
2391#[derive(Debug, Copy, Clone)]
2392pub struct rb_waiting_list {
2393    pub next: *mut rb_waiting_list,
2394    pub thread: *mut rb_thread_struct,
2395    pub fiber: *mut rb_fiber_struct,
2396}
2397#[repr(C)]
2398#[derive(Debug, Copy, Clone)]
2399pub struct rb_execution_context_struct {
2400    pub vm_stack: *mut VALUE,
2401    pub vm_stack_size: usize,
2402    pub cfp: *mut rb_control_frame_t,
2403    pub tag: *mut rb_vm_tag,
2404    pub interrupt_flag: rb_atomic_t,
2405    pub interrupt_mask: rb_atomic_t,
2406    pub fiber_ptr: *mut rb_fiber_t,
2407    pub thread_ptr: *mut rb_thread_struct,
2408    pub local_storage: *mut rb_id_table,
2409    pub local_storage_recursive_hash: VALUE,
2410    pub local_storage_recursive_hash_for_trace: VALUE,
2411    pub root_lep: *const VALUE,
2412    pub root_svar: VALUE,
2413    pub ensure_list: *mut rb_ensure_list_t,
2414    pub trace_arg: *mut rb_trace_arg_struct,
2415    pub errinfo: VALUE,
2416    pub passed_block_handler: VALUE,
2417    pub raised_flag: u8,
2418    pub _bitfield_align_1: [u8; 0],
2419    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2420    pub private_const_reference: VALUE,
2421    pub machine: rb_execution_context_struct__bindgen_ty_1,
2422}
2423#[repr(C)]
2424#[derive(Debug, Copy, Clone)]
2425pub struct rb_execution_context_struct__bindgen_ty_1 {
2426    pub stack_start: *mut VALUE,
2427    pub stack_end: *mut VALUE,
2428    pub stack_maxsize: usize,
2429    pub regs: jmp_buf,
2430}
2431impl rb_execution_context_struct {
2432    #[inline]
2433    pub fn method_missing_reason(&self) -> method_missing_reason {
2434        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
2435    }
2436    #[inline]
2437    pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2438        unsafe {
2439            let val: u32 = ::std::mem::transmute(val);
2440            self._bitfield_1.set(0usize, 8u8, val as u64)
2441        }
2442    }
2443    #[inline]
2444    pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2445        unsafe {
2446            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2447                ::std::ptr::addr_of!((*this)._bitfield_1),
2448                0usize,
2449                8u8,
2450            ) as u32)
2451        }
2452    }
2453    #[inline]
2454    pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2455        unsafe {
2456            let val: u32 = ::std::mem::transmute(val);
2457            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2458                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2459                0usize,
2460                8u8,
2461                val as u64,
2462            )
2463        }
2464    }
2465    #[inline]
2466    pub fn new_bitfield_1(
2467        method_missing_reason: method_missing_reason,
2468    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2469        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2470        __bindgen_bitfield_unit.set(0usize, 8u8, {
2471            let method_missing_reason: u32 =
2472                unsafe { ::std::mem::transmute(method_missing_reason) };
2473            method_missing_reason as u64
2474        });
2475        __bindgen_bitfield_unit
2476    }
2477}
2478pub type rb_execution_context_t = rb_execution_context_struct;
2479#[repr(C)]
2480#[derive(Debug, Copy, Clone)]
2481pub struct rb_ext_config {
2482    pub ractor_safe: bool,
2483}
2484pub type rb_ractor_t = rb_ractor_struct;
2485#[repr(C)]
2486#[derive(Copy, Clone)]
2487pub struct rb_thread_struct {
2488    pub lt_node: list_node,
2489    pub self_: VALUE,
2490    pub ractor: *mut rb_ractor_t,
2491    pub vm: *mut rb_vm_t,
2492    pub ec: *mut rb_execution_context_t,
2493    pub last_status: VALUE,
2494    pub calling: *mut rb_calling_info,
2495    pub top_self: VALUE,
2496    pub top_wrapper: VALUE,
2497    pub thread_id: rb_nativethread_id_t,
2498    pub tid: ::std::os::raw::c_int,
2499    pub _bitfield_align_1: [u8; 0],
2500    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2501    pub priority: i8,
2502    pub running_time_us: u32,
2503    pub native_thread_data: native_thread_data_t,
2504    pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2505    pub thgroup: VALUE,
2506    pub value: VALUE,
2507    pub pending_interrupt_queue: VALUE,
2508    pub pending_interrupt_mask_stack: VALUE,
2509    pub interrupt_lock: rb_nativethread_lock_t,
2510    pub unblock: rb_unblock_callback,
2511    pub locking_mutex: VALUE,
2512    pub keeping_mutexes: *mut rb_mutex_struct,
2513    pub join_list: *mut rb_waiting_list,
2514    pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2515    pub invoke_type: rb_thread_struct_thread_invoke_type,
2516    pub stat_insn_usage: VALUE,
2517    pub root_fiber: *mut rb_fiber_t,
2518    pub scheduler: VALUE,
2519    pub blocking: ::std::os::raw::c_uint,
2520    pub name: VALUE,
2521    pub ext_config: rb_ext_config,
2522    pub altstack: *mut ::std::os::raw::c_void,
2523}
2524#[repr(C)]
2525#[derive(Copy, Clone)]
2526pub union rb_thread_struct__bindgen_ty_1 {
2527    pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2528    pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2529}
2530#[repr(C)]
2531#[derive(Debug, Copy, Clone)]
2532pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2533    pub proc_: VALUE,
2534    pub args: VALUE,
2535    pub kw_splat: ::std::os::raw::c_int,
2536}
2537#[repr(C)]
2538#[derive(Debug, Copy, Clone)]
2539pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2540    pub func:
2541        ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
2542    pub arg: *mut ::std::os::raw::c_void,
2543}
2544impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2545    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2546        write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2547    }
2548}
2549pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
2550    rb_thread_struct_thread_invoke_type = 0;
2551pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
2552    rb_thread_struct_thread_invoke_type = 1;
2553pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
2554    rb_thread_struct_thread_invoke_type = 2;
2555pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
2556    rb_thread_struct_thread_invoke_type = 3;
2557pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
2558impl ::std::fmt::Debug for rb_thread_struct {
2559    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2560        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)
2561    }
2562}
2563impl rb_thread_struct {
2564    #[inline]
2565    pub fn status(&self) -> rb_thread_status {
2566        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
2567    }
2568    #[inline]
2569    pub fn set_status(&mut self, val: rb_thread_status) {
2570        unsafe {
2571            let val: u32 = ::std::mem::transmute(val);
2572            self._bitfield_1.set(0usize, 2u8, val as u64)
2573        }
2574    }
2575    #[inline]
2576    pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2577        unsafe {
2578            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2579                ::std::ptr::addr_of!((*this)._bitfield_1),
2580                0usize,
2581                2u8,
2582            ) as u32)
2583        }
2584    }
2585    #[inline]
2586    pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2587        unsafe {
2588            let val: u32 = ::std::mem::transmute(val);
2589            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2590                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2591                0usize,
2592                2u8,
2593                val as u64,
2594            )
2595        }
2596    }
2597    #[inline]
2598    pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2599        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2600    }
2601    #[inline]
2602    pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2603        unsafe {
2604            let val: u32 = ::std::mem::transmute(val);
2605            self._bitfield_1.set(2usize, 1u8, val as u64)
2606        }
2607    }
2608    #[inline]
2609    pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2610        unsafe {
2611            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2612                ::std::ptr::addr_of!((*this)._bitfield_1),
2613                2usize,
2614                1u8,
2615            ) as u32)
2616        }
2617    }
2618    #[inline]
2619    pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2620        unsafe {
2621            let val: u32 = ::std::mem::transmute(val);
2622            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2623                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2624                2usize,
2625                1u8,
2626                val as u64,
2627            )
2628        }
2629    }
2630    #[inline]
2631    pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2632        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2633    }
2634    #[inline]
2635    pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2636        unsafe {
2637            let val: u32 = ::std::mem::transmute(val);
2638            self._bitfield_1.set(3usize, 1u8, val as u64)
2639        }
2640    }
2641    #[inline]
2642    pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2643        unsafe {
2644            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2645                ::std::ptr::addr_of!((*this)._bitfield_1),
2646                3usize,
2647                1u8,
2648            ) as u32)
2649        }
2650    }
2651    #[inline]
2652    pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2653        unsafe {
2654            let val: u32 = ::std::mem::transmute(val);
2655            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2656                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2657                3usize,
2658                1u8,
2659                val as u64,
2660            )
2661        }
2662    }
2663    #[inline]
2664    pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2665        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2666    }
2667    #[inline]
2668    pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2669        unsafe {
2670            let val: u32 = ::std::mem::transmute(val);
2671            self._bitfield_1.set(4usize, 1u8, val as u64)
2672        }
2673    }
2674    #[inline]
2675    pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2676        unsafe {
2677            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2678                ::std::ptr::addr_of!((*this)._bitfield_1),
2679                4usize,
2680                1u8,
2681            ) as u32)
2682        }
2683    }
2684    #[inline]
2685    pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2686        unsafe {
2687            let val: u32 = ::std::mem::transmute(val);
2688            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2689                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2690                4usize,
2691                1u8,
2692                val as u64,
2693            )
2694        }
2695    }
2696    #[inline]
2697    pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
2698        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2699    }
2700    #[inline]
2701    pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
2702        unsafe {
2703            let val: u32 = ::std::mem::transmute(val);
2704            self._bitfield_1.set(5usize, 1u8, val as u64)
2705        }
2706    }
2707    #[inline]
2708    pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
2709        unsafe {
2710            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2711                ::std::ptr::addr_of!((*this)._bitfield_1),
2712                5usize,
2713                1u8,
2714            ) as u32)
2715        }
2716    }
2717    #[inline]
2718    pub unsafe fn set_pending_interrupt_queue_checked_raw(
2719        this: *mut Self,
2720        val: ::std::os::raw::c_uint,
2721    ) {
2722        unsafe {
2723            let val: u32 = ::std::mem::transmute(val);
2724            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2725                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2726                5usize,
2727                1u8,
2728                val as u64,
2729            )
2730        }
2731    }
2732    #[inline]
2733    pub fn new_bitfield_1(
2734        status: rb_thread_status,
2735        to_kill: ::std::os::raw::c_uint,
2736        abort_on_exception: ::std::os::raw::c_uint,
2737        report_on_exception: ::std::os::raw::c_uint,
2738        pending_interrupt_queue_checked: ::std::os::raw::c_uint,
2739    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2740        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2741        __bindgen_bitfield_unit.set(0usize, 2u8, {
2742            let status: u32 = unsafe { ::std::mem::transmute(status) };
2743            status as u64
2744        });
2745        __bindgen_bitfield_unit.set(2usize, 1u8, {
2746            let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
2747            to_kill as u64
2748        });
2749        __bindgen_bitfield_unit.set(3usize, 1u8, {
2750            let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2751            abort_on_exception as u64
2752        });
2753        __bindgen_bitfield_unit.set(4usize, 1u8, {
2754            let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2755            report_on_exception as u64
2756        });
2757        __bindgen_bitfield_unit.set(5usize, 1u8, {
2758            let pending_interrupt_queue_checked: u32 =
2759                unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
2760            pending_interrupt_queue_checked as u64
2761        });
2762        __bindgen_bitfield_unit
2763    }
2764}
2765pub type rb_thread_t = rb_thread_struct;
2766#[repr(C)]
2767#[derive(Debug, Copy, Clone)]
2768pub struct rb_trace_arg_struct {
2769    pub event: rb_event_flag_t,
2770    pub ec: *mut rb_execution_context_t,
2771    pub cfp: *const rb_control_frame_t,
2772    pub self_: VALUE,
2773    pub id: ID,
2774    pub called_id: ID,
2775    pub klass: VALUE,
2776    pub data: VALUE,
2777    pub klass_solved: ::std::os::raw::c_int,
2778    pub lineno: ::std::os::raw::c_int,
2779    pub path: VALUE,
2780}
2781#[repr(C)]
2782#[derive(Debug, Copy, Clone)]
2783pub struct rb_ractor_pub {
2784    pub self_: VALUE,
2785    pub id: u32,
2786    pub hooks: rb_hook_list_t,
2787}
2788pub const rb_ractor_basket_type_basket_type_none: rb_ractor_basket_type = 0;
2789pub const rb_ractor_basket_type_basket_type_ref: rb_ractor_basket_type = 1;
2790pub const rb_ractor_basket_type_basket_type_copy: rb_ractor_basket_type = 2;
2791pub const rb_ractor_basket_type_basket_type_move: rb_ractor_basket_type = 3;
2792pub const rb_ractor_basket_type_basket_type_will: rb_ractor_basket_type = 4;
2793pub const rb_ractor_basket_type_basket_type_deleted: rb_ractor_basket_type = 5;
2794pub const rb_ractor_basket_type_basket_type_reserved: rb_ractor_basket_type = 6;
2795pub type rb_ractor_basket_type = ::std::os::raw::c_uint;
2796#[repr(C)]
2797#[derive(Debug, Copy, Clone)]
2798pub struct rb_ractor_basket {
2799    pub exception: bool,
2800    pub type_: rb_ractor_basket_type,
2801    pub v: VALUE,
2802    pub sender: VALUE,
2803}
2804#[repr(C)]
2805#[derive(Debug, Copy, Clone)]
2806pub struct rb_ractor_queue {
2807    pub baskets: *mut rb_ractor_basket,
2808    pub start: ::std::os::raw::c_int,
2809    pub cnt: ::std::os::raw::c_int,
2810    pub size: ::std::os::raw::c_int,
2811    pub serial: ::std::os::raw::c_uint,
2812    pub reserved_cnt: ::std::os::raw::c_uint,
2813}
2814#[repr(C)]
2815#[derive(Debug, Copy, Clone)]
2816pub struct rb_ractor_waiting_list {
2817    pub cnt: ::std::os::raw::c_int,
2818    pub size: ::std::os::raw::c_int,
2819    pub ractors: *mut *mut rb_ractor_t,
2820}
2821#[repr(C)]
2822#[derive(Copy, Clone)]
2823pub struct rb_ractor_sync {
2824    pub lock: rb_nativethread_lock_t,
2825    pub cond: rb_nativethread_cond_t,
2826    pub incoming_queue: rb_ractor_queue,
2827    pub taking_ractors: rb_ractor_waiting_list,
2828    pub incoming_port_closed: bool,
2829    pub outgoing_port_closed: bool,
2830    pub wait: rb_ractor_sync_ractor_wait,
2831}
2832#[repr(C)]
2833#[derive(Debug, Copy, Clone)]
2834pub struct rb_ractor_sync_ractor_wait {
2835    pub status: rb_ractor_sync_ractor_wait_ractor_wait_status,
2836    pub wakeup_status: rb_ractor_sync_ractor_wait_ractor_wakeup_status,
2837    pub yielded_basket: rb_ractor_basket,
2838    pub taken_basket: rb_ractor_basket,
2839}
2840pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_none:
2841    rb_ractor_sync_ractor_wait_ractor_wait_status = 0;
2842pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_receiving:
2843    rb_ractor_sync_ractor_wait_ractor_wait_status = 1;
2844pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_taking:
2845    rb_ractor_sync_ractor_wait_ractor_wait_status = 2;
2846pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_yielding:
2847    rb_ractor_sync_ractor_wait_ractor_wait_status = 4;
2848pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_moving:
2849    rb_ractor_sync_ractor_wait_ractor_wait_status = 8;
2850pub type rb_ractor_sync_ractor_wait_ractor_wait_status = ::std::os::raw::c_uint;
2851pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_none:
2852    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 0;
2853pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_send:
2854    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 1;
2855pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_yield:
2856    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 2;
2857pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_take:
2858    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 3;
2859pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_close:
2860    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 4;
2861pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_interrupt:
2862    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 5;
2863pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_retry:
2864    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 6;
2865pub type rb_ractor_sync_ractor_wait_ractor_wakeup_status = ::std::os::raw::c_uint;
2866impl ::std::fmt::Debug for rb_ractor_sync {
2867    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2868        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)
2869    }
2870}
2871#[repr(C)]
2872#[derive(Copy, Clone)]
2873pub struct rb_ractor_struct {
2874    pub pub_: rb_ractor_pub,
2875    pub sync: rb_ractor_sync,
2876    pub receiving_mutex: VALUE,
2877    pub yield_atexit: bool,
2878    pub barrier_wait_cond: rb_nativethread_cond_t,
2879    pub threads: rb_ractor_struct__bindgen_ty_1,
2880    pub thgroup_default: VALUE,
2881    pub name: VALUE,
2882    pub loc: VALUE,
2883    pub status_: rb_ractor_struct_ractor_status,
2884    pub vmlr_node: list_node,
2885    pub local_storage: *mut st_table,
2886    pub idkey_local_storage: *mut rb_id_table,
2887    pub r_stdin: VALUE,
2888    pub r_stdout: VALUE,
2889    pub r_stderr: VALUE,
2890    pub verbose: VALUE,
2891    pub debug: VALUE,
2892    pub newobj_cache: rb_ractor_newobj_cache_t,
2893    pub mfd: *mut rb_ractor_struct_gc_mark_func_data_struct,
2894}
2895#[repr(C)]
2896#[derive(Copy, Clone)]
2897pub struct rb_ractor_struct__bindgen_ty_1 {
2898    pub set: list_head,
2899    pub cnt: ::std::os::raw::c_uint,
2900    pub blocking_cnt: ::std::os::raw::c_uint,
2901    pub sleeper: ::std::os::raw::c_uint,
2902    pub gvl: rb_global_vm_lock_t,
2903    pub running_ec: *mut rb_execution_context_t,
2904    pub main: *mut rb_thread_t,
2905}
2906impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
2907    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2908        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)
2909    }
2910}
2911pub const rb_ractor_struct_ractor_status_ractor_created: rb_ractor_struct_ractor_status = 0;
2912pub const rb_ractor_struct_ractor_status_ractor_running: rb_ractor_struct_ractor_status = 1;
2913pub const rb_ractor_struct_ractor_status_ractor_blocking: rb_ractor_struct_ractor_status = 2;
2914pub const rb_ractor_struct_ractor_status_ractor_terminated: rb_ractor_struct_ractor_status = 3;
2915pub type rb_ractor_struct_ractor_status = ::std::os::raw::c_uint;
2916#[repr(C)]
2917#[derive(Debug, Copy, Clone)]
2918pub struct rb_ractor_struct_gc_mark_func_data_struct {
2919    pub data: *mut ::std::os::raw::c_void,
2920    pub mark_func:
2921        ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
2922}
2923impl ::std::fmt::Debug for rb_ractor_struct {
2924    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2925        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)
2926    }
2927}
2928#[repr(C)]
2929#[derive(Debug, Copy, Clone)]
2930pub struct iseq_compile_data {
2931    pub err_info: VALUE,
2932    pub catch_table_ary: VALUE,
2933    pub start_label: *mut iseq_label_data,
2934    pub end_label: *mut iseq_label_data,
2935    pub redo_label: *mut iseq_label_data,
2936    pub current_block: *const rb_iseq_t,
2937    pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2938    pub node: iseq_compile_data__bindgen_ty_1,
2939    pub insn: iseq_compile_data__bindgen_ty_2,
2940    pub in_rescue: bool,
2941    pub loopval_popped: ::std::os::raw::c_int,
2942    pub last_line: ::std::os::raw::c_int,
2943    pub label_no: ::std::os::raw::c_int,
2944    pub node_level: ::std::os::raw::c_int,
2945    pub isolated_depth: ::std::os::raw::c_int,
2946    pub ci_index: ::std::os::raw::c_uint,
2947    pub option: *const rb_compile_option_t,
2948    pub ivar_cache_table: *mut rb_id_table,
2949    pub builtin_function_table: *const rb_builtin_function,
2950    pub root_node: *const NODE,
2951}
2952#[repr(C)]
2953#[derive(Debug, Copy, Clone)]
2954pub struct iseq_compile_data__bindgen_ty_1 {
2955    pub storage_head: *mut iseq_compile_data_storage,
2956    pub storage_current: *mut iseq_compile_data_storage,
2957}
2958#[repr(C)]
2959#[derive(Debug, Copy, Clone)]
2960pub struct iseq_compile_data__bindgen_ty_2 {
2961    pub storage_head: *mut iseq_compile_data_storage,
2962    pub storage_current: *mut iseq_compile_data_storage,
2963}
2964#[repr(C)]
2965#[derive(Debug, Copy, Clone)]
2966pub struct rb_compile_option_struct {
2967    pub _bitfield_align_1: [u8; 0],
2968    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2969    pub debug_level: ::std::os::raw::c_int,
2970}
2971impl rb_compile_option_struct {
2972    #[inline]
2973    pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
2974        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2975    }
2976    #[inline]
2977    pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
2978        unsafe {
2979            let val: u32 = ::std::mem::transmute(val);
2980            self._bitfield_1.set(0usize, 1u8, val as u64)
2981        }
2982    }
2983    #[inline]
2984    pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
2985        unsafe {
2986            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2987                ::std::ptr::addr_of!((*this)._bitfield_1),
2988                0usize,
2989                1u8,
2990            ) as u32)
2991        }
2992    }
2993    #[inline]
2994    pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2995        unsafe {
2996            let val: u32 = ::std::mem::transmute(val);
2997            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2998                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2999                0usize,
3000                1u8,
3001                val as u64,
3002            )
3003        }
3004    }
3005    #[inline]
3006    pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
3007        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3008    }
3009    #[inline]
3010    pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
3011        unsafe {
3012            let val: u32 = ::std::mem::transmute(val);
3013            self._bitfield_1.set(1usize, 1u8, val as u64)
3014        }
3015    }
3016    #[inline]
3017    pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3018        unsafe {
3019            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3020                ::std::ptr::addr_of!((*this)._bitfield_1),
3021                1usize,
3022                1u8,
3023            ) as u32)
3024        }
3025    }
3026    #[inline]
3027    pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3028        unsafe {
3029            let val: u32 = ::std::mem::transmute(val);
3030            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3031                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3032                1usize,
3033                1u8,
3034                val as u64,
3035            )
3036        }
3037    }
3038    #[inline]
3039    pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3040        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3041    }
3042    #[inline]
3043    pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3044        unsafe {
3045            let val: u32 = ::std::mem::transmute(val);
3046            self._bitfield_1.set(2usize, 1u8, val as u64)
3047        }
3048    }
3049    #[inline]
3050    pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3051        unsafe {
3052            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3053                ::std::ptr::addr_of!((*this)._bitfield_1),
3054                2usize,
3055                1u8,
3056            ) as u32)
3057        }
3058    }
3059    #[inline]
3060    pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3061        unsafe {
3062            let val: u32 = ::std::mem::transmute(val);
3063            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3064                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3065                2usize,
3066                1u8,
3067                val as u64,
3068            )
3069        }
3070    }
3071    #[inline]
3072    pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3073        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3074    }
3075    #[inline]
3076    pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3077        unsafe {
3078            let val: u32 = ::std::mem::transmute(val);
3079            self._bitfield_1.set(3usize, 1u8, val as u64)
3080        }
3081    }
3082    #[inline]
3083    pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3084        unsafe {
3085            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3086                ::std::ptr::addr_of!((*this)._bitfield_1),
3087                3usize,
3088                1u8,
3089            ) as u32)
3090        }
3091    }
3092    #[inline]
3093    pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3094        unsafe {
3095            let val: u32 = ::std::mem::transmute(val);
3096            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3097                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3098                3usize,
3099                1u8,
3100                val as u64,
3101            )
3102        }
3103    }
3104    #[inline]
3105    pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3106        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3107    }
3108    #[inline]
3109    pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3110        unsafe {
3111            let val: u32 = ::std::mem::transmute(val);
3112            self._bitfield_1.set(4usize, 1u8, val as u64)
3113        }
3114    }
3115    #[inline]
3116    pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3117        unsafe {
3118            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3119                ::std::ptr::addr_of!((*this)._bitfield_1),
3120                4usize,
3121                1u8,
3122            ) as u32)
3123        }
3124    }
3125    #[inline]
3126    pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3127        unsafe {
3128            let val: u32 = ::std::mem::transmute(val);
3129            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3130                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3131                4usize,
3132                1u8,
3133                val as u64,
3134            )
3135        }
3136    }
3137    #[inline]
3138    pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3139        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3140    }
3141    #[inline]
3142    pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3143        unsafe {
3144            let val: u32 = ::std::mem::transmute(val);
3145            self._bitfield_1.set(5usize, 1u8, val as u64)
3146        }
3147    }
3148    #[inline]
3149    pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3150        unsafe {
3151            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3152                ::std::ptr::addr_of!((*this)._bitfield_1),
3153                5usize,
3154                1u8,
3155            ) as u32)
3156        }
3157    }
3158    #[inline]
3159    pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3160        unsafe {
3161            let val: u32 = ::std::mem::transmute(val);
3162            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3163                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3164                5usize,
3165                1u8,
3166                val as u64,
3167            )
3168        }
3169    }
3170    #[inline]
3171    pub fn stack_caching(&self) -> ::std::os::raw::c_uint {
3172        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
3173    }
3174    #[inline]
3175    pub fn set_stack_caching(&mut self, val: ::std::os::raw::c_uint) {
3176        unsafe {
3177            let val: u32 = ::std::mem::transmute(val);
3178            self._bitfield_1.set(6usize, 1u8, val as u64)
3179        }
3180    }
3181    #[inline]
3182    pub unsafe fn stack_caching_raw(this: *const Self) -> ::std::os::raw::c_uint {
3183        unsafe {
3184            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3185                ::std::ptr::addr_of!((*this)._bitfield_1),
3186                6usize,
3187                1u8,
3188            ) as u32)
3189        }
3190    }
3191    #[inline]
3192    pub unsafe fn set_stack_caching_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3193        unsafe {
3194            let val: u32 = ::std::mem::transmute(val);
3195            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3196                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3197                6usize,
3198                1u8,
3199                val as u64,
3200            )
3201        }
3202    }
3203    #[inline]
3204    pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3205        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
3206    }
3207    #[inline]
3208    pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3209        unsafe {
3210            let val: u32 = ::std::mem::transmute(val);
3211            self._bitfield_1.set(7usize, 1u8, val as u64)
3212        }
3213    }
3214    #[inline]
3215    pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3216        unsafe {
3217            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3218                ::std::ptr::addr_of!((*this)._bitfield_1),
3219                7usize,
3220                1u8,
3221            ) as u32)
3222        }
3223    }
3224    #[inline]
3225    pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3226        unsafe {
3227            let val: u32 = ::std::mem::transmute(val);
3228            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3229                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3230                7usize,
3231                1u8,
3232                val as u64,
3233            )
3234        }
3235    }
3236    #[inline]
3237    pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3238        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
3239    }
3240    #[inline]
3241    pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3242        unsafe {
3243            let val: u32 = ::std::mem::transmute(val);
3244            self._bitfield_1.set(8usize, 1u8, val as u64)
3245        }
3246    }
3247    #[inline]
3248    pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3249        unsafe {
3250            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3251                ::std::ptr::addr_of!((*this)._bitfield_1),
3252                8usize,
3253                1u8,
3254            ) as u32)
3255        }
3256    }
3257    #[inline]
3258    pub unsafe fn set_debug_frozen_string_literal_raw(
3259        this: *mut Self,
3260        val: ::std::os::raw::c_uint,
3261    ) {
3262        unsafe {
3263            let val: u32 = ::std::mem::transmute(val);
3264            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3265                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3266                8usize,
3267                1u8,
3268                val as u64,
3269            )
3270        }
3271    }
3272    #[inline]
3273    pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3274        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
3275    }
3276    #[inline]
3277    pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3278        unsafe {
3279            let val: u32 = ::std::mem::transmute(val);
3280            self._bitfield_1.set(9usize, 1u8, val as u64)
3281        }
3282    }
3283    #[inline]
3284    pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3285        unsafe {
3286            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3287                ::std::ptr::addr_of!((*this)._bitfield_1),
3288                9usize,
3289                1u8,
3290            ) as u32)
3291        }
3292    }
3293    #[inline]
3294    pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3295        unsafe {
3296            let val: u32 = ::std::mem::transmute(val);
3297            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3298                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3299                9usize,
3300                1u8,
3301                val as u64,
3302            )
3303        }
3304    }
3305    #[inline]
3306    pub fn new_bitfield_1(
3307        inline_const_cache: ::std::os::raw::c_uint,
3308        peephole_optimization: ::std::os::raw::c_uint,
3309        tailcall_optimization: ::std::os::raw::c_uint,
3310        specialized_instruction: ::std::os::raw::c_uint,
3311        operands_unification: ::std::os::raw::c_uint,
3312        instructions_unification: ::std::os::raw::c_uint,
3313        stack_caching: ::std::os::raw::c_uint,
3314        frozen_string_literal: ::std::os::raw::c_uint,
3315        debug_frozen_string_literal: ::std::os::raw::c_uint,
3316        coverage_enabled: ::std::os::raw::c_uint,
3317    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3318        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3319        __bindgen_bitfield_unit.set(0usize, 1u8, {
3320            let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3321            inline_const_cache as u64
3322        });
3323        __bindgen_bitfield_unit.set(1usize, 1u8, {
3324            let peephole_optimization: u32 =
3325                unsafe { ::std::mem::transmute(peephole_optimization) };
3326            peephole_optimization as u64
3327        });
3328        __bindgen_bitfield_unit.set(2usize, 1u8, {
3329            let tailcall_optimization: u32 =
3330                unsafe { ::std::mem::transmute(tailcall_optimization) };
3331            tailcall_optimization as u64
3332        });
3333        __bindgen_bitfield_unit.set(3usize, 1u8, {
3334            let specialized_instruction: u32 =
3335                unsafe { ::std::mem::transmute(specialized_instruction) };
3336            specialized_instruction as u64
3337        });
3338        __bindgen_bitfield_unit.set(4usize, 1u8, {
3339            let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3340            operands_unification as u64
3341        });
3342        __bindgen_bitfield_unit.set(5usize, 1u8, {
3343            let instructions_unification: u32 =
3344                unsafe { ::std::mem::transmute(instructions_unification) };
3345            instructions_unification as u64
3346        });
3347        __bindgen_bitfield_unit.set(6usize, 1u8, {
3348            let stack_caching: u32 = unsafe { ::std::mem::transmute(stack_caching) };
3349            stack_caching as u64
3350        });
3351        __bindgen_bitfield_unit.set(7usize, 1u8, {
3352            let frozen_string_literal: u32 =
3353                unsafe { ::std::mem::transmute(frozen_string_literal) };
3354            frozen_string_literal as u64
3355        });
3356        __bindgen_bitfield_unit.set(8usize, 1u8, {
3357            let debug_frozen_string_literal: u32 =
3358                unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3359            debug_frozen_string_literal as u64
3360        });
3361        __bindgen_bitfield_unit.set(9usize, 1u8, {
3362            let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3363            coverage_enabled as u64
3364        });
3365        __bindgen_bitfield_unit
3366    }
3367}
3368#[repr(C)]
3369#[derive(Debug, Copy, Clone)]
3370pub struct iseq_insn_info_entry {
3371    pub line_no: ::std::os::raw::c_int,
3372    pub node_id: ::std::os::raw::c_int,
3373    pub events: rb_event_flag_t,
3374}
3375#[repr(C)]
3376#[derive(Debug, Copy, Clone)]
3377pub struct iseq_catch_table_entry {
3378    pub type_: iseq_catch_table_entry_catch_type,
3379    pub iseq: *mut rb_iseq_t,
3380    pub start: ::std::os::raw::c_uint,
3381    pub end: ::std::os::raw::c_uint,
3382    pub cont: ::std::os::raw::c_uint,
3383    pub sp: ::std::os::raw::c_uint,
3384}
3385pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
3386    3;
3387pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
3388    5;
3389pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
3390pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
3391pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
3392pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
3393pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
3394#[repr(C, packed)]
3395pub struct iseq_catch_table {
3396    pub size: ::std::os::raw::c_uint,
3397    pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3398}
3399#[repr(C)]
3400#[derive(Debug)]
3401pub struct iseq_compile_data_storage {
3402    pub next: *mut iseq_compile_data_storage,
3403    pub pos: ::std::os::raw::c_uint,
3404    pub size: ::std::os::raw::c_uint,
3405    pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3406}
3407#[repr(C)]
3408#[derive(Debug, Copy, Clone)]
3409pub struct RVALUE {
3410    pub _address: u8,
3411}
3412#[repr(C)]
3413#[derive(Debug, Copy, Clone)]
3414pub struct heap_page {
3415    pub _address: u8,
3416}
3417#[repr(C)]
3418#[derive(Debug, Copy, Clone)]
3419pub struct rb_iv_index_tbl_entry {
3420    pub _address: u8,
3421}
3422#[repr(C)]
3423#[derive(Debug, Copy, Clone)]
3424pub struct yjit_block_version {
3425    pub _address: u8,
3426}
3427#[repr(C)]
3428#[derive(Debug, Copy, Clone)]
3429pub struct succ_index_table {
3430    pub _address: u8,
3431}
3432#[repr(C)]
3433#[derive(Debug, Copy, Clone)]
3434pub struct rb_call_data {
3435    pub _address: u8,
3436}
3437#[repr(C)]
3438#[derive(Debug, Copy, Clone)]
3439pub struct rb_event_hook_struct {
3440    pub _address: u8,
3441}
3442#[repr(C)]
3443#[derive(Debug, Copy, Clone)]
3444pub struct rb_postponed_job_struct {
3445    pub _address: u8,
3446}
3447#[repr(C)]
3448#[derive(Debug, Copy, Clone)]
3449pub struct iseq_label_data {
3450    pub _address: u8,
3451}
3452#[repr(C)]
3453#[derive(Debug, Copy, Clone)]
3454pub struct iseq_compile_data_ensure_node_stack {
3455    pub _address: u8,
3456}