rbspy_ruby_structs/
ruby_3_1_4.rs

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