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