rbspy_ruby_structs/
ruby_3_1_6.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_realpath_map: VALUE,
2132    pub loaded_features_index: *mut st_table,
2133    pub loading_table: *mut st_table,
2134    pub trap_list: rb_vm_struct__bindgen_ty_2,
2135    pub ensure_rollback_table: *mut st_table,
2136    pub postponed_job_buffer: *mut rb_postponed_job_struct,
2137    pub postponed_job_index: rb_atomic_t,
2138    pub src_encoding_index: ::std::os::raw::c_int,
2139    pub workqueue: list_head,
2140    pub workqueue_lock: rb_nativethread_lock_t,
2141    pub orig_progname: VALUE,
2142    pub progname: VALUE,
2143    pub coverages: VALUE,
2144    pub me2counter: VALUE,
2145    pub coverage_mode: ::std::os::raw::c_int,
2146    pub defined_module_hash: *mut st_table,
2147    pub objspace: *mut rb_objspace,
2148    pub at_exit: *mut rb_at_exit_list,
2149    pub frozen_strings: *mut st_table,
2150    pub builtin_function_table: *const rb_builtin_function,
2151    pub builtin_inline_index: ::std::os::raw::c_int,
2152    pub negative_cme_table: *mut rb_id_table,
2153    pub overloaded_cme_table: *mut st_table,
2154    pub global_cc_cache_table: [*const rb_callcache; 1023usize],
2155    pub default_params: rb_vm_struct__bindgen_ty_3,
2156    pub redefined_flag: [::std::os::raw::c_short; 29usize],
2157}
2158#[repr(C)]
2159#[derive(Copy, Clone)]
2160pub struct rb_vm_struct__bindgen_ty_1 {
2161    pub set: list_head,
2162    pub cnt: ::std::os::raw::c_uint,
2163    pub blocking_cnt: ::std::os::raw::c_uint,
2164    pub main_ractor: *mut rb_ractor_struct,
2165    pub main_thread: *mut rb_thread_struct,
2166    pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
2167}
2168#[repr(C)]
2169#[derive(Copy, Clone)]
2170pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2171    pub lock: rb_nativethread_lock_t,
2172    pub lock_owner: *mut rb_ractor_struct,
2173    pub lock_rec: ::std::os::raw::c_uint,
2174    pub barrier_waiting: bool,
2175    pub barrier_cnt: ::std::os::raw::c_uint,
2176    pub barrier_cond: rb_nativethread_cond_t,
2177    pub terminate_cond: rb_nativethread_cond_t,
2178    pub terminate_waiting: bool,
2179}
2180impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2181    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2182        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)
2183    }
2184}
2185impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2186    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2187        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)
2188    }
2189}
2190#[repr(C)]
2191#[derive(Debug, Copy, Clone)]
2192pub struct rb_vm_struct__bindgen_ty_2 {
2193    pub cmd: [VALUE; 65usize],
2194}
2195#[repr(C)]
2196#[derive(Debug, Copy, Clone)]
2197pub struct rb_vm_struct__bindgen_ty_3 {
2198    pub thread_vm_stack_size: usize,
2199    pub thread_machine_stack_size: usize,
2200    pub fiber_vm_stack_size: usize,
2201    pub fiber_machine_stack_size: usize,
2202}
2203impl ::std::fmt::Debug for rb_vm_struct {
2204    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2205        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_realpath_map: {:?}, 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_realpath_map , 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)
2206    }
2207}
2208impl rb_vm_struct {
2209    #[inline]
2210    pub fn running(&self) -> ::std::os::raw::c_uint {
2211        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2212    }
2213    #[inline]
2214    pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2215        unsafe {
2216            let val: u32 = ::std::mem::transmute(val);
2217            self._bitfield_1.set(0usize, 1u8, val as u64)
2218        }
2219    }
2220    #[inline]
2221    pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2222        unsafe {
2223            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2224                ::std::ptr::addr_of!((*this)._bitfield_1),
2225                0usize,
2226                1u8,
2227            ) as u32)
2228        }
2229    }
2230    #[inline]
2231    pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2232        unsafe {
2233            let val: u32 = ::std::mem::transmute(val);
2234            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2235                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2236                0usize,
2237                1u8,
2238                val as u64,
2239            )
2240        }
2241    }
2242    #[inline]
2243    pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2244        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2245    }
2246    #[inline]
2247    pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2248        unsafe {
2249            let val: u32 = ::std::mem::transmute(val);
2250            self._bitfield_1.set(1usize, 1u8, val as u64)
2251        }
2252    }
2253    #[inline]
2254    pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2255        unsafe {
2256            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2257                ::std::ptr::addr_of!((*this)._bitfield_1),
2258                1usize,
2259                1u8,
2260            ) as u32)
2261        }
2262    }
2263    #[inline]
2264    pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2265        unsafe {
2266            let val: u32 = ::std::mem::transmute(val);
2267            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2268                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2269                1usize,
2270                1u8,
2271                val as u64,
2272            )
2273        }
2274    }
2275    #[inline]
2276    pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2277        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2278    }
2279    #[inline]
2280    pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2281        unsafe {
2282            let val: u32 = ::std::mem::transmute(val);
2283            self._bitfield_1.set(2usize, 1u8, val as u64)
2284        }
2285    }
2286    #[inline]
2287    pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2288        unsafe {
2289            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2290                ::std::ptr::addr_of!((*this)._bitfield_1),
2291                2usize,
2292                1u8,
2293            ) as u32)
2294        }
2295    }
2296    #[inline]
2297    pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2298        unsafe {
2299            let val: u32 = ::std::mem::transmute(val);
2300            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2301                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2302                2usize,
2303                1u8,
2304                val as u64,
2305            )
2306        }
2307    }
2308    #[inline]
2309    pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2310        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2311    }
2312    #[inline]
2313    pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2314        unsafe {
2315            let val: u32 = ::std::mem::transmute(val);
2316            self._bitfield_1.set(3usize, 1u8, val as u64)
2317        }
2318    }
2319    #[inline]
2320    pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2321        unsafe {
2322            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2323                ::std::ptr::addr_of!((*this)._bitfield_1),
2324                3usize,
2325                1u8,
2326            ) as u32)
2327        }
2328    }
2329    #[inline]
2330    pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2331        unsafe {
2332            let val: u32 = ::std::mem::transmute(val);
2333            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2334                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2335                3usize,
2336                1u8,
2337                val as u64,
2338            )
2339        }
2340    }
2341    #[inline]
2342    pub fn new_bitfield_1(
2343        running: ::std::os::raw::c_uint,
2344        thread_abort_on_exception: ::std::os::raw::c_uint,
2345        thread_report_on_exception: ::std::os::raw::c_uint,
2346        thread_ignore_deadlock: ::std::os::raw::c_uint,
2347    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2348        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2349        __bindgen_bitfield_unit.set(0usize, 1u8, {
2350            let running: u32 = unsafe { ::std::mem::transmute(running) };
2351            running as u64
2352        });
2353        __bindgen_bitfield_unit.set(1usize, 1u8, {
2354            let thread_abort_on_exception: u32 =
2355                unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2356            thread_abort_on_exception as u64
2357        });
2358        __bindgen_bitfield_unit.set(2usize, 1u8, {
2359            let thread_report_on_exception: u32 =
2360                unsafe { ::std::mem::transmute(thread_report_on_exception) };
2361            thread_report_on_exception as u64
2362        });
2363        __bindgen_bitfield_unit.set(3usize, 1u8, {
2364            let thread_ignore_deadlock: u32 =
2365                unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2366            thread_ignore_deadlock as u64
2367        });
2368        __bindgen_bitfield_unit
2369    }
2370}
2371pub type rb_vm_t = rb_vm_struct;
2372#[repr(C)]
2373#[derive(Debug, Copy, Clone)]
2374pub struct rb_control_frame_struct {
2375    pub pc: *const VALUE,
2376    pub sp: *mut VALUE,
2377    pub iseq: *const rb_iseq_t,
2378    pub self_: VALUE,
2379    pub ep: *const VALUE,
2380    pub block_code: *const ::std::os::raw::c_void,
2381    pub __bp__: *mut VALUE,
2382    pub jit_return: *mut ::std::os::raw::c_void,
2383}
2384pub type rb_control_frame_t = rb_control_frame_struct;
2385pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2386pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2387pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2388pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2389pub type rb_thread_status = ::std::os::raw::c_uint;
2390pub type rb_jmpbuf_t = sigjmp_buf;
2391#[repr(C)]
2392#[derive(Debug, Copy, Clone)]
2393pub struct rb_vm_tag {
2394    pub tag: VALUE,
2395    pub retval: VALUE,
2396    pub buf: rb_jmpbuf_t,
2397    pub prev: *mut rb_vm_tag,
2398    pub state: ruby_tag_type,
2399    pub lock_rec: ::std::os::raw::c_uint,
2400}
2401#[repr(C)]
2402#[derive(Debug, Copy, Clone)]
2403pub struct rb_unblock_callback {
2404    pub func: rb_unblock_function_t,
2405    pub arg: *mut ::std::os::raw::c_void,
2406}
2407#[repr(C)]
2408#[derive(Debug, Copy, Clone)]
2409pub struct rb_mutex_struct {
2410    _unused: [u8; 0],
2411}
2412#[repr(C)]
2413#[derive(Debug, Copy, Clone)]
2414pub struct rb_ensure_entry {
2415    pub marker: VALUE,
2416    pub e_proc: ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>,
2417    pub data2: VALUE,
2418}
2419#[repr(C)]
2420#[derive(Debug, Copy, Clone)]
2421pub struct rb_ensure_list {
2422    pub next: *mut rb_ensure_list,
2423    pub entry: rb_ensure_entry,
2424}
2425pub type rb_ensure_list_t = rb_ensure_list;
2426#[repr(C)]
2427#[derive(Debug, Copy, Clone)]
2428pub struct rb_fiber_struct {
2429    _unused: [u8; 0],
2430}
2431pub type rb_fiber_t = rb_fiber_struct;
2432#[repr(C)]
2433#[derive(Debug, Copy, Clone)]
2434pub struct rb_waiting_list {
2435    pub next: *mut rb_waiting_list,
2436    pub thread: *mut rb_thread_struct,
2437    pub fiber: *mut rb_fiber_struct,
2438}
2439#[repr(C)]
2440#[derive(Debug, Copy, Clone)]
2441pub struct rb_execution_context_struct {
2442    pub vm_stack: *mut VALUE,
2443    pub vm_stack_size: usize,
2444    pub cfp: *mut rb_control_frame_t,
2445    pub tag: *mut rb_vm_tag,
2446    pub interrupt_flag: rb_atomic_t,
2447    pub interrupt_mask: rb_atomic_t,
2448    pub fiber_ptr: *mut rb_fiber_t,
2449    pub thread_ptr: *mut rb_thread_struct,
2450    pub local_storage: *mut rb_id_table,
2451    pub local_storage_recursive_hash: VALUE,
2452    pub local_storage_recursive_hash_for_trace: VALUE,
2453    pub root_lep: *const VALUE,
2454    pub root_svar: VALUE,
2455    pub ensure_list: *mut rb_ensure_list_t,
2456    pub trace_arg: *mut rb_trace_arg_struct,
2457    pub errinfo: VALUE,
2458    pub passed_block_handler: VALUE,
2459    pub raised_flag: u8,
2460    pub _bitfield_align_1: [u8; 0],
2461    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2462    pub private_const_reference: VALUE,
2463    pub machine: rb_execution_context_struct__bindgen_ty_1,
2464}
2465#[repr(C)]
2466#[derive(Debug, Copy, Clone)]
2467pub struct rb_execution_context_struct__bindgen_ty_1 {
2468    pub stack_start: *mut VALUE,
2469    pub stack_end: *mut VALUE,
2470    pub stack_maxsize: usize,
2471    pub regs: jmp_buf,
2472}
2473impl rb_execution_context_struct {
2474    #[inline]
2475    pub fn method_missing_reason(&self) -> method_missing_reason {
2476        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
2477    }
2478    #[inline]
2479    pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2480        unsafe {
2481            let val: u32 = ::std::mem::transmute(val);
2482            self._bitfield_1.set(0usize, 8u8, val as u64)
2483        }
2484    }
2485    #[inline]
2486    pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2487        unsafe {
2488            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2489                ::std::ptr::addr_of!((*this)._bitfield_1),
2490                0usize,
2491                8u8,
2492            ) as u32)
2493        }
2494    }
2495    #[inline]
2496    pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2497        unsafe {
2498            let val: u32 = ::std::mem::transmute(val);
2499            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2500                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2501                0usize,
2502                8u8,
2503                val as u64,
2504            )
2505        }
2506    }
2507    #[inline]
2508    pub fn new_bitfield_1(
2509        method_missing_reason: method_missing_reason,
2510    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2511        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2512        __bindgen_bitfield_unit.set(0usize, 8u8, {
2513            let method_missing_reason: u32 =
2514                unsafe { ::std::mem::transmute(method_missing_reason) };
2515            method_missing_reason as u64
2516        });
2517        __bindgen_bitfield_unit
2518    }
2519}
2520pub type rb_execution_context_t = rb_execution_context_struct;
2521#[repr(C)]
2522#[derive(Debug, Copy, Clone)]
2523pub struct rb_ext_config {
2524    pub ractor_safe: bool,
2525}
2526pub type rb_ractor_t = rb_ractor_struct;
2527#[repr(C)]
2528#[derive(Copy, Clone)]
2529pub struct rb_thread_struct {
2530    pub lt_node: list_node,
2531    pub self_: VALUE,
2532    pub ractor: *mut rb_ractor_t,
2533    pub vm: *mut rb_vm_t,
2534    pub ec: *mut rb_execution_context_t,
2535    pub last_status: VALUE,
2536    pub calling: *mut rb_calling_info,
2537    pub top_self: VALUE,
2538    pub top_wrapper: VALUE,
2539    pub thread_id: rb_nativethread_id_t,
2540    pub tid: ::std::os::raw::c_int,
2541    pub _bitfield_align_1: [u8; 0],
2542    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2543    pub priority: i8,
2544    pub running_time_us: u32,
2545    pub native_thread_data: native_thread_data_t,
2546    pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2547    pub thgroup: VALUE,
2548    pub value: VALUE,
2549    pub pending_interrupt_queue: VALUE,
2550    pub pending_interrupt_mask_stack: VALUE,
2551    pub interrupt_lock: rb_nativethread_lock_t,
2552    pub unblock: rb_unblock_callback,
2553    pub locking_mutex: VALUE,
2554    pub keeping_mutexes: *mut rb_mutex_struct,
2555    pub join_list: *mut rb_waiting_list,
2556    pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2557    pub invoke_type: rb_thread_struct_thread_invoke_type,
2558    pub stat_insn_usage: VALUE,
2559    pub root_fiber: *mut rb_fiber_t,
2560    pub scheduler: VALUE,
2561    pub blocking: ::std::os::raw::c_uint,
2562    pub name: VALUE,
2563    pub ext_config: rb_ext_config,
2564    pub altstack: *mut ::std::os::raw::c_void,
2565}
2566#[repr(C)]
2567#[derive(Copy, Clone)]
2568pub union rb_thread_struct__bindgen_ty_1 {
2569    pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2570    pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2571}
2572#[repr(C)]
2573#[derive(Debug, Copy, Clone)]
2574pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2575    pub proc_: VALUE,
2576    pub args: VALUE,
2577    pub kw_splat: ::std::os::raw::c_int,
2578}
2579#[repr(C)]
2580#[derive(Debug, Copy, Clone)]
2581pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2582    pub func:
2583        ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
2584    pub arg: *mut ::std::os::raw::c_void,
2585}
2586impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2587    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2588        write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2589    }
2590}
2591pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
2592    rb_thread_struct_thread_invoke_type = 0;
2593pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
2594    rb_thread_struct_thread_invoke_type = 1;
2595pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
2596    rb_thread_struct_thread_invoke_type = 2;
2597pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
2598    rb_thread_struct_thread_invoke_type = 3;
2599pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
2600impl ::std::fmt::Debug for rb_thread_struct {
2601    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2602        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)
2603    }
2604}
2605impl rb_thread_struct {
2606    #[inline]
2607    pub fn status(&self) -> rb_thread_status {
2608        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
2609    }
2610    #[inline]
2611    pub fn set_status(&mut self, val: rb_thread_status) {
2612        unsafe {
2613            let val: u32 = ::std::mem::transmute(val);
2614            self._bitfield_1.set(0usize, 2u8, val as u64)
2615        }
2616    }
2617    #[inline]
2618    pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2619        unsafe {
2620            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2621                ::std::ptr::addr_of!((*this)._bitfield_1),
2622                0usize,
2623                2u8,
2624            ) as u32)
2625        }
2626    }
2627    #[inline]
2628    pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2629        unsafe {
2630            let val: u32 = ::std::mem::transmute(val);
2631            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2632                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2633                0usize,
2634                2u8,
2635                val as u64,
2636            )
2637        }
2638    }
2639    #[inline]
2640    pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2641        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2642    }
2643    #[inline]
2644    pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2645        unsafe {
2646            let val: u32 = ::std::mem::transmute(val);
2647            self._bitfield_1.set(2usize, 1u8, val as u64)
2648        }
2649    }
2650    #[inline]
2651    pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2652        unsafe {
2653            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2654                ::std::ptr::addr_of!((*this)._bitfield_1),
2655                2usize,
2656                1u8,
2657            ) as u32)
2658        }
2659    }
2660    #[inline]
2661    pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2662        unsafe {
2663            let val: u32 = ::std::mem::transmute(val);
2664            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2665                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2666                2usize,
2667                1u8,
2668                val as u64,
2669            )
2670        }
2671    }
2672    #[inline]
2673    pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2674        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2675    }
2676    #[inline]
2677    pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2678        unsafe {
2679            let val: u32 = ::std::mem::transmute(val);
2680            self._bitfield_1.set(3usize, 1u8, val as u64)
2681        }
2682    }
2683    #[inline]
2684    pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2685        unsafe {
2686            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2687                ::std::ptr::addr_of!((*this)._bitfield_1),
2688                3usize,
2689                1u8,
2690            ) as u32)
2691        }
2692    }
2693    #[inline]
2694    pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2695        unsafe {
2696            let val: u32 = ::std::mem::transmute(val);
2697            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2698                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2699                3usize,
2700                1u8,
2701                val as u64,
2702            )
2703        }
2704    }
2705    #[inline]
2706    pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2707        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2708    }
2709    #[inline]
2710    pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2711        unsafe {
2712            let val: u32 = ::std::mem::transmute(val);
2713            self._bitfield_1.set(4usize, 1u8, val as u64)
2714        }
2715    }
2716    #[inline]
2717    pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2718        unsafe {
2719            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2720                ::std::ptr::addr_of!((*this)._bitfield_1),
2721                4usize,
2722                1u8,
2723            ) as u32)
2724        }
2725    }
2726    #[inline]
2727    pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2728        unsafe {
2729            let val: u32 = ::std::mem::transmute(val);
2730            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2731                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2732                4usize,
2733                1u8,
2734                val as u64,
2735            )
2736        }
2737    }
2738    #[inline]
2739    pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
2740        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2741    }
2742    #[inline]
2743    pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
2744        unsafe {
2745            let val: u32 = ::std::mem::transmute(val);
2746            self._bitfield_1.set(5usize, 1u8, val as u64)
2747        }
2748    }
2749    #[inline]
2750    pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
2751        unsafe {
2752            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2753                ::std::ptr::addr_of!((*this)._bitfield_1),
2754                5usize,
2755                1u8,
2756            ) as u32)
2757        }
2758    }
2759    #[inline]
2760    pub unsafe fn set_pending_interrupt_queue_checked_raw(
2761        this: *mut Self,
2762        val: ::std::os::raw::c_uint,
2763    ) {
2764        unsafe {
2765            let val: u32 = ::std::mem::transmute(val);
2766            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2767                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2768                5usize,
2769                1u8,
2770                val as u64,
2771            )
2772        }
2773    }
2774    #[inline]
2775    pub fn new_bitfield_1(
2776        status: rb_thread_status,
2777        to_kill: ::std::os::raw::c_uint,
2778        abort_on_exception: ::std::os::raw::c_uint,
2779        report_on_exception: ::std::os::raw::c_uint,
2780        pending_interrupt_queue_checked: ::std::os::raw::c_uint,
2781    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2782        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2783        __bindgen_bitfield_unit.set(0usize, 2u8, {
2784            let status: u32 = unsafe { ::std::mem::transmute(status) };
2785            status as u64
2786        });
2787        __bindgen_bitfield_unit.set(2usize, 1u8, {
2788            let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
2789            to_kill as u64
2790        });
2791        __bindgen_bitfield_unit.set(3usize, 1u8, {
2792            let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2793            abort_on_exception as u64
2794        });
2795        __bindgen_bitfield_unit.set(4usize, 1u8, {
2796            let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2797            report_on_exception as u64
2798        });
2799        __bindgen_bitfield_unit.set(5usize, 1u8, {
2800            let pending_interrupt_queue_checked: u32 =
2801                unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
2802            pending_interrupt_queue_checked as u64
2803        });
2804        __bindgen_bitfield_unit
2805    }
2806}
2807pub type rb_thread_t = rb_thread_struct;
2808#[repr(C)]
2809#[derive(Debug, Copy, Clone)]
2810pub struct rb_trace_arg_struct {
2811    pub event: rb_event_flag_t,
2812    pub ec: *mut rb_execution_context_t,
2813    pub cfp: *const rb_control_frame_t,
2814    pub self_: VALUE,
2815    pub id: ID,
2816    pub called_id: ID,
2817    pub klass: VALUE,
2818    pub data: VALUE,
2819    pub klass_solved: ::std::os::raw::c_int,
2820    pub lineno: ::std::os::raw::c_int,
2821    pub path: VALUE,
2822}
2823#[repr(C)]
2824#[derive(Debug, Copy, Clone)]
2825pub struct rb_ractor_pub {
2826    pub self_: VALUE,
2827    pub id: u32,
2828    pub hooks: rb_hook_list_t,
2829}
2830pub const rb_ractor_basket_type_basket_type_none: rb_ractor_basket_type = 0;
2831pub const rb_ractor_basket_type_basket_type_ref: rb_ractor_basket_type = 1;
2832pub const rb_ractor_basket_type_basket_type_copy: rb_ractor_basket_type = 2;
2833pub const rb_ractor_basket_type_basket_type_move: rb_ractor_basket_type = 3;
2834pub const rb_ractor_basket_type_basket_type_will: rb_ractor_basket_type = 4;
2835pub const rb_ractor_basket_type_basket_type_deleted: rb_ractor_basket_type = 5;
2836pub const rb_ractor_basket_type_basket_type_reserved: rb_ractor_basket_type = 6;
2837pub type rb_ractor_basket_type = ::std::os::raw::c_uint;
2838#[repr(C)]
2839#[derive(Debug, Copy, Clone)]
2840pub struct rb_ractor_basket {
2841    pub exception: bool,
2842    pub type_: rb_ractor_basket_type,
2843    pub v: VALUE,
2844    pub sender: VALUE,
2845}
2846#[repr(C)]
2847#[derive(Debug, Copy, Clone)]
2848pub struct rb_ractor_queue {
2849    pub baskets: *mut rb_ractor_basket,
2850    pub start: ::std::os::raw::c_int,
2851    pub cnt: ::std::os::raw::c_int,
2852    pub size: ::std::os::raw::c_int,
2853    pub serial: ::std::os::raw::c_uint,
2854    pub reserved_cnt: ::std::os::raw::c_uint,
2855}
2856#[repr(C)]
2857#[derive(Debug, Copy, Clone)]
2858pub struct rb_ractor_waiting_list {
2859    pub cnt: ::std::os::raw::c_int,
2860    pub size: ::std::os::raw::c_int,
2861    pub ractors: *mut *mut rb_ractor_t,
2862}
2863#[repr(C)]
2864#[derive(Copy, Clone)]
2865pub struct rb_ractor_sync {
2866    pub lock: rb_nativethread_lock_t,
2867    pub cond: rb_nativethread_cond_t,
2868    pub incoming_queue: rb_ractor_queue,
2869    pub taking_ractors: rb_ractor_waiting_list,
2870    pub incoming_port_closed: bool,
2871    pub outgoing_port_closed: bool,
2872    pub wait: rb_ractor_sync_ractor_wait,
2873}
2874#[repr(C)]
2875#[derive(Debug, Copy, Clone)]
2876pub struct rb_ractor_sync_ractor_wait {
2877    pub status: rb_ractor_sync_ractor_wait_ractor_wait_status,
2878    pub wakeup_status: rb_ractor_sync_ractor_wait_ractor_wakeup_status,
2879    pub yielded_basket: rb_ractor_basket,
2880    pub taken_basket: rb_ractor_basket,
2881}
2882pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_none:
2883    rb_ractor_sync_ractor_wait_ractor_wait_status = 0;
2884pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_receiving:
2885    rb_ractor_sync_ractor_wait_ractor_wait_status = 1;
2886pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_taking:
2887    rb_ractor_sync_ractor_wait_ractor_wait_status = 2;
2888pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_yielding:
2889    rb_ractor_sync_ractor_wait_ractor_wait_status = 4;
2890pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_moving:
2891    rb_ractor_sync_ractor_wait_ractor_wait_status = 8;
2892pub type rb_ractor_sync_ractor_wait_ractor_wait_status = ::std::os::raw::c_uint;
2893pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_none:
2894    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 0;
2895pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_send:
2896    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 1;
2897pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_yield:
2898    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 2;
2899pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_take:
2900    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 3;
2901pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_close:
2902    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 4;
2903pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_interrupt:
2904    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 5;
2905pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_retry:
2906    rb_ractor_sync_ractor_wait_ractor_wakeup_status = 6;
2907pub type rb_ractor_sync_ractor_wait_ractor_wakeup_status = ::std::os::raw::c_uint;
2908impl ::std::fmt::Debug for rb_ractor_sync {
2909    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2910        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)
2911    }
2912}
2913#[repr(C)]
2914#[derive(Copy, Clone)]
2915pub struct rb_ractor_struct {
2916    pub pub_: rb_ractor_pub,
2917    pub sync: rb_ractor_sync,
2918    pub receiving_mutex: VALUE,
2919    pub yield_atexit: bool,
2920    pub barrier_wait_cond: rb_nativethread_cond_t,
2921    pub threads: rb_ractor_struct__bindgen_ty_1,
2922    pub thgroup_default: VALUE,
2923    pub name: VALUE,
2924    pub loc: VALUE,
2925    pub status_: rb_ractor_struct_ractor_status,
2926    pub vmlr_node: list_node,
2927    pub local_storage: *mut st_table,
2928    pub idkey_local_storage: *mut rb_id_table,
2929    pub r_stdin: VALUE,
2930    pub r_stdout: VALUE,
2931    pub r_stderr: VALUE,
2932    pub verbose: VALUE,
2933    pub debug: VALUE,
2934    pub newobj_cache: rb_ractor_newobj_cache_t,
2935    pub mfd: *mut rb_ractor_struct_gc_mark_func_data_struct,
2936}
2937#[repr(C)]
2938#[derive(Copy, Clone)]
2939pub struct rb_ractor_struct__bindgen_ty_1 {
2940    pub set: list_head,
2941    pub cnt: ::std::os::raw::c_uint,
2942    pub blocking_cnt: ::std::os::raw::c_uint,
2943    pub sleeper: ::std::os::raw::c_uint,
2944    pub gvl: rb_global_vm_lock_t,
2945    pub running_ec: *mut rb_execution_context_t,
2946    pub main: *mut rb_thread_t,
2947}
2948impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
2949    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2950        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)
2951    }
2952}
2953pub const rb_ractor_struct_ractor_status_ractor_created: rb_ractor_struct_ractor_status = 0;
2954pub const rb_ractor_struct_ractor_status_ractor_running: rb_ractor_struct_ractor_status = 1;
2955pub const rb_ractor_struct_ractor_status_ractor_blocking: rb_ractor_struct_ractor_status = 2;
2956pub const rb_ractor_struct_ractor_status_ractor_terminated: rb_ractor_struct_ractor_status = 3;
2957pub type rb_ractor_struct_ractor_status = ::std::os::raw::c_uint;
2958#[repr(C)]
2959#[derive(Debug, Copy, Clone)]
2960pub struct rb_ractor_struct_gc_mark_func_data_struct {
2961    pub data: *mut ::std::os::raw::c_void,
2962    pub mark_func:
2963        ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
2964}
2965impl ::std::fmt::Debug for rb_ractor_struct {
2966    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2967        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)
2968    }
2969}
2970#[repr(C)]
2971#[derive(Debug, Copy, Clone)]
2972pub struct iseq_compile_data {
2973    pub err_info: VALUE,
2974    pub catch_table_ary: VALUE,
2975    pub start_label: *mut iseq_label_data,
2976    pub end_label: *mut iseq_label_data,
2977    pub redo_label: *mut iseq_label_data,
2978    pub current_block: *const rb_iseq_t,
2979    pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2980    pub node: iseq_compile_data__bindgen_ty_1,
2981    pub insn: iseq_compile_data__bindgen_ty_2,
2982    pub in_rescue: bool,
2983    pub loopval_popped: ::std::os::raw::c_int,
2984    pub last_line: ::std::os::raw::c_int,
2985    pub label_no: ::std::os::raw::c_int,
2986    pub node_level: ::std::os::raw::c_int,
2987    pub isolated_depth: ::std::os::raw::c_int,
2988    pub ci_index: ::std::os::raw::c_uint,
2989    pub option: *const rb_compile_option_t,
2990    pub ivar_cache_table: *mut rb_id_table,
2991    pub builtin_function_table: *const rb_builtin_function,
2992    pub root_node: *const NODE,
2993}
2994#[repr(C)]
2995#[derive(Debug, Copy, Clone)]
2996pub struct iseq_compile_data__bindgen_ty_1 {
2997    pub storage_head: *mut iseq_compile_data_storage,
2998    pub storage_current: *mut iseq_compile_data_storage,
2999}
3000#[repr(C)]
3001#[derive(Debug, Copy, Clone)]
3002pub struct iseq_compile_data__bindgen_ty_2 {
3003    pub storage_head: *mut iseq_compile_data_storage,
3004    pub storage_current: *mut iseq_compile_data_storage,
3005}
3006#[repr(C)]
3007#[derive(Debug, Copy, Clone)]
3008pub struct rb_compile_option_struct {
3009    pub _bitfield_align_1: [u8; 0],
3010    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
3011    pub debug_level: ::std::os::raw::c_int,
3012}
3013impl rb_compile_option_struct {
3014    #[inline]
3015    pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
3016        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3017    }
3018    #[inline]
3019    pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
3020        unsafe {
3021            let val: u32 = ::std::mem::transmute(val);
3022            self._bitfield_1.set(0usize, 1u8, val as u64)
3023        }
3024    }
3025    #[inline]
3026    pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
3027        unsafe {
3028            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3029                ::std::ptr::addr_of!((*this)._bitfield_1),
3030                0usize,
3031                1u8,
3032            ) as u32)
3033        }
3034    }
3035    #[inline]
3036    pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3037        unsafe {
3038            let val: u32 = ::std::mem::transmute(val);
3039            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3040                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3041                0usize,
3042                1u8,
3043                val as u64,
3044            )
3045        }
3046    }
3047    #[inline]
3048    pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
3049        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3050    }
3051    #[inline]
3052    pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
3053        unsafe {
3054            let val: u32 = ::std::mem::transmute(val);
3055            self._bitfield_1.set(1usize, 1u8, val as u64)
3056        }
3057    }
3058    #[inline]
3059    pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3060        unsafe {
3061            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3062                ::std::ptr::addr_of!((*this)._bitfield_1),
3063                1usize,
3064                1u8,
3065            ) as u32)
3066        }
3067    }
3068    #[inline]
3069    pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3070        unsafe {
3071            let val: u32 = ::std::mem::transmute(val);
3072            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3073                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3074                1usize,
3075                1u8,
3076                val as u64,
3077            )
3078        }
3079    }
3080    #[inline]
3081    pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3082        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3083    }
3084    #[inline]
3085    pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3086        unsafe {
3087            let val: u32 = ::std::mem::transmute(val);
3088            self._bitfield_1.set(2usize, 1u8, val as u64)
3089        }
3090    }
3091    #[inline]
3092    pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3093        unsafe {
3094            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3095                ::std::ptr::addr_of!((*this)._bitfield_1),
3096                2usize,
3097                1u8,
3098            ) as u32)
3099        }
3100    }
3101    #[inline]
3102    pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3103        unsafe {
3104            let val: u32 = ::std::mem::transmute(val);
3105            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3106                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3107                2usize,
3108                1u8,
3109                val as u64,
3110            )
3111        }
3112    }
3113    #[inline]
3114    pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3115        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3116    }
3117    #[inline]
3118    pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3119        unsafe {
3120            let val: u32 = ::std::mem::transmute(val);
3121            self._bitfield_1.set(3usize, 1u8, val as u64)
3122        }
3123    }
3124    #[inline]
3125    pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3126        unsafe {
3127            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3128                ::std::ptr::addr_of!((*this)._bitfield_1),
3129                3usize,
3130                1u8,
3131            ) as u32)
3132        }
3133    }
3134    #[inline]
3135    pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3136        unsafe {
3137            let val: u32 = ::std::mem::transmute(val);
3138            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3139                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3140                3usize,
3141                1u8,
3142                val as u64,
3143            )
3144        }
3145    }
3146    #[inline]
3147    pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3148        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3149    }
3150    #[inline]
3151    pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3152        unsafe {
3153            let val: u32 = ::std::mem::transmute(val);
3154            self._bitfield_1.set(4usize, 1u8, val as u64)
3155        }
3156    }
3157    #[inline]
3158    pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3159        unsafe {
3160            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3161                ::std::ptr::addr_of!((*this)._bitfield_1),
3162                4usize,
3163                1u8,
3164            ) as u32)
3165        }
3166    }
3167    #[inline]
3168    pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3169        unsafe {
3170            let val: u32 = ::std::mem::transmute(val);
3171            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3172                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3173                4usize,
3174                1u8,
3175                val as u64,
3176            )
3177        }
3178    }
3179    #[inline]
3180    pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3181        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3182    }
3183    #[inline]
3184    pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3185        unsafe {
3186            let val: u32 = ::std::mem::transmute(val);
3187            self._bitfield_1.set(5usize, 1u8, val as u64)
3188        }
3189    }
3190    #[inline]
3191    pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3192        unsafe {
3193            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3194                ::std::ptr::addr_of!((*this)._bitfield_1),
3195                5usize,
3196                1u8,
3197            ) as u32)
3198        }
3199    }
3200    #[inline]
3201    pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3202        unsafe {
3203            let val: u32 = ::std::mem::transmute(val);
3204            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3205                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3206                5usize,
3207                1u8,
3208                val as u64,
3209            )
3210        }
3211    }
3212    #[inline]
3213    pub fn stack_caching(&self) -> ::std::os::raw::c_uint {
3214        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
3215    }
3216    #[inline]
3217    pub fn set_stack_caching(&mut self, val: ::std::os::raw::c_uint) {
3218        unsafe {
3219            let val: u32 = ::std::mem::transmute(val);
3220            self._bitfield_1.set(6usize, 1u8, val as u64)
3221        }
3222    }
3223    #[inline]
3224    pub unsafe fn stack_caching_raw(this: *const Self) -> ::std::os::raw::c_uint {
3225        unsafe {
3226            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3227                ::std::ptr::addr_of!((*this)._bitfield_1),
3228                6usize,
3229                1u8,
3230            ) as u32)
3231        }
3232    }
3233    #[inline]
3234    pub unsafe fn set_stack_caching_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3235        unsafe {
3236            let val: u32 = ::std::mem::transmute(val);
3237            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3238                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3239                6usize,
3240                1u8,
3241                val as u64,
3242            )
3243        }
3244    }
3245    #[inline]
3246    pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3247        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
3248    }
3249    #[inline]
3250    pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3251        unsafe {
3252            let val: u32 = ::std::mem::transmute(val);
3253            self._bitfield_1.set(7usize, 1u8, val as u64)
3254        }
3255    }
3256    #[inline]
3257    pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3258        unsafe {
3259            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3260                ::std::ptr::addr_of!((*this)._bitfield_1),
3261                7usize,
3262                1u8,
3263            ) as u32)
3264        }
3265    }
3266    #[inline]
3267    pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3268        unsafe {
3269            let val: u32 = ::std::mem::transmute(val);
3270            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3271                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3272                7usize,
3273                1u8,
3274                val as u64,
3275            )
3276        }
3277    }
3278    #[inline]
3279    pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3280        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
3281    }
3282    #[inline]
3283    pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3284        unsafe {
3285            let val: u32 = ::std::mem::transmute(val);
3286            self._bitfield_1.set(8usize, 1u8, val as u64)
3287        }
3288    }
3289    #[inline]
3290    pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3291        unsafe {
3292            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3293                ::std::ptr::addr_of!((*this)._bitfield_1),
3294                8usize,
3295                1u8,
3296            ) as u32)
3297        }
3298    }
3299    #[inline]
3300    pub unsafe fn set_debug_frozen_string_literal_raw(
3301        this: *mut Self,
3302        val: ::std::os::raw::c_uint,
3303    ) {
3304        unsafe {
3305            let val: u32 = ::std::mem::transmute(val);
3306            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3307                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3308                8usize,
3309                1u8,
3310                val as u64,
3311            )
3312        }
3313    }
3314    #[inline]
3315    pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3316        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
3317    }
3318    #[inline]
3319    pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3320        unsafe {
3321            let val: u32 = ::std::mem::transmute(val);
3322            self._bitfield_1.set(9usize, 1u8, val as u64)
3323        }
3324    }
3325    #[inline]
3326    pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3327        unsafe {
3328            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3329                ::std::ptr::addr_of!((*this)._bitfield_1),
3330                9usize,
3331                1u8,
3332            ) as u32)
3333        }
3334    }
3335    #[inline]
3336    pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3337        unsafe {
3338            let val: u32 = ::std::mem::transmute(val);
3339            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3340                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3341                9usize,
3342                1u8,
3343                val as u64,
3344            )
3345        }
3346    }
3347    #[inline]
3348    pub fn new_bitfield_1(
3349        inline_const_cache: ::std::os::raw::c_uint,
3350        peephole_optimization: ::std::os::raw::c_uint,
3351        tailcall_optimization: ::std::os::raw::c_uint,
3352        specialized_instruction: ::std::os::raw::c_uint,
3353        operands_unification: ::std::os::raw::c_uint,
3354        instructions_unification: ::std::os::raw::c_uint,
3355        stack_caching: ::std::os::raw::c_uint,
3356        frozen_string_literal: ::std::os::raw::c_uint,
3357        debug_frozen_string_literal: ::std::os::raw::c_uint,
3358        coverage_enabled: ::std::os::raw::c_uint,
3359    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3360        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3361        __bindgen_bitfield_unit.set(0usize, 1u8, {
3362            let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3363            inline_const_cache as u64
3364        });
3365        __bindgen_bitfield_unit.set(1usize, 1u8, {
3366            let peephole_optimization: u32 =
3367                unsafe { ::std::mem::transmute(peephole_optimization) };
3368            peephole_optimization as u64
3369        });
3370        __bindgen_bitfield_unit.set(2usize, 1u8, {
3371            let tailcall_optimization: u32 =
3372                unsafe { ::std::mem::transmute(tailcall_optimization) };
3373            tailcall_optimization as u64
3374        });
3375        __bindgen_bitfield_unit.set(3usize, 1u8, {
3376            let specialized_instruction: u32 =
3377                unsafe { ::std::mem::transmute(specialized_instruction) };
3378            specialized_instruction as u64
3379        });
3380        __bindgen_bitfield_unit.set(4usize, 1u8, {
3381            let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3382            operands_unification as u64
3383        });
3384        __bindgen_bitfield_unit.set(5usize, 1u8, {
3385            let instructions_unification: u32 =
3386                unsafe { ::std::mem::transmute(instructions_unification) };
3387            instructions_unification as u64
3388        });
3389        __bindgen_bitfield_unit.set(6usize, 1u8, {
3390            let stack_caching: u32 = unsafe { ::std::mem::transmute(stack_caching) };
3391            stack_caching as u64
3392        });
3393        __bindgen_bitfield_unit.set(7usize, 1u8, {
3394            let frozen_string_literal: u32 =
3395                unsafe { ::std::mem::transmute(frozen_string_literal) };
3396            frozen_string_literal as u64
3397        });
3398        __bindgen_bitfield_unit.set(8usize, 1u8, {
3399            let debug_frozen_string_literal: u32 =
3400                unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3401            debug_frozen_string_literal as u64
3402        });
3403        __bindgen_bitfield_unit.set(9usize, 1u8, {
3404            let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3405            coverage_enabled as u64
3406        });
3407        __bindgen_bitfield_unit
3408    }
3409}
3410#[repr(C)]
3411#[derive(Debug, Copy, Clone)]
3412pub struct iseq_insn_info_entry {
3413    pub line_no: ::std::os::raw::c_int,
3414    pub node_id: ::std::os::raw::c_int,
3415    pub events: rb_event_flag_t,
3416}
3417#[repr(C)]
3418#[derive(Debug, Copy, Clone)]
3419pub struct iseq_catch_table_entry {
3420    pub type_: iseq_catch_table_entry_catch_type,
3421    pub iseq: *mut rb_iseq_t,
3422    pub start: ::std::os::raw::c_uint,
3423    pub end: ::std::os::raw::c_uint,
3424    pub cont: ::std::os::raw::c_uint,
3425    pub sp: ::std::os::raw::c_uint,
3426}
3427pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
3428    3;
3429pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
3430    5;
3431pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
3432pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
3433pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
3434pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
3435pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
3436#[repr(C, packed)]
3437pub struct iseq_catch_table {
3438    pub size: ::std::os::raw::c_uint,
3439    pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3440}
3441#[repr(C)]
3442#[derive(Debug)]
3443pub struct iseq_compile_data_storage {
3444    pub next: *mut iseq_compile_data_storage,
3445    pub pos: ::std::os::raw::c_uint,
3446    pub size: ::std::os::raw::c_uint,
3447    pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3448}
3449#[repr(C)]
3450#[derive(Debug, Copy, Clone)]
3451pub struct RVALUE {
3452    pub _address: u8,
3453}
3454#[repr(C)]
3455#[derive(Debug, Copy, Clone)]
3456pub struct heap_page {
3457    pub _address: u8,
3458}
3459#[repr(C)]
3460#[derive(Debug, Copy, Clone)]
3461pub struct rb_iv_index_tbl_entry {
3462    pub _address: u8,
3463}
3464#[repr(C)]
3465#[derive(Debug, Copy, Clone)]
3466pub struct yjit_block_version {
3467    pub _address: u8,
3468}
3469#[repr(C)]
3470#[derive(Debug, Copy, Clone)]
3471pub struct succ_index_table {
3472    pub _address: u8,
3473}
3474#[repr(C)]
3475#[derive(Debug, Copy, Clone)]
3476pub struct rb_call_data {
3477    pub _address: u8,
3478}
3479#[repr(C)]
3480#[derive(Debug, Copy, Clone)]
3481pub struct rb_event_hook_struct {
3482    pub _address: u8,
3483}
3484#[repr(C)]
3485#[derive(Debug, Copy, Clone)]
3486pub struct rb_postponed_job_struct {
3487    pub _address: u8,
3488}
3489#[repr(C)]
3490#[derive(Debug, Copy, Clone)]
3491pub struct iseq_label_data {
3492    pub _address: u8,
3493}
3494#[repr(C)]
3495#[derive(Debug, Copy, Clone)]
3496pub struct iseq_compile_data_ensure_node_stack {
3497    pub _address: u8,
3498}