Skip to main content

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