Skip to main content

rbspy_ruby_structs/
ruby_4_0_7.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_root: bool,
730    pub is_user: bool,
731    pub is_optional: bool,
732}
733pub type rb_box_t = rb_box_struct;
734pub type rb_serial_t = ::std::os::raw::c_ulonglong;
735#[repr(C)]
736#[derive(Debug, Copy, Clone)]
737pub struct set_table_entry {
738    _unused: [u8; 0],
739}
740#[repr(C)]
741#[derive(Debug, Copy, Clone)]
742pub struct set_table {
743    pub entry_power: ::std::os::raw::c_uchar,
744    pub bin_power: ::std::os::raw::c_uchar,
745    pub size_ind: ::std::os::raw::c_uchar,
746    pub rebuilds_num: ::std::os::raw::c_uint,
747    pub type_: *const st_hash_type,
748    pub num_entries: st_index_t,
749    pub entries_start: st_index_t,
750    pub entries_bound: st_index_t,
751    pub entries: *mut set_table_entry,
752}
753pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
754pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
755pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
756pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
757pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
758pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
759pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
760pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
761pub type method_missing_reason = ::std::os::raw::c_uint;
762#[repr(C)]
763#[derive(Debug, Copy, Clone)]
764pub struct rb_callcache {
765    _unused: [u8; 0],
766}
767#[repr(C)]
768#[derive(Debug, Copy, Clone)]
769pub struct rb_id_table {
770    _unused: [u8; 0],
771}
772pub const imemo_type_imemo_env: imemo_type = 0;
773pub const imemo_type_imemo_cref: imemo_type = 1;
774pub const imemo_type_imemo_svar: imemo_type = 2;
775pub const imemo_type_imemo_throw_data: imemo_type = 3;
776pub const imemo_type_imemo_ifunc: imemo_type = 4;
777pub const imemo_type_imemo_memo: imemo_type = 5;
778pub const imemo_type_imemo_ment: imemo_type = 6;
779pub const imemo_type_imemo_iseq: imemo_type = 7;
780pub const imemo_type_imemo_tmpbuf: imemo_type = 8;
781pub const imemo_type_imemo_cvar_entry: imemo_type = 9;
782pub const imemo_type_imemo_callinfo: imemo_type = 10;
783pub const imemo_type_imemo_callcache: imemo_type = 11;
784pub const imemo_type_imemo_constcache: imemo_type = 12;
785pub const imemo_type_imemo_fields: imemo_type = 13;
786pub type imemo_type = ::std::os::raw::c_uint;
787#[repr(C)]
788#[derive(Debug, Copy, Clone)]
789pub struct vm_svar {
790    pub flags: VALUE,
791    pub cref_or_me: VALUE,
792    pub lastline: VALUE,
793    pub backref: VALUE,
794    pub others: VALUE,
795}
796pub type rb_atomic_t = ::std::os::raw::c_uint;
797pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
798pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
799pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
800pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
801pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
802pub type rb_method_visibility_t = ::std::os::raw::c_uint;
803#[repr(C)]
804#[repr(align(4))]
805#[derive(Debug, Copy, Clone)]
806pub struct rb_scope_visi_struct {
807    pub _bitfield_align_1: [u8; 0],
808    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
809    pub __bindgen_padding_0: [u8; 3usize],
810}
811impl rb_scope_visi_struct {
812    #[inline]
813    pub fn method_visi(&self) -> rb_method_visibility_t {
814        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) }
815    }
816    #[inline]
817    pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
818        unsafe {
819            let val: u32 = ::std::mem::transmute(val);
820            self._bitfield_1.set(0usize, 3u8, val as u64)
821        }
822    }
823    #[inline]
824    pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
825        unsafe {
826            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
827                ::std::ptr::addr_of!((*this)._bitfield_1),
828                0usize,
829                3u8,
830            ) as u32)
831        }
832    }
833    #[inline]
834    pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
835        unsafe {
836            let val: u32 = ::std::mem::transmute(val);
837            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
838                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
839                0usize,
840                3u8,
841                val as u64,
842            )
843        }
844    }
845    #[inline]
846    pub fn module_func(&self) -> ::std::os::raw::c_uint {
847        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
848    }
849    #[inline]
850    pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
851        unsafe {
852            let val: u32 = ::std::mem::transmute(val);
853            self._bitfield_1.set(3usize, 1u8, val as u64)
854        }
855    }
856    #[inline]
857    pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
858        unsafe {
859            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
860                ::std::ptr::addr_of!((*this)._bitfield_1),
861                3usize,
862                1u8,
863            ) as u32)
864        }
865    }
866    #[inline]
867    pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
868        unsafe {
869            let val: u32 = ::std::mem::transmute(val);
870            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
871                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
872                3usize,
873                1u8,
874                val as u64,
875            )
876        }
877    }
878    #[inline]
879    pub fn new_bitfield_1(
880        method_visi: rb_method_visibility_t,
881        module_func: ::std::os::raw::c_uint,
882    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
883        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
884        __bindgen_bitfield_unit.set(0usize, 3u8, {
885            let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
886            method_visi as u64
887        });
888        __bindgen_bitfield_unit.set(3usize, 1u8, {
889            let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
890            module_func as u64
891        });
892        __bindgen_bitfield_unit
893    }
894}
895pub type rb_scope_visibility_t = rb_scope_visi_struct;
896#[repr(C)]
897#[derive(Debug, Copy, Clone)]
898pub struct rb_cref_struct {
899    pub flags: VALUE,
900    pub refinements: VALUE,
901    pub klass_or_self: VALUE,
902    pub next: *mut rb_cref_struct,
903    pub scope_visi: rb_scope_visibility_t,
904}
905pub type rb_cref_t = rb_cref_struct;
906#[repr(C)]
907#[derive(Debug, Copy, Clone)]
908pub struct rb_method_entry_struct {
909    pub flags: VALUE,
910    pub defined_class: VALUE,
911    pub def: *mut rb_method_definition_struct,
912    pub called_id: ID,
913    pub owner: VALUE,
914}
915pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
916pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
917pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
918pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
919pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
920pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
921pub const rb_method_type_t_VM_METHOD_TYPE_ALIAS: rb_method_type_t = 6;
922pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 7;
923pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 8;
924pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 9;
925pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 10;
926pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 11;
927pub type rb_method_type_t = ::std::os::raw::c_uint;
928pub type rb_iseq_t = rb_iseq_struct;
929#[repr(C)]
930#[derive(Debug, Copy, Clone)]
931pub struct rb_method_iseq_struct {
932    pub iseqptr: *const rb_iseq_t,
933    pub cref: *mut rb_cref_t,
934}
935pub type rb_method_iseq_t = rb_method_iseq_struct;
936pub type rb_cfunc_t = ::std::option::Option<unsafe extern "C" fn() -> VALUE>;
937#[repr(C)]
938#[derive(Debug, Copy, Clone)]
939pub struct rb_method_cfunc_struct {
940    pub func: rb_cfunc_t,
941    pub invoker: ::std::option::Option<
942        unsafe extern "C" fn(
943            recv: VALUE,
944            argc: ::std::os::raw::c_int,
945            argv: *const VALUE,
946            func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
947        ) -> VALUE,
948    >,
949    pub argc: ::std::os::raw::c_int,
950}
951pub type rb_method_cfunc_t = rb_method_cfunc_struct;
952#[repr(C)]
953#[derive(Debug, Copy, Clone)]
954pub struct rb_method_attr_struct {
955    pub id: ID,
956    pub location: VALUE,
957}
958pub type rb_method_attr_t = rb_method_attr_struct;
959#[repr(C)]
960#[derive(Debug, Copy, Clone)]
961pub struct rb_method_alias_struct {
962    pub original_me: *mut rb_method_entry_struct,
963}
964pub type rb_method_alias_t = rb_method_alias_struct;
965#[repr(C)]
966#[derive(Debug, Copy, Clone)]
967pub struct rb_method_refined_struct {
968    pub orig_me: *mut rb_method_entry_struct,
969}
970pub type rb_method_refined_t = rb_method_refined_struct;
971#[repr(C)]
972#[derive(Debug, Copy, Clone)]
973pub struct rb_method_bmethod_struct {
974    pub proc_: VALUE,
975    pub defined_ractor_id: rb_serial_t,
976    pub local_hooks_cnt: ::std::os::raw::c_uint,
977}
978pub type rb_method_bmethod_t = rb_method_bmethod_struct;
979pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND: method_optimized_type = 0;
980pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL: method_optimized_type = 1;
981pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_BLOCK_CALL: method_optimized_type = 2;
982pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_STRUCT_AREF: method_optimized_type = 3;
983pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_STRUCT_ASET: method_optimized_type = 4;
984pub const method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX: method_optimized_type = 5;
985pub type method_optimized_type = ::std::os::raw::c_uint;
986#[repr(C)]
987#[derive(Debug, Copy, Clone)]
988pub struct rb_method_optimized {
989    pub type_: method_optimized_type,
990    pub index: ::std::os::raw::c_uint,
991}
992pub type rb_method_optimized_t = rb_method_optimized;
993#[repr(C)]
994#[derive(Copy, Clone)]
995pub struct rb_method_definition_struct {
996    pub _bitfield_align_1: [u8; 0],
997    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
998    pub reference_count: rb_atomic_t,
999    pub body: rb_method_definition_struct__bindgen_ty_1,
1000    pub original_id: ID,
1001    pub method_serial: usize,
1002    pub box_: *const rb_box_t,
1003}
1004#[repr(C)]
1005#[derive(Copy, Clone)]
1006pub union rb_method_definition_struct__bindgen_ty_1 {
1007    pub iseq: rb_method_iseq_t,
1008    pub cfunc: rb_method_cfunc_t,
1009    pub attr: rb_method_attr_t,
1010    pub alias: rb_method_alias_t,
1011    pub refined: rb_method_refined_t,
1012    pub bmethod: rb_method_bmethod_t,
1013    pub optimized: rb_method_optimized_t,
1014}
1015impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
1016    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1017        write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
1018    }
1019}
1020impl rb_method_definition_struct {
1021    #[inline]
1022    pub fn type_(&self) -> rb_method_type_t {
1023        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
1024    }
1025    #[inline]
1026    pub fn set_type(&mut self, val: rb_method_type_t) {
1027        unsafe {
1028            let val: u32 = ::std::mem::transmute(val);
1029            self._bitfield_1.set(0usize, 4u8, val as u64)
1030        }
1031    }
1032    #[inline]
1033    pub unsafe fn type__raw(this: *const Self) -> rb_method_type_t {
1034        unsafe {
1035            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1036                ::std::ptr::addr_of!((*this)._bitfield_1),
1037                0usize,
1038                4u8,
1039            ) as u32)
1040        }
1041    }
1042    #[inline]
1043    pub unsafe fn set_type_raw(this: *mut Self, val: rb_method_type_t) {
1044        unsafe {
1045            let val: u32 = ::std::mem::transmute(val);
1046            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1047                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1048                0usize,
1049                4u8,
1050                val as u64,
1051            )
1052        }
1053    }
1054    #[inline]
1055    pub fn iseq_overload(&self) -> ::std::os::raw::c_uint {
1056        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1057    }
1058    #[inline]
1059    pub fn set_iseq_overload(&mut self, val: ::std::os::raw::c_uint) {
1060        unsafe {
1061            let val: u32 = ::std::mem::transmute(val);
1062            self._bitfield_1.set(4usize, 1u8, val as u64)
1063        }
1064    }
1065    #[inline]
1066    pub unsafe fn iseq_overload_raw(this: *const Self) -> ::std::os::raw::c_uint {
1067        unsafe {
1068            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1069                ::std::ptr::addr_of!((*this)._bitfield_1),
1070                4usize,
1071                1u8,
1072            ) as u32)
1073        }
1074    }
1075    #[inline]
1076    pub unsafe fn set_iseq_overload_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1077        unsafe {
1078            let val: u32 = ::std::mem::transmute(val);
1079            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1080                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1081                4usize,
1082                1u8,
1083                val as u64,
1084            )
1085        }
1086    }
1087    #[inline]
1088    pub fn no_redef_warning(&self) -> ::std::os::raw::c_uint {
1089        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1090    }
1091    #[inline]
1092    pub fn set_no_redef_warning(&mut self, val: ::std::os::raw::c_uint) {
1093        unsafe {
1094            let val: u32 = ::std::mem::transmute(val);
1095            self._bitfield_1.set(5usize, 1u8, val as u64)
1096        }
1097    }
1098    #[inline]
1099    pub unsafe fn no_redef_warning_raw(this: *const Self) -> ::std::os::raw::c_uint {
1100        unsafe {
1101            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1102                ::std::ptr::addr_of!((*this)._bitfield_1),
1103                5usize,
1104                1u8,
1105            ) as u32)
1106        }
1107    }
1108    #[inline]
1109    pub unsafe fn set_no_redef_warning_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1110        unsafe {
1111            let val: u32 = ::std::mem::transmute(val);
1112            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1113                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1114                5usize,
1115                1u8,
1116                val as u64,
1117            )
1118        }
1119    }
1120    #[inline]
1121    pub fn aliased(&self) -> ::std::os::raw::c_uint {
1122        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1123    }
1124    #[inline]
1125    pub fn set_aliased(&mut self, val: ::std::os::raw::c_uint) {
1126        unsafe {
1127            let val: u32 = ::std::mem::transmute(val);
1128            self._bitfield_1.set(6usize, 1u8, val as u64)
1129        }
1130    }
1131    #[inline]
1132    pub unsafe fn aliased_raw(this: *const Self) -> ::std::os::raw::c_uint {
1133        unsafe {
1134            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1135                ::std::ptr::addr_of!((*this)._bitfield_1),
1136                6usize,
1137                1u8,
1138            ) as u32)
1139        }
1140    }
1141    #[inline]
1142    pub unsafe fn set_aliased_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1143        unsafe {
1144            let val: u32 = ::std::mem::transmute(val);
1145            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1146                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1147                6usize,
1148                1u8,
1149                val as u64,
1150            )
1151        }
1152    }
1153    #[inline]
1154    pub fn new_bitfield_1(
1155        type_: rb_method_type_t,
1156        iseq_overload: ::std::os::raw::c_uint,
1157        no_redef_warning: ::std::os::raw::c_uint,
1158        aliased: ::std::os::raw::c_uint,
1159    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1160        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1161        __bindgen_bitfield_unit.set(0usize, 4u8, {
1162            let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1163            type_ as u64
1164        });
1165        __bindgen_bitfield_unit.set(4usize, 1u8, {
1166            let iseq_overload: u32 = unsafe { ::std::mem::transmute(iseq_overload) };
1167            iseq_overload as u64
1168        });
1169        __bindgen_bitfield_unit.set(5usize, 1u8, {
1170            let no_redef_warning: u32 = unsafe { ::std::mem::transmute(no_redef_warning) };
1171            no_redef_warning as u64
1172        });
1173        __bindgen_bitfield_unit.set(6usize, 1u8, {
1174            let aliased: u32 = unsafe { ::std::mem::transmute(aliased) };
1175            aliased as u64
1176        });
1177        __bindgen_bitfield_unit
1178    }
1179}
1180#[repr(C)]
1181#[derive(Debug, Copy, Clone)]
1182pub struct rb_code_position_struct {
1183    pub lineno: ::std::os::raw::c_int,
1184    pub column: ::std::os::raw::c_int,
1185}
1186pub type rb_code_position_t = rb_code_position_struct;
1187#[repr(C)]
1188#[derive(Debug, Copy, Clone)]
1189pub struct rb_code_location_struct {
1190    pub beg_pos: rb_code_position_t,
1191    pub end_pos: rb_code_position_t,
1192}
1193pub type rb_code_location_t = rb_code_location_struct;
1194#[repr(C)]
1195#[derive(Debug, Copy, Clone)]
1196pub struct RNode {
1197    pub flags: VALUE,
1198    pub nd_loc: rb_code_location_t,
1199    pub node_id: ::std::os::raw::c_int,
1200}
1201pub type NODE = RNode;
1202pub type rb_nativethread_id_t = pthread_t;
1203pub type rb_nativethread_lock_t = pthread_mutex_t;
1204pub type rb_nativethread_cond_t = pthread_cond_t;
1205#[repr(C)]
1206#[derive(Debug, Copy, Clone)]
1207pub struct rb_thread_sched_waiting {
1208    pub flags: rb_thread_sched_waiting_thread_sched_waiting_flag,
1209    pub data: rb_thread_sched_waiting__bindgen_ty_1,
1210    pub node: ccan_list_node,
1211}
1212pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_none:
1213    rb_thread_sched_waiting_thread_sched_waiting_flag = 0;
1214pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_timeout:
1215    rb_thread_sched_waiting_thread_sched_waiting_flag = 1;
1216pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_io_read:
1217    rb_thread_sched_waiting_thread_sched_waiting_flag = 2;
1218pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_io_write:
1219    rb_thread_sched_waiting_thread_sched_waiting_flag = 8;
1220pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_io_force:
1221    rb_thread_sched_waiting_thread_sched_waiting_flag = 64;
1222pub type rb_thread_sched_waiting_thread_sched_waiting_flag = ::std::os::raw::c_uint;
1223#[repr(C)]
1224#[derive(Debug, Copy, Clone)]
1225pub struct rb_thread_sched_waiting__bindgen_ty_1 {
1226    pub timeout: u64,
1227    pub event_serial: u32,
1228    pub fd: ::std::os::raw::c_int,
1229    pub result: ::std::os::raw::c_int,
1230}
1231#[repr(C)]
1232#[derive(Debug, Copy, Clone)]
1233pub struct rb_thread_sched_item {
1234    pub node: rb_thread_sched_item__bindgen_ty_1,
1235    pub waiting_reason: rb_thread_sched_waiting,
1236    pub event_serial: u32,
1237    pub finished: bool,
1238    pub malloc_stack: bool,
1239    pub context_stack: *mut ::std::os::raw::c_void,
1240    pub context: *mut coroutine_context,
1241}
1242#[repr(C)]
1243#[derive(Debug, Copy, Clone)]
1244pub struct rb_thread_sched_item__bindgen_ty_1 {
1245    pub ubf: ccan_list_node,
1246    pub readyq: ccan_list_node,
1247    pub is_ready: bool,
1248    pub timeslice_threads: ccan_list_node,
1249    pub running_threads: ccan_list_node,
1250    pub zombie_threads: ccan_list_node,
1251}
1252#[repr(C)]
1253#[derive(Copy, Clone)]
1254pub struct rb_native_thread {
1255    pub serial: rb_atomic_t,
1256    pub vm: *mut rb_vm_struct,
1257    pub thread_id: rb_nativethread_id_t,
1258    pub tid: ::std::os::raw::c_int,
1259    pub running_thread: *mut rb_thread_struct,
1260    pub cond: rb_native_thread__bindgen_ty_1,
1261    pub altstack: *mut ::std::os::raw::c_void,
1262    pub nt_context: *mut coroutine_context,
1263    pub dedicated: ::std::os::raw::c_int,
1264    pub machine_stack_maxsize: usize,
1265}
1266#[repr(C)]
1267#[derive(Copy, Clone)]
1268pub union rb_native_thread__bindgen_ty_1 {
1269    pub intr: rb_nativethread_cond_t,
1270    pub readyq: rb_nativethread_cond_t,
1271}
1272impl ::std::fmt::Debug for rb_native_thread__bindgen_ty_1 {
1273    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1274        write!(f, "rb_native_thread__bindgen_ty_1 {{ union }}")
1275    }
1276}
1277impl ::std::fmt::Debug for rb_native_thread {
1278    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1279        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)
1280    }
1281}
1282#[repr(C)]
1283#[derive(Copy, Clone)]
1284pub struct rb_thread_sched {
1285    pub lock_: rb_nativethread_lock_t,
1286    pub running: *mut rb_thread_struct,
1287    pub runnable_hot_th: *mut rb_thread_struct,
1288    pub runnable_hot_th_waiting: ::std::os::raw::c_int,
1289    pub is_running: bool,
1290    pub is_running_timeslice: bool,
1291    pub enable_mn_threads: bool,
1292    pub readyq: ccan_list_head,
1293    pub readyq_cnt: ::std::os::raw::c_int,
1294    pub grq_node: ccan_list_node,
1295}
1296impl ::std::fmt::Debug for rb_thread_sched {
1297    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1298        write ! (f , "rb_thread_sched {{ lock_: {:?}, running: {:?}, runnable_hot_th: {:?}, runnable_hot_th_waiting: {:?}, is_running: {:?}, is_running_timeslice: {:?}, enable_mn_threads: {:?}, readyq: {:?}, readyq_cnt: {:?}, grq_node: {:?} }}" , self . lock_ , self . running , self . runnable_hot_th , self . runnable_hot_th_waiting , self . is_running , self . is_running_timeslice , self . enable_mn_threads , self . readyq , self . readyq_cnt , self . grq_node)
1299    }
1300}
1301pub type rb_snum_t = ::std::os::raw::c_long;
1302pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1303pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1304pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1305pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1306pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1307pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1308pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1309pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1310pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1311pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1312pub type ruby_tag_type = ::std::os::raw::c_uint;
1313pub type rb_compile_option_t = rb_compile_option_struct;
1314#[repr(C)]
1315#[derive(Debug, Copy, Clone)]
1316pub struct iseq_inline_constant_cache_entry {
1317    pub flags: VALUE,
1318    pub value: VALUE,
1319    pub ic_cref: *const rb_cref_t,
1320}
1321#[repr(C)]
1322#[derive(Debug, Copy, Clone)]
1323pub struct iseq_inline_constant_cache {
1324    pub entry: *mut iseq_inline_constant_cache_entry,
1325    pub segments: *const ID,
1326}
1327#[repr(C)]
1328#[derive(Debug, Copy, Clone)]
1329pub struct iseq_inline_iv_cache_entry {
1330    pub value: u64,
1331    pub iv_set_name: ID,
1332}
1333#[repr(C)]
1334#[derive(Copy, Clone)]
1335pub union iseq_inline_storage_entry {
1336    pub once: iseq_inline_storage_entry__bindgen_ty_1,
1337    pub ic_cache: iseq_inline_constant_cache,
1338    pub iv_cache: iseq_inline_iv_cache_entry,
1339}
1340#[repr(C)]
1341#[derive(Debug, Copy, Clone)]
1342pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1343    pub running_thread: *mut rb_thread_struct,
1344    pub value: VALUE,
1345}
1346impl ::std::fmt::Debug for iseq_inline_storage_entry {
1347    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1348        write!(f, "iseq_inline_storage_entry {{ union }}")
1349    }
1350}
1351#[repr(C)]
1352#[derive(Debug, Copy, Clone)]
1353pub struct rb_calling_info {
1354    pub cd: *mut rb_call_data,
1355    pub cc: *const rb_callcache,
1356    pub block_handler: VALUE,
1357    pub recv: VALUE,
1358    pub argc: ::std::os::raw::c_int,
1359    pub kw_splat: bool,
1360    pub heap_argv: VALUE,
1361}
1362#[repr(C)]
1363#[derive(Debug, Copy, Clone)]
1364pub struct rb_iseq_location_struct {
1365    pub pathobj: VALUE,
1366    pub base_label: VALUE,
1367    pub label: VALUE,
1368    pub first_lineno: ::std::os::raw::c_int,
1369    pub node_id: ::std::os::raw::c_int,
1370    pub code_location: rb_code_location_t,
1371}
1372pub type rb_iseq_location_t = rb_iseq_location_struct;
1373pub type iseq_bits_t = usize;
1374pub const rb_iseq_type_ISEQ_TYPE_TOP: rb_iseq_type = 0;
1375pub const rb_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_type = 1;
1376pub const rb_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_type = 2;
1377pub const rb_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_type = 3;
1378pub const rb_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_type = 4;
1379pub const rb_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_type = 5;
1380pub const rb_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_type = 6;
1381pub const rb_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_type = 7;
1382pub const rb_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_type = 8;
1383pub type rb_iseq_type = ::std::os::raw::c_uint;
1384pub type rb_jit_func_t = ::std::option::Option<
1385    unsafe extern "C" fn(
1386        arg1: *mut rb_execution_context_struct,
1387        arg2: *mut rb_control_frame_struct,
1388    ) -> VALUE,
1389>;
1390#[repr(C)]
1391#[derive(Copy, Clone)]
1392pub struct rb_iseq_constant_body {
1393    pub type_: rb_iseq_type,
1394    pub iseq_size: ::std::os::raw::c_uint,
1395    pub iseq_encoded: *mut VALUE,
1396    pub param: rb_iseq_constant_body_rb_iseq_parameters,
1397    pub location: rb_iseq_location_t,
1398    pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1399    pub local_table: *const ID,
1400    pub lvar_states: *mut rb_iseq_constant_body_lvar_state,
1401    pub catch_table: *mut iseq_catch_table,
1402    pub parent_iseq: *const rb_iseq_struct,
1403    pub local_iseq: *mut rb_iseq_struct,
1404    pub is_entries: *mut iseq_inline_storage_entry,
1405    pub call_data: *mut rb_call_data,
1406    pub variable: rb_iseq_constant_body__bindgen_ty_1,
1407    pub local_table_size: ::std::os::raw::c_uint,
1408    pub ic_size: ::std::os::raw::c_uint,
1409    pub ise_size: ::std::os::raw::c_uint,
1410    pub ivc_size: ::std::os::raw::c_uint,
1411    pub icvarc_size: ::std::os::raw::c_uint,
1412    pub ci_size: ::std::os::raw::c_uint,
1413    pub stack_max: ::std::os::raw::c_uint,
1414    pub builtin_attrs: ::std::os::raw::c_uint,
1415    pub prism: bool,
1416    pub jit_ep_escape_recorded: rb_atomic_t,
1417    pub mark_bits: rb_iseq_constant_body__bindgen_ty_2,
1418    pub outer_variables: *mut rb_id_table,
1419    pub mandatory_only_iseq: *const rb_iseq_t,
1420    pub jit_entry: rb_jit_func_t,
1421    pub jit_entry_calls: ::std::os::raw::c_ulong,
1422    pub jit_exception: rb_jit_func_t,
1423    pub jit_exception_calls: ::std::os::raw::c_ulong,
1424    pub yjit_payload: *mut ::std::os::raw::c_void,
1425    pub yjit_calls_at_interv: u64,
1426}
1427#[repr(C)]
1428#[derive(Debug, Copy, Clone)]
1429pub struct rb_iseq_constant_body_rb_iseq_parameters {
1430    pub flags: rb_iseq_constant_body_rb_iseq_parameters__bindgen_ty_1,
1431    pub size: ::std::os::raw::c_uint,
1432    pub lead_num: ::std::os::raw::c_int,
1433    pub opt_num: ::std::os::raw::c_int,
1434    pub rest_start: ::std::os::raw::c_int,
1435    pub post_start: ::std::os::raw::c_int,
1436    pub post_num: ::std::os::raw::c_int,
1437    pub block_start: ::std::os::raw::c_int,
1438    pub opt_table: *const VALUE,
1439    pub keyword: *const rb_iseq_constant_body_rb_iseq_parameters_rb_iseq_param_keyword,
1440}
1441#[repr(C)]
1442#[repr(align(4))]
1443#[derive(Debug, Copy, Clone)]
1444pub struct rb_iseq_constant_body_rb_iseq_parameters__bindgen_ty_1 {
1445    pub _bitfield_align_1: [u8; 0],
1446    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
1447    pub __bindgen_padding_0: u16,
1448}
1449impl rb_iseq_constant_body_rb_iseq_parameters__bindgen_ty_1 {
1450    #[inline]
1451    pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1452        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1453    }
1454    #[inline]
1455    pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1456        unsafe {
1457            let val: u32 = ::std::mem::transmute(val);
1458            self._bitfield_1.set(0usize, 1u8, val as u64)
1459        }
1460    }
1461    #[inline]
1462    pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1463        unsafe {
1464            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1465                ::std::ptr::addr_of!((*this)._bitfield_1),
1466                0usize,
1467                1u8,
1468            ) as u32)
1469        }
1470    }
1471    #[inline]
1472    pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1473        unsafe {
1474            let val: u32 = ::std::mem::transmute(val);
1475            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1476                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1477                0usize,
1478                1u8,
1479                val as u64,
1480            )
1481        }
1482    }
1483    #[inline]
1484    pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1485        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1486    }
1487    #[inline]
1488    pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1489        unsafe {
1490            let val: u32 = ::std::mem::transmute(val);
1491            self._bitfield_1.set(1usize, 1u8, val as u64)
1492        }
1493    }
1494    #[inline]
1495    pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1496        unsafe {
1497            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1498                ::std::ptr::addr_of!((*this)._bitfield_1),
1499                1usize,
1500                1u8,
1501            ) as u32)
1502        }
1503    }
1504    #[inline]
1505    pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1506        unsafe {
1507            let val: u32 = ::std::mem::transmute(val);
1508            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1509                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1510                1usize,
1511                1u8,
1512                val as u64,
1513            )
1514        }
1515    }
1516    #[inline]
1517    pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1518        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1519    }
1520    #[inline]
1521    pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1522        unsafe {
1523            let val: u32 = ::std::mem::transmute(val);
1524            self._bitfield_1.set(2usize, 1u8, val as u64)
1525        }
1526    }
1527    #[inline]
1528    pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1529        unsafe {
1530            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1531                ::std::ptr::addr_of!((*this)._bitfield_1),
1532                2usize,
1533                1u8,
1534            ) as u32)
1535        }
1536    }
1537    #[inline]
1538    pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1539        unsafe {
1540            let val: u32 = ::std::mem::transmute(val);
1541            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1542                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1543                2usize,
1544                1u8,
1545                val as u64,
1546            )
1547        }
1548    }
1549    #[inline]
1550    pub fn has_post(&self) -> ::std::os::raw::c_uint {
1551        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1552    }
1553    #[inline]
1554    pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1555        unsafe {
1556            let val: u32 = ::std::mem::transmute(val);
1557            self._bitfield_1.set(3usize, 1u8, val as u64)
1558        }
1559    }
1560    #[inline]
1561    pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1562        unsafe {
1563            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1564                ::std::ptr::addr_of!((*this)._bitfield_1),
1565                3usize,
1566                1u8,
1567            ) as u32)
1568        }
1569    }
1570    #[inline]
1571    pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1572        unsafe {
1573            let val: u32 = ::std::mem::transmute(val);
1574            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1575                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1576                3usize,
1577                1u8,
1578                val as u64,
1579            )
1580        }
1581    }
1582    #[inline]
1583    pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1584        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1585    }
1586    #[inline]
1587    pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1588        unsafe {
1589            let val: u32 = ::std::mem::transmute(val);
1590            self._bitfield_1.set(4usize, 1u8, val as u64)
1591        }
1592    }
1593    #[inline]
1594    pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1595        unsafe {
1596            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1597                ::std::ptr::addr_of!((*this)._bitfield_1),
1598                4usize,
1599                1u8,
1600            ) as u32)
1601        }
1602    }
1603    #[inline]
1604    pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1605        unsafe {
1606            let val: u32 = ::std::mem::transmute(val);
1607            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1608                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1609                4usize,
1610                1u8,
1611                val as u64,
1612            )
1613        }
1614    }
1615    #[inline]
1616    pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1617        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1618    }
1619    #[inline]
1620    pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1621        unsafe {
1622            let val: u32 = ::std::mem::transmute(val);
1623            self._bitfield_1.set(5usize, 1u8, val as u64)
1624        }
1625    }
1626    #[inline]
1627    pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1628        unsafe {
1629            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1630                ::std::ptr::addr_of!((*this)._bitfield_1),
1631                5usize,
1632                1u8,
1633            ) as u32)
1634        }
1635    }
1636    #[inline]
1637    pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1638        unsafe {
1639            let val: u32 = ::std::mem::transmute(val);
1640            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1641                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1642                5usize,
1643                1u8,
1644                val as u64,
1645            )
1646        }
1647    }
1648    #[inline]
1649    pub fn has_block(&self) -> ::std::os::raw::c_uint {
1650        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1651    }
1652    #[inline]
1653    pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1654        unsafe {
1655            let val: u32 = ::std::mem::transmute(val);
1656            self._bitfield_1.set(6usize, 1u8, val as u64)
1657        }
1658    }
1659    #[inline]
1660    pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1661        unsafe {
1662            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1663                ::std::ptr::addr_of!((*this)._bitfield_1),
1664                6usize,
1665                1u8,
1666            ) as u32)
1667        }
1668    }
1669    #[inline]
1670    pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1671        unsafe {
1672            let val: u32 = ::std::mem::transmute(val);
1673            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1674                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1675                6usize,
1676                1u8,
1677                val as u64,
1678            )
1679        }
1680    }
1681    #[inline]
1682    pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1683        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1684    }
1685    #[inline]
1686    pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1687        unsafe {
1688            let val: u32 = ::std::mem::transmute(val);
1689            self._bitfield_1.set(7usize, 1u8, val as u64)
1690        }
1691    }
1692    #[inline]
1693    pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1694        unsafe {
1695            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1696                ::std::ptr::addr_of!((*this)._bitfield_1),
1697                7usize,
1698                1u8,
1699            ) as u32)
1700        }
1701    }
1702    #[inline]
1703    pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1704        unsafe {
1705            let val: u32 = ::std::mem::transmute(val);
1706            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1707                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1708                7usize,
1709                1u8,
1710                val as u64,
1711            )
1712        }
1713    }
1714    #[inline]
1715    pub fn accepts_no_kwarg(&self) -> ::std::os::raw::c_uint {
1716        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
1717    }
1718    #[inline]
1719    pub fn set_accepts_no_kwarg(&mut self, val: ::std::os::raw::c_uint) {
1720        unsafe {
1721            let val: u32 = ::std::mem::transmute(val);
1722            self._bitfield_1.set(8usize, 1u8, val as u64)
1723        }
1724    }
1725    #[inline]
1726    pub unsafe fn accepts_no_kwarg_raw(this: *const Self) -> ::std::os::raw::c_uint {
1727        unsafe {
1728            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1729                ::std::ptr::addr_of!((*this)._bitfield_1),
1730                8usize,
1731                1u8,
1732            ) as u32)
1733        }
1734    }
1735    #[inline]
1736    pub unsafe fn set_accepts_no_kwarg_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1737        unsafe {
1738            let val: u32 = ::std::mem::transmute(val);
1739            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1740                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1741                8usize,
1742                1u8,
1743                val as u64,
1744            )
1745        }
1746    }
1747    #[inline]
1748    pub fn ruby2_keywords(&self) -> ::std::os::raw::c_uint {
1749        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
1750    }
1751    #[inline]
1752    pub fn set_ruby2_keywords(&mut self, val: ::std::os::raw::c_uint) {
1753        unsafe {
1754            let val: u32 = ::std::mem::transmute(val);
1755            self._bitfield_1.set(9usize, 1u8, val as u64)
1756        }
1757    }
1758    #[inline]
1759    pub unsafe fn ruby2_keywords_raw(this: *const Self) -> ::std::os::raw::c_uint {
1760        unsafe {
1761            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1762                ::std::ptr::addr_of!((*this)._bitfield_1),
1763                9usize,
1764                1u8,
1765            ) as u32)
1766        }
1767    }
1768    #[inline]
1769    pub unsafe fn set_ruby2_keywords_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1770        unsafe {
1771            let val: u32 = ::std::mem::transmute(val);
1772            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1773                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1774                9usize,
1775                1u8,
1776                val as u64,
1777            )
1778        }
1779    }
1780    #[inline]
1781    pub fn anon_rest(&self) -> ::std::os::raw::c_uint {
1782        unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
1783    }
1784    #[inline]
1785    pub fn set_anon_rest(&mut self, val: ::std::os::raw::c_uint) {
1786        unsafe {
1787            let val: u32 = ::std::mem::transmute(val);
1788            self._bitfield_1.set(10usize, 1u8, val as u64)
1789        }
1790    }
1791    #[inline]
1792    pub unsafe fn anon_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1793        unsafe {
1794            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1795                ::std::ptr::addr_of!((*this)._bitfield_1),
1796                10usize,
1797                1u8,
1798            ) as u32)
1799        }
1800    }
1801    #[inline]
1802    pub unsafe fn set_anon_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1803        unsafe {
1804            let val: u32 = ::std::mem::transmute(val);
1805            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1806                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1807                10usize,
1808                1u8,
1809                val as u64,
1810            )
1811        }
1812    }
1813    #[inline]
1814    pub fn anon_kwrest(&self) -> ::std::os::raw::c_uint {
1815        unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
1816    }
1817    #[inline]
1818    pub fn set_anon_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1819        unsafe {
1820            let val: u32 = ::std::mem::transmute(val);
1821            self._bitfield_1.set(11usize, 1u8, val as u64)
1822        }
1823    }
1824    #[inline]
1825    pub unsafe fn anon_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1826        unsafe {
1827            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1828                ::std::ptr::addr_of!((*this)._bitfield_1),
1829                11usize,
1830                1u8,
1831            ) as u32)
1832        }
1833    }
1834    #[inline]
1835    pub unsafe fn set_anon_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1836        unsafe {
1837            let val: u32 = ::std::mem::transmute(val);
1838            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1839                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1840                11usize,
1841                1u8,
1842                val as u64,
1843            )
1844        }
1845    }
1846    #[inline]
1847    pub fn use_block(&self) -> ::std::os::raw::c_uint {
1848        unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
1849    }
1850    #[inline]
1851    pub fn set_use_block(&mut self, val: ::std::os::raw::c_uint) {
1852        unsafe {
1853            let val: u32 = ::std::mem::transmute(val);
1854            self._bitfield_1.set(12usize, 1u8, val as u64)
1855        }
1856    }
1857    #[inline]
1858    pub unsafe fn use_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1859        unsafe {
1860            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1861                ::std::ptr::addr_of!((*this)._bitfield_1),
1862                12usize,
1863                1u8,
1864            ) as u32)
1865        }
1866    }
1867    #[inline]
1868    pub unsafe fn set_use_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1869        unsafe {
1870            let val: u32 = ::std::mem::transmute(val);
1871            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1872                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1873                12usize,
1874                1u8,
1875                val as u64,
1876            )
1877        }
1878    }
1879    #[inline]
1880    pub fn forwardable(&self) -> ::std::os::raw::c_uint {
1881        unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
1882    }
1883    #[inline]
1884    pub fn set_forwardable(&mut self, val: ::std::os::raw::c_uint) {
1885        unsafe {
1886            let val: u32 = ::std::mem::transmute(val);
1887            self._bitfield_1.set(13usize, 1u8, val as u64)
1888        }
1889    }
1890    #[inline]
1891    pub unsafe fn forwardable_raw(this: *const Self) -> ::std::os::raw::c_uint {
1892        unsafe {
1893            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1894                ::std::ptr::addr_of!((*this)._bitfield_1),
1895                13usize,
1896                1u8,
1897            ) as u32)
1898        }
1899    }
1900    #[inline]
1901    pub unsafe fn set_forwardable_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1902        unsafe {
1903            let val: u32 = ::std::mem::transmute(val);
1904            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1905                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1906                13usize,
1907                1u8,
1908                val as u64,
1909            )
1910        }
1911    }
1912    #[inline]
1913    pub fn new_bitfield_1(
1914        has_lead: ::std::os::raw::c_uint,
1915        has_opt: ::std::os::raw::c_uint,
1916        has_rest: ::std::os::raw::c_uint,
1917        has_post: ::std::os::raw::c_uint,
1918        has_kw: ::std::os::raw::c_uint,
1919        has_kwrest: ::std::os::raw::c_uint,
1920        has_block: ::std::os::raw::c_uint,
1921        ambiguous_param0: ::std::os::raw::c_uint,
1922        accepts_no_kwarg: ::std::os::raw::c_uint,
1923        ruby2_keywords: ::std::os::raw::c_uint,
1924        anon_rest: ::std::os::raw::c_uint,
1925        anon_kwrest: ::std::os::raw::c_uint,
1926        use_block: ::std::os::raw::c_uint,
1927        forwardable: ::std::os::raw::c_uint,
1928    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
1929        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
1930        __bindgen_bitfield_unit.set(0usize, 1u8, {
1931            let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1932            has_lead as u64
1933        });
1934        __bindgen_bitfield_unit.set(1usize, 1u8, {
1935            let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1936            has_opt as u64
1937        });
1938        __bindgen_bitfield_unit.set(2usize, 1u8, {
1939            let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1940            has_rest as u64
1941        });
1942        __bindgen_bitfield_unit.set(3usize, 1u8, {
1943            let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1944            has_post as u64
1945        });
1946        __bindgen_bitfield_unit.set(4usize, 1u8, {
1947            let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1948            has_kw as u64
1949        });
1950        __bindgen_bitfield_unit.set(5usize, 1u8, {
1951            let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1952            has_kwrest as u64
1953        });
1954        __bindgen_bitfield_unit.set(6usize, 1u8, {
1955            let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1956            has_block as u64
1957        });
1958        __bindgen_bitfield_unit.set(7usize, 1u8, {
1959            let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
1960            ambiguous_param0 as u64
1961        });
1962        __bindgen_bitfield_unit.set(8usize, 1u8, {
1963            let accepts_no_kwarg: u32 = unsafe { ::std::mem::transmute(accepts_no_kwarg) };
1964            accepts_no_kwarg as u64
1965        });
1966        __bindgen_bitfield_unit.set(9usize, 1u8, {
1967            let ruby2_keywords: u32 = unsafe { ::std::mem::transmute(ruby2_keywords) };
1968            ruby2_keywords as u64
1969        });
1970        __bindgen_bitfield_unit.set(10usize, 1u8, {
1971            let anon_rest: u32 = unsafe { ::std::mem::transmute(anon_rest) };
1972            anon_rest as u64
1973        });
1974        __bindgen_bitfield_unit.set(11usize, 1u8, {
1975            let anon_kwrest: u32 = unsafe { ::std::mem::transmute(anon_kwrest) };
1976            anon_kwrest as u64
1977        });
1978        __bindgen_bitfield_unit.set(12usize, 1u8, {
1979            let use_block: u32 = unsafe { ::std::mem::transmute(use_block) };
1980            use_block as u64
1981        });
1982        __bindgen_bitfield_unit.set(13usize, 1u8, {
1983            let forwardable: u32 = unsafe { ::std::mem::transmute(forwardable) };
1984            forwardable as u64
1985        });
1986        __bindgen_bitfield_unit
1987    }
1988}
1989#[repr(C)]
1990#[derive(Debug, Copy, Clone)]
1991pub struct rb_iseq_constant_body_rb_iseq_parameters_rb_iseq_param_keyword {
1992    pub num: ::std::os::raw::c_int,
1993    pub required_num: ::std::os::raw::c_int,
1994    pub bits_start: ::std::os::raw::c_int,
1995    pub rest_start: ::std::os::raw::c_int,
1996    pub table: *const ID,
1997    pub default_values: *mut VALUE,
1998}
1999#[repr(C)]
2000#[derive(Debug, Copy, Clone)]
2001pub struct rb_iseq_constant_body_iseq_insn_info {
2002    pub body: *const iseq_insn_info_entry,
2003    pub positions: *mut ::std::os::raw::c_uint,
2004    pub size: ::std::os::raw::c_uint,
2005    pub succ_index_table: *mut succ_index_table,
2006}
2007pub const rb_iseq_constant_body_lvar_state_lvar_uninitialized: rb_iseq_constant_body_lvar_state = 0;
2008pub const rb_iseq_constant_body_lvar_state_lvar_initialized: rb_iseq_constant_body_lvar_state = 1;
2009pub const rb_iseq_constant_body_lvar_state_lvar_reassigned: rb_iseq_constant_body_lvar_state = 2;
2010pub type rb_iseq_constant_body_lvar_state = ::std::os::raw::c_uint;
2011#[repr(C)]
2012#[derive(Debug, Copy, Clone)]
2013pub struct rb_iseq_constant_body__bindgen_ty_1 {
2014    pub flip_count: rb_snum_t,
2015    pub script_lines: VALUE,
2016    pub coverage: VALUE,
2017    pub pc2branchindex: VALUE,
2018    pub original_iseq: *mut VALUE,
2019}
2020#[repr(C)]
2021#[derive(Copy, Clone)]
2022pub union rb_iseq_constant_body__bindgen_ty_2 {
2023    pub list: *mut iseq_bits_t,
2024    pub single: iseq_bits_t,
2025}
2026impl ::std::fmt::Debug for rb_iseq_constant_body__bindgen_ty_2 {
2027    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2028        write!(f, "rb_iseq_constant_body__bindgen_ty_2 {{ union }}")
2029    }
2030}
2031impl ::std::fmt::Debug for rb_iseq_constant_body {
2032    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2033        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: {:?}, jit_ep_escape_recorded: {:?}, 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 . jit_ep_escape_recorded , 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)
2034    }
2035}
2036#[repr(C)]
2037#[derive(Copy, Clone)]
2038pub struct rb_iseq_struct {
2039    pub flags: VALUE,
2040    pub wrapper: VALUE,
2041    pub body: *mut rb_iseq_constant_body,
2042    pub aux: rb_iseq_struct__bindgen_ty_1,
2043}
2044#[repr(C)]
2045#[derive(Copy, Clone)]
2046pub union rb_iseq_struct__bindgen_ty_1 {
2047    pub compile_data: *mut iseq_compile_data,
2048    pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
2049    pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
2050}
2051#[repr(C)]
2052#[derive(Debug, Copy, Clone)]
2053pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
2054    pub obj: VALUE,
2055    pub index: ::std::os::raw::c_int,
2056}
2057#[repr(C)]
2058#[derive(Debug, Copy, Clone)]
2059pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
2060    pub local_hooks_cnt: ::std::os::raw::c_uint,
2061    pub global_trace_events: rb_event_flag_t,
2062}
2063impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
2064    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2065        write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
2066    }
2067}
2068impl ::std::fmt::Debug for rb_iseq_struct {
2069    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2070        write!(
2071            f,
2072            "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
2073            self.flags, self.wrapper, self.body, self.aux
2074        )
2075    }
2076}
2077pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
2078#[repr(C)]
2079#[derive(Debug, Copy, Clone)]
2080pub struct rb_at_exit_list {
2081    pub func: rb_vm_at_exit_func,
2082    pub next: *mut rb_at_exit_list,
2083}
2084pub const rb_hook_list_type_hook_list_type_ractor_local: rb_hook_list_type = 0;
2085pub const rb_hook_list_type_hook_list_type_targeted_iseq: rb_hook_list_type = 1;
2086pub const rb_hook_list_type_hook_list_type_targeted_def: rb_hook_list_type = 2;
2087pub const rb_hook_list_type_hook_list_type_global: rb_hook_list_type = 3;
2088pub type rb_hook_list_type = ::std::os::raw::c_uint;
2089#[repr(C)]
2090#[derive(Debug, Copy, Clone)]
2091pub struct rb_hook_list_struct {
2092    pub hooks: *mut rb_event_hook_struct,
2093    pub events: rb_event_flag_t,
2094    pub running: ::std::os::raw::c_uint,
2095    pub type_: rb_hook_list_type,
2096    pub need_clean: bool,
2097}
2098pub type rb_hook_list_t = rb_hook_list_struct;
2099#[repr(C)]
2100#[derive(Debug, Copy, Clone)]
2101pub struct rb_builtin_function {
2102    _unused: [u8; 0],
2103}
2104#[repr(C)]
2105#[derive(Debug, Copy, Clone)]
2106pub struct global_object_list {
2107    pub varptr: *mut VALUE,
2108    pub next: *mut global_object_list,
2109}
2110#[repr(C)]
2111#[derive(Copy, Clone)]
2112pub struct rb_vm_struct {
2113    pub self_: VALUE,
2114    pub ractor: rb_vm_struct__bindgen_ty_1,
2115    pub main_altstack: *mut ::std::os::raw::c_void,
2116    pub fork_gen: rb_serial_t,
2117    pub ubf_async_safe: ::std::os::raw::c_int,
2118    pub _bitfield_align_1: [u8; 0],
2119    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2120    pub mark_object_ary: VALUE,
2121    pub global_object_list: *mut global_object_list,
2122    pub special_exceptions: [VALUE; 5usize],
2123    pub master_box: *mut rb_box_t,
2124    pub root_box: *mut rb_box_t,
2125    pub main_box: *mut rb_box_t,
2126    pub static_ext_inits: *mut st_table,
2127    pub trap_list: rb_vm_struct__bindgen_ty_2,
2128    pub global_hooks: rb_hook_list_t,
2129    pub postponed_job_queue: *mut rb_postponed_job_queue,
2130    pub src_encoding_index: ::std::os::raw::c_int,
2131    pub workqueue: ccan_list_head,
2132    pub workqueue_lock: rb_nativethread_lock_t,
2133    pub orig_progname: VALUE,
2134    pub progname: VALUE,
2135    pub coverages: VALUE,
2136    pub me2counter: VALUE,
2137    pub coverage_mode: ::std::os::raw::c_int,
2138    pub gc: rb_vm_struct__bindgen_ty_3,
2139    pub at_exit: *mut rb_at_exit_list,
2140    pub builtin_function_table: *const rb_builtin_function,
2141    pub ci_table: *mut st_table,
2142    pub negative_cme_table: *mut rb_id_table,
2143    pub overloaded_cme_table: *mut st_table,
2144    pub unused_block_warning_table: *mut set_table,
2145    pub cc_refinement_table: *mut set_table,
2146    pub constant_cache: *mut rb_id_table,
2147    pub inserting_constant_cache_id: ID,
2148    pub global_cc_cache_table: [*const rb_callcache; 1023usize],
2149    pub default_params: rb_vm_struct__bindgen_ty_4,
2150}
2151#[repr(C)]
2152#[derive(Copy, Clone)]
2153pub struct rb_vm_struct__bindgen_ty_1 {
2154    pub set: ccan_list_head,
2155    pub cnt: ::std::os::raw::c_uint,
2156    pub blocking_cnt: ::std::os::raw::c_uint,
2157    pub main_ractor: *mut rb_ractor_struct,
2158    pub main_thread: *mut rb_thread_struct,
2159    pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
2160    pub sched: rb_vm_struct__bindgen_ty_1__bindgen_ty_2,
2161}
2162#[repr(C)]
2163#[derive(Copy, Clone)]
2164pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2165    pub lock: rb_nativethread_lock_t,
2166    pub lock_owner: *mut rb_ractor_struct,
2167    pub lock_rec: ::std::os::raw::c_uint,
2168    pub terminate_cond: rb_nativethread_cond_t,
2169    pub terminate_waiting: bool,
2170}
2171impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2172    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2173        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)
2174    }
2175}
2176#[repr(C)]
2177#[derive(Copy, Clone)]
2178pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2179    pub lock: rb_nativethread_lock_t,
2180    pub lock_owner: *mut rb_ractor_struct,
2181    pub locked: bool,
2182    pub cond: rb_nativethread_cond_t,
2183    pub snt_cnt: ::std::os::raw::c_uint,
2184    pub dnt_cnt: ::std::os::raw::c_uint,
2185    pub running_cnt: ::std::os::raw::c_uint,
2186    pub max_cpu: ::std::os::raw::c_uint,
2187    pub grq: ccan_list_head,
2188    pub grq_cnt: ::std::os::raw::c_uint,
2189    pub running_threads: ccan_list_head,
2190    pub timeslice_threads: ccan_list_head,
2191    pub zombie_threads: ccan_list_head,
2192    pub timeslice_wait_inf: bool,
2193    pub barrier_complete_cond: rb_nativethread_cond_t,
2194    pub barrier_release_cond: rb_nativethread_cond_t,
2195    pub barrier_waiting: bool,
2196    pub barrier_waiting_cnt: ::std::os::raw::c_uint,
2197    pub barrier_serial: ::std::os::raw::c_uint,
2198    pub barrier_ractor: *mut rb_ractor_struct,
2199    pub barrier_lock_rec: ::std::os::raw::c_uint,
2200}
2201impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2202    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2203        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)
2204    }
2205}
2206impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2207    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2208        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)
2209    }
2210}
2211#[repr(C)]
2212#[derive(Debug, Copy, Clone)]
2213pub struct rb_vm_struct__bindgen_ty_2 {
2214    pub cmd: [VALUE; 65usize],
2215}
2216#[repr(C)]
2217#[derive(Debug, Copy, Clone)]
2218pub struct rb_vm_struct__bindgen_ty_3 {
2219    pub objspace: *mut rb_objspace,
2220    pub mark_func_data: *mut rb_vm_struct__bindgen_ty_3_gc_mark_func_data_struct,
2221}
2222#[repr(C)]
2223#[derive(Debug, Copy, Clone)]
2224pub struct rb_vm_struct__bindgen_ty_3_gc_mark_func_data_struct {
2225    pub data: *mut ::std::os::raw::c_void,
2226    pub mark_func:
2227        ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
2228}
2229#[repr(C)]
2230#[derive(Debug, Copy, Clone)]
2231pub struct rb_vm_struct__bindgen_ty_4 {
2232    pub thread_vm_stack_size: usize,
2233    pub thread_machine_stack_size: usize,
2234    pub fiber_vm_stack_size: usize,
2235    pub fiber_machine_stack_size: usize,
2236}
2237impl ::std::fmt::Debug for rb_vm_struct {
2238    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2239        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: {:?}, master_box: {:?}, 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 . master_box , 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)
2240    }
2241}
2242impl rb_vm_struct {
2243    #[inline]
2244    pub fn running(&self) -> ::std::os::raw::c_uint {
2245        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2246    }
2247    #[inline]
2248    pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2249        unsafe {
2250            let val: u32 = ::std::mem::transmute(val);
2251            self._bitfield_1.set(0usize, 1u8, val as u64)
2252        }
2253    }
2254    #[inline]
2255    pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2256        unsafe {
2257            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2258                ::std::ptr::addr_of!((*this)._bitfield_1),
2259                0usize,
2260                1u8,
2261            ) as u32)
2262        }
2263    }
2264    #[inline]
2265    pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2266        unsafe {
2267            let val: u32 = ::std::mem::transmute(val);
2268            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2269                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2270                0usize,
2271                1u8,
2272                val as u64,
2273            )
2274        }
2275    }
2276    #[inline]
2277    pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2278        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2279    }
2280    #[inline]
2281    pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2282        unsafe {
2283            let val: u32 = ::std::mem::transmute(val);
2284            self._bitfield_1.set(1usize, 1u8, val as u64)
2285        }
2286    }
2287    #[inline]
2288    pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2289        unsafe {
2290            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2291                ::std::ptr::addr_of!((*this)._bitfield_1),
2292                1usize,
2293                1u8,
2294            ) as u32)
2295        }
2296    }
2297    #[inline]
2298    pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2299        unsafe {
2300            let val: u32 = ::std::mem::transmute(val);
2301            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2302                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2303                1usize,
2304                1u8,
2305                val as u64,
2306            )
2307        }
2308    }
2309    #[inline]
2310    pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2311        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2312    }
2313    #[inline]
2314    pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2315        unsafe {
2316            let val: u32 = ::std::mem::transmute(val);
2317            self._bitfield_1.set(2usize, 1u8, val as u64)
2318        }
2319    }
2320    #[inline]
2321    pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2322        unsafe {
2323            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2324                ::std::ptr::addr_of!((*this)._bitfield_1),
2325                2usize,
2326                1u8,
2327            ) as u32)
2328        }
2329    }
2330    #[inline]
2331    pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2332        unsafe {
2333            let val: u32 = ::std::mem::transmute(val);
2334            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2335                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2336                2usize,
2337                1u8,
2338                val as u64,
2339            )
2340        }
2341    }
2342    #[inline]
2343    pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2344        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2345    }
2346    #[inline]
2347    pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2348        unsafe {
2349            let val: u32 = ::std::mem::transmute(val);
2350            self._bitfield_1.set(3usize, 1u8, val as u64)
2351        }
2352    }
2353    #[inline]
2354    pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2355        unsafe {
2356            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2357                ::std::ptr::addr_of!((*this)._bitfield_1),
2358                3usize,
2359                1u8,
2360            ) as u32)
2361        }
2362    }
2363    #[inline]
2364    pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2365        unsafe {
2366            let val: u32 = ::std::mem::transmute(val);
2367            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2368                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2369                3usize,
2370                1u8,
2371                val as u64,
2372            )
2373        }
2374    }
2375    #[inline]
2376    pub fn new_bitfield_1(
2377        running: ::std::os::raw::c_uint,
2378        thread_abort_on_exception: ::std::os::raw::c_uint,
2379        thread_report_on_exception: ::std::os::raw::c_uint,
2380        thread_ignore_deadlock: ::std::os::raw::c_uint,
2381    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2382        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2383        __bindgen_bitfield_unit.set(0usize, 1u8, {
2384            let running: u32 = unsafe { ::std::mem::transmute(running) };
2385            running as u64
2386        });
2387        __bindgen_bitfield_unit.set(1usize, 1u8, {
2388            let thread_abort_on_exception: u32 =
2389                unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2390            thread_abort_on_exception as u64
2391        });
2392        __bindgen_bitfield_unit.set(2usize, 1u8, {
2393            let thread_report_on_exception: u32 =
2394                unsafe { ::std::mem::transmute(thread_report_on_exception) };
2395            thread_report_on_exception as u64
2396        });
2397        __bindgen_bitfield_unit.set(3usize, 1u8, {
2398            let thread_ignore_deadlock: u32 =
2399                unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2400            thread_ignore_deadlock as u64
2401        });
2402        __bindgen_bitfield_unit
2403    }
2404}
2405pub type rb_vm_t = rb_vm_struct;
2406#[repr(C)]
2407#[derive(Debug, Copy, Clone)]
2408pub struct rb_control_frame_struct {
2409    pub pc: *const VALUE,
2410    pub sp: *mut VALUE,
2411    pub iseq: *const rb_iseq_t,
2412    pub self_: VALUE,
2413    pub ep: *const VALUE,
2414    pub block_code: *const ::std::os::raw::c_void,
2415    pub jit_return: *mut ::std::os::raw::c_void,
2416}
2417pub type rb_control_frame_t = rb_control_frame_struct;
2418pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2419pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2420pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2421pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2422pub type rb_thread_status = ::std::os::raw::c_uint;
2423pub type rb_jmpbuf_t = sigjmp_buf;
2424pub type rb_vm_tag_jmpbuf_t = rb_jmpbuf_t;
2425#[repr(C)]
2426#[derive(Debug, Copy, Clone)]
2427pub struct rb_vm_tag {
2428    pub tag: VALUE,
2429    pub retval: VALUE,
2430    pub buf: rb_vm_tag_jmpbuf_t,
2431    pub prev: *mut rb_vm_tag,
2432    pub state: ruby_tag_type,
2433    pub lock_rec: ::std::os::raw::c_uint,
2434}
2435#[repr(C)]
2436#[derive(Debug, Copy, Clone)]
2437pub struct rb_unblock_callback {
2438    pub func: rb_unblock_function_t,
2439    pub arg: *mut ::std::os::raw::c_void,
2440}
2441#[repr(C)]
2442#[derive(Debug, Copy, Clone)]
2443pub struct rb_mutex_struct {
2444    _unused: [u8; 0],
2445}
2446#[repr(C)]
2447#[derive(Debug, Copy, Clone)]
2448pub struct rb_fiber_struct {
2449    _unused: [u8; 0],
2450}
2451pub type rb_fiber_t = rb_fiber_struct;
2452#[repr(C)]
2453#[derive(Debug, Copy, Clone)]
2454pub struct rb_waiting_list {
2455    pub next: *mut rb_waiting_list,
2456    pub thread: *mut rb_thread_struct,
2457    pub fiber: *mut rb_fiber_struct,
2458}
2459#[repr(C)]
2460#[derive(Debug, Copy, Clone)]
2461pub struct rb_execution_context_struct {
2462    pub vm_stack: *mut VALUE,
2463    pub vm_stack_size: usize,
2464    pub cfp: *mut rb_control_frame_t,
2465    pub tag: *mut rb_vm_tag,
2466    pub interrupt_flag: rb_atomic_t,
2467    pub interrupt_mask: rb_atomic_t,
2468    pub fiber_ptr: *mut rb_fiber_t,
2469    pub thread_ptr: *mut rb_thread_struct,
2470    pub serial: rb_serial_t,
2471    pub ractor_id: rb_serial_t,
2472    pub local_storage: *mut rb_id_table,
2473    pub local_storage_recursive_hash: VALUE,
2474    pub local_storage_recursive_hash_for_trace: VALUE,
2475    pub storage: VALUE,
2476    pub root_lep: *const VALUE,
2477    pub root_svar: VALUE,
2478    pub trace_arg: *mut rb_trace_arg_struct,
2479    pub errinfo: VALUE,
2480    pub passed_block_handler: VALUE,
2481    pub raised_flag: u8,
2482    pub _bitfield_align_1: [u8; 0],
2483    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2484    pub private_const_reference: VALUE,
2485    pub gen_fields_cache: rb_execution_context_struct__bindgen_ty_1,
2486    pub machine: rb_execution_context_struct__bindgen_ty_2,
2487}
2488#[repr(C)]
2489#[derive(Debug, Copy, Clone)]
2490pub struct rb_execution_context_struct__bindgen_ty_1 {
2491    pub obj: VALUE,
2492    pub fields_obj: VALUE,
2493}
2494#[repr(C)]
2495#[derive(Debug, Copy, Clone)]
2496pub struct rb_execution_context_struct__bindgen_ty_2 {
2497    pub stack_start: *mut VALUE,
2498    pub stack_end: *mut VALUE,
2499    pub stack_maxsize: usize,
2500    pub regs: jmp_buf,
2501}
2502impl rb_execution_context_struct {
2503    #[inline]
2504    pub fn method_missing_reason(&self) -> method_missing_reason {
2505        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
2506    }
2507    #[inline]
2508    pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2509        unsafe {
2510            let val: u32 = ::std::mem::transmute(val);
2511            self._bitfield_1.set(0usize, 8u8, val as u64)
2512        }
2513    }
2514    #[inline]
2515    pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2516        unsafe {
2517            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2518                ::std::ptr::addr_of!((*this)._bitfield_1),
2519                0usize,
2520                8u8,
2521            ) as u32)
2522        }
2523    }
2524    #[inline]
2525    pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2526        unsafe {
2527            let val: u32 = ::std::mem::transmute(val);
2528            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2529                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2530                0usize,
2531                8u8,
2532                val as u64,
2533            )
2534        }
2535    }
2536    #[inline]
2537    pub fn new_bitfield_1(
2538        method_missing_reason: method_missing_reason,
2539    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2540        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2541        __bindgen_bitfield_unit.set(0usize, 8u8, {
2542            let method_missing_reason: u32 =
2543                unsafe { ::std::mem::transmute(method_missing_reason) };
2544            method_missing_reason as u64
2545        });
2546        __bindgen_bitfield_unit
2547    }
2548}
2549pub type rb_execution_context_t = rb_execution_context_struct;
2550#[repr(C)]
2551#[derive(Debug, Copy, Clone)]
2552pub struct rb_ext_config {
2553    pub ractor_safe: bool,
2554}
2555pub type rb_ractor_t = rb_ractor_struct;
2556#[repr(C)]
2557#[derive(Copy, Clone)]
2558pub struct rb_thread_struct {
2559    pub lt_node: ccan_list_node,
2560    pub self_: VALUE,
2561    pub ractor: *mut rb_ractor_t,
2562    pub vm: *mut rb_vm_t,
2563    pub nt: *mut rb_native_thread,
2564    pub ec: *mut rb_execution_context_t,
2565    pub sched: rb_thread_sched_item,
2566    pub mn_schedulable: bool,
2567    pub serial: rb_atomic_t,
2568    pub last_status: VALUE,
2569    pub calling: *mut rb_calling_info,
2570    pub top_self: VALUE,
2571    pub top_wrapper: VALUE,
2572    pub _bitfield_align_1: [u8; 0],
2573    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2574    pub priority: i8,
2575    pub running_time_us: u32,
2576    pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2577    pub thgroup: VALUE,
2578    pub value: VALUE,
2579    pub pending_interrupt_queue: VALUE,
2580    pub pending_interrupt_mask_stack: VALUE,
2581    pub interrupt_lock: rb_nativethread_lock_t,
2582    pub unblock: rb_unblock_callback,
2583    pub locking_mutex: VALUE,
2584    pub keeping_mutexes: *mut rb_mutex_struct,
2585    pub interrupt_exec_tasks: ccan_list_head,
2586    pub join_list: *mut rb_waiting_list,
2587    pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2588    pub invoke_type: rb_thread_struct_thread_invoke_type,
2589    pub root_fiber: *mut rb_fiber_t,
2590    pub scheduler: VALUE,
2591    pub blocking: ::std::os::raw::c_uint,
2592    pub name: VALUE,
2593    pub specific_storage: *mut *mut ::std::os::raw::c_void,
2594    pub ext_config: rb_ext_config,
2595}
2596#[repr(C)]
2597#[derive(Copy, Clone)]
2598pub union rb_thread_struct__bindgen_ty_1 {
2599    pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2600    pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2601}
2602#[repr(C)]
2603#[derive(Debug, Copy, Clone)]
2604pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2605    pub proc_: VALUE,
2606    pub args: VALUE,
2607    pub kw_splat: ::std::os::raw::c_int,
2608}
2609#[repr(C)]
2610#[derive(Debug, Copy, Clone)]
2611pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2612    pub func:
2613        ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
2614    pub arg: *mut ::std::os::raw::c_void,
2615}
2616impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2617    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2618        write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2619    }
2620}
2621pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
2622    rb_thread_struct_thread_invoke_type = 0;
2623pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
2624    rb_thread_struct_thread_invoke_type = 1;
2625pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
2626    rb_thread_struct_thread_invoke_type = 2;
2627pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
2628    rb_thread_struct_thread_invoke_type = 3;
2629pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
2630impl ::std::fmt::Debug for rb_thread_struct {
2631    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2632        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)
2633    }
2634}
2635impl rb_thread_struct {
2636    #[inline]
2637    pub fn status(&self) -> rb_thread_status {
2638        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
2639    }
2640    #[inline]
2641    pub fn set_status(&mut self, val: rb_thread_status) {
2642        unsafe {
2643            let val: u32 = ::std::mem::transmute(val);
2644            self._bitfield_1.set(0usize, 2u8, val as u64)
2645        }
2646    }
2647    #[inline]
2648    pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2649        unsafe {
2650            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2651                ::std::ptr::addr_of!((*this)._bitfield_1),
2652                0usize,
2653                2u8,
2654            ) as u32)
2655        }
2656    }
2657    #[inline]
2658    pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2659        unsafe {
2660            let val: u32 = ::std::mem::transmute(val);
2661            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2662                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2663                0usize,
2664                2u8,
2665                val as u64,
2666            )
2667        }
2668    }
2669    #[inline]
2670    pub fn has_dedicated_nt(&self) -> ::std::os::raw::c_uint {
2671        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2672    }
2673    #[inline]
2674    pub fn set_has_dedicated_nt(&mut self, val: ::std::os::raw::c_uint) {
2675        unsafe {
2676            let val: u32 = ::std::mem::transmute(val);
2677            self._bitfield_1.set(2usize, 1u8, val as u64)
2678        }
2679    }
2680    #[inline]
2681    pub unsafe fn has_dedicated_nt_raw(this: *const Self) -> ::std::os::raw::c_uint {
2682        unsafe {
2683            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2684                ::std::ptr::addr_of!((*this)._bitfield_1),
2685                2usize,
2686                1u8,
2687            ) as u32)
2688        }
2689    }
2690    #[inline]
2691    pub unsafe fn set_has_dedicated_nt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2692        unsafe {
2693            let val: u32 = ::std::mem::transmute(val);
2694            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2695                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2696                2usize,
2697                1u8,
2698                val as u64,
2699            )
2700        }
2701    }
2702    #[inline]
2703    pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2704        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2705    }
2706    #[inline]
2707    pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2708        unsafe {
2709            let val: u32 = ::std::mem::transmute(val);
2710            self._bitfield_1.set(3usize, 1u8, val as u64)
2711        }
2712    }
2713    #[inline]
2714    pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2715        unsafe {
2716            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2717                ::std::ptr::addr_of!((*this)._bitfield_1),
2718                3usize,
2719                1u8,
2720            ) as u32)
2721        }
2722    }
2723    #[inline]
2724    pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2725        unsafe {
2726            let val: u32 = ::std::mem::transmute(val);
2727            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2728                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2729                3usize,
2730                1u8,
2731                val as u64,
2732            )
2733        }
2734    }
2735    #[inline]
2736    pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2737        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2738    }
2739    #[inline]
2740    pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2741        unsafe {
2742            let val: u32 = ::std::mem::transmute(val);
2743            self._bitfield_1.set(4usize, 1u8, val as u64)
2744        }
2745    }
2746    #[inline]
2747    pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2748        unsafe {
2749            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2750                ::std::ptr::addr_of!((*this)._bitfield_1),
2751                4usize,
2752                1u8,
2753            ) as u32)
2754        }
2755    }
2756    #[inline]
2757    pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2758        unsafe {
2759            let val: u32 = ::std::mem::transmute(val);
2760            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2761                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2762                4usize,
2763                1u8,
2764                val as u64,
2765            )
2766        }
2767    }
2768    #[inline]
2769    pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2770        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2771    }
2772    #[inline]
2773    pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2774        unsafe {
2775            let val: u32 = ::std::mem::transmute(val);
2776            self._bitfield_1.set(5usize, 1u8, val as u64)
2777        }
2778    }
2779    #[inline]
2780    pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2781        unsafe {
2782            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2783                ::std::ptr::addr_of!((*this)._bitfield_1),
2784                5usize,
2785                1u8,
2786            ) as u32)
2787        }
2788    }
2789    #[inline]
2790    pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2791        unsafe {
2792            let val: u32 = ::std::mem::transmute(val);
2793            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2794                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2795                5usize,
2796                1u8,
2797                val as u64,
2798            )
2799        }
2800    }
2801    #[inline]
2802    pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
2803        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
2804    }
2805    #[inline]
2806    pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
2807        unsafe {
2808            let val: u32 = ::std::mem::transmute(val);
2809            self._bitfield_1.set(6usize, 1u8, val as u64)
2810        }
2811    }
2812    #[inline]
2813    pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
2814        unsafe {
2815            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2816                ::std::ptr::addr_of!((*this)._bitfield_1),
2817                6usize,
2818                1u8,
2819            ) as u32)
2820        }
2821    }
2822    #[inline]
2823    pub unsafe fn set_pending_interrupt_queue_checked_raw(
2824        this: *mut Self,
2825        val: ::std::os::raw::c_uint,
2826    ) {
2827        unsafe {
2828            let val: u32 = ::std::mem::transmute(val);
2829            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2830                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2831                6usize,
2832                1u8,
2833                val as u64,
2834            )
2835        }
2836    }
2837    #[inline]
2838    pub fn new_bitfield_1(
2839        status: rb_thread_status,
2840        has_dedicated_nt: ::std::os::raw::c_uint,
2841        to_kill: ::std::os::raw::c_uint,
2842        abort_on_exception: ::std::os::raw::c_uint,
2843        report_on_exception: ::std::os::raw::c_uint,
2844        pending_interrupt_queue_checked: ::std::os::raw::c_uint,
2845    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2846        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2847        __bindgen_bitfield_unit.set(0usize, 2u8, {
2848            let status: u32 = unsafe { ::std::mem::transmute(status) };
2849            status as u64
2850        });
2851        __bindgen_bitfield_unit.set(2usize, 1u8, {
2852            let has_dedicated_nt: u32 = unsafe { ::std::mem::transmute(has_dedicated_nt) };
2853            has_dedicated_nt as u64
2854        });
2855        __bindgen_bitfield_unit.set(3usize, 1u8, {
2856            let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
2857            to_kill as u64
2858        });
2859        __bindgen_bitfield_unit.set(4usize, 1u8, {
2860            let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2861            abort_on_exception as u64
2862        });
2863        __bindgen_bitfield_unit.set(5usize, 1u8, {
2864            let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2865            report_on_exception as u64
2866        });
2867        __bindgen_bitfield_unit.set(6usize, 1u8, {
2868            let pending_interrupt_queue_checked: u32 =
2869                unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
2870            pending_interrupt_queue_checked as u64
2871        });
2872        __bindgen_bitfield_unit
2873    }
2874}
2875pub type rb_thread_t = rb_thread_struct;
2876#[repr(C)]
2877#[derive(Debug, Copy, Clone)]
2878pub struct rb_trace_arg_struct {
2879    pub event: rb_event_flag_t,
2880    pub ec: *mut rb_execution_context_t,
2881    pub cfp: *const rb_control_frame_t,
2882    pub self_: VALUE,
2883    pub id: ID,
2884    pub called_id: ID,
2885    pub klass: VALUE,
2886    pub data: VALUE,
2887    pub klass_solved: ::std::os::raw::c_int,
2888    pub lineno: ::std::os::raw::c_int,
2889    pub path: VALUE,
2890}
2891#[repr(C)]
2892#[derive(Debug, Copy, Clone)]
2893pub struct rb_ractor_pub {
2894    pub self_: VALUE,
2895    pub id: u32,
2896    pub hooks: rb_hook_list_t,
2897    pub targeted_hooks: *mut st_table,
2898    pub targeted_hooks_cnt: ::std::os::raw::c_uint,
2899}
2900#[repr(C)]
2901#[derive(Debug, Copy, Clone)]
2902pub struct rb_objspace {
2903    _unused: [u8; 0],
2904}
2905#[repr(C)]
2906#[derive(Copy, Clone)]
2907pub struct rb_ractor_sync {
2908    pub lock: rb_nativethread_lock_t,
2909    pub recv_queue: *mut ractor_queue,
2910    pub waiters: ccan_list_head,
2911    pub default_port_value: VALUE,
2912    pub ports: *mut st_table,
2913    pub next_port_id: usize,
2914    pub monitors: ccan_list_head,
2915    pub successor: *mut rb_ractor_t,
2916    pub legacy: VALUE,
2917    pub legacy_exc: bool,
2918}
2919impl ::std::fmt::Debug for rb_ractor_sync {
2920    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2921        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)
2922    }
2923}
2924pub const ractor_status_ractor_created: ractor_status = 0;
2925pub const ractor_status_ractor_running: ractor_status = 1;
2926pub const ractor_status_ractor_blocking: ractor_status = 2;
2927pub const ractor_status_ractor_terminated: ractor_status = 3;
2928pub type ractor_status = ::std::os::raw::c_uint;
2929#[repr(C)]
2930#[derive(Copy, Clone)]
2931pub struct rb_ractor_struct {
2932    pub pub_: rb_ractor_pub,
2933    pub sync: rb_ractor_sync,
2934    pub threads: rb_ractor_struct__bindgen_ty_1,
2935    pub thgroup_default: VALUE,
2936    pub name: VALUE,
2937    pub loc: VALUE,
2938    pub status_: ractor_status,
2939    pub vmlr_node: ccan_list_node,
2940    pub next_ec_serial: rb_serial_t,
2941    pub local_storage: *mut st_table,
2942    pub idkey_local_storage: *mut rb_id_table,
2943    pub local_storage_store_lock: VALUE,
2944    pub r_stdin: VALUE,
2945    pub r_stdout: VALUE,
2946    pub r_stderr: VALUE,
2947    pub verbose: VALUE,
2948    pub debug: VALUE,
2949    pub malloc_gc_disabled: bool,
2950    pub newobj_cache: *mut ::std::os::raw::c_void,
2951}
2952#[repr(C)]
2953#[derive(Copy, Clone)]
2954pub struct rb_ractor_struct__bindgen_ty_1 {
2955    pub set: ccan_list_head,
2956    pub cnt: ::std::os::raw::c_uint,
2957    pub blocking_cnt: ::std::os::raw::c_uint,
2958    pub sleeper: ::std::os::raw::c_uint,
2959    pub sched: rb_thread_sched,
2960    pub running_ec: *mut rb_execution_context_t,
2961    pub main: *mut rb_thread_t,
2962}
2963impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
2964    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2965        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)
2966    }
2967}
2968impl ::std::fmt::Debug for rb_ractor_struct {
2969    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2970        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)
2971    }
2972}
2973pub type attr_index_t = u16;
2974#[repr(C)]
2975#[derive(Debug, Copy, Clone)]
2976pub struct rb_subclass_entry {
2977    pub klass: VALUE,
2978    pub next: *mut rb_subclass_entry,
2979    pub prev: *mut rb_subclass_entry,
2980}
2981#[repr(C)]
2982#[derive(Copy, Clone)]
2983pub struct rb_classext_struct {
2984    pub box_: *const rb_box_t,
2985    pub super_: VALUE,
2986    pub fields_obj: VALUE,
2987    pub m_tbl: *mut rb_id_table,
2988    pub const_tbl: *mut rb_id_table,
2989    pub callable_m_tbl: *mut rb_id_table,
2990    pub cc_tbl: VALUE,
2991    pub cvc_tbl: VALUE,
2992    pub superclasses: *mut VALUE,
2993    pub subclasses: *mut rb_subclass_entry,
2994    pub subclass_entry: *mut rb_subclass_entry,
2995    pub module_subclass_entry: *mut rb_subclass_entry,
2996    pub origin_: VALUE,
2997    pub refined_class: VALUE,
2998    pub as_: rb_classext_struct__bindgen_ty_1,
2999    pub max_iv_count: attr_index_t,
3000    pub superclass_depth: u16,
3001    pub variation_count: ::std::os::raw::c_uchar,
3002    pub _bitfield_align_1: [u8; 0],
3003    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
3004    pub classpath: VALUE,
3005}
3006#[repr(C)]
3007#[derive(Copy, Clone)]
3008pub union rb_classext_struct__bindgen_ty_1 {
3009    pub class: rb_classext_struct__bindgen_ty_1__bindgen_ty_1,
3010    pub singleton_class: rb_classext_struct__bindgen_ty_1__bindgen_ty_2,
3011    pub iclass: rb_classext_struct__bindgen_ty_1__bindgen_ty_3,
3012}
3013#[repr(C)]
3014#[derive(Debug, Copy, Clone)]
3015pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_1 {
3016    pub allocator: rb_alloc_func_t,
3017}
3018#[repr(C)]
3019#[derive(Debug, Copy, Clone)]
3020pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_2 {
3021    pub attached_object: VALUE,
3022}
3023#[repr(C)]
3024#[derive(Debug, Copy, Clone)]
3025pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_3 {
3026    pub includer: VALUE,
3027}
3028impl ::std::fmt::Debug for rb_classext_struct__bindgen_ty_1 {
3029    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3030        write!(f, "rb_classext_struct__bindgen_ty_1 {{ union }}")
3031    }
3032}
3033impl ::std::fmt::Debug for rb_classext_struct {
3034    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3035        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)
3036    }
3037}
3038impl rb_classext_struct {
3039    #[inline]
3040    pub fn permanent_classpath(&self) -> bool {
3041        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
3042    }
3043    #[inline]
3044    pub fn set_permanent_classpath(&mut self, val: bool) {
3045        unsafe {
3046            let val: u8 = ::std::mem::transmute(val);
3047            self._bitfield_1.set(0usize, 1u8, val as u64)
3048        }
3049    }
3050    #[inline]
3051    pub unsafe fn permanent_classpath_raw(this: *const Self) -> bool {
3052        unsafe {
3053            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
3054                ::std::ptr::addr_of!((*this)._bitfield_1),
3055                0usize,
3056                1u8,
3057            ) as u8)
3058        }
3059    }
3060    #[inline]
3061    pub unsafe fn set_permanent_classpath_raw(this: *mut Self, val: bool) {
3062        unsafe {
3063            let val: u8 = ::std::mem::transmute(val);
3064            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
3065                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3066                0usize,
3067                1u8,
3068                val as u64,
3069            )
3070        }
3071    }
3072    #[inline]
3073    pub fn cloned(&self) -> bool {
3074        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) }
3075    }
3076    #[inline]
3077    pub fn set_cloned(&mut self, val: bool) {
3078        unsafe {
3079            let val: u8 = ::std::mem::transmute(val);
3080            self._bitfield_1.set(1usize, 1u8, val as u64)
3081        }
3082    }
3083    #[inline]
3084    pub unsafe fn cloned_raw(this: *const Self) -> bool {
3085        unsafe {
3086            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
3087                ::std::ptr::addr_of!((*this)._bitfield_1),
3088                1usize,
3089                1u8,
3090            ) as u8)
3091        }
3092    }
3093    #[inline]
3094    pub unsafe fn set_cloned_raw(this: *mut Self, val: bool) {
3095        unsafe {
3096            let val: u8 = ::std::mem::transmute(val);
3097            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
3098                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3099                1usize,
3100                1u8,
3101                val as u64,
3102            )
3103        }
3104    }
3105    #[inline]
3106    pub fn shared_const_tbl(&self) -> bool {
3107        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) }
3108    }
3109    #[inline]
3110    pub fn set_shared_const_tbl(&mut self, val: bool) {
3111        unsafe {
3112            let val: u8 = ::std::mem::transmute(val);
3113            self._bitfield_1.set(2usize, 1u8, val as u64)
3114        }
3115    }
3116    #[inline]
3117    pub unsafe fn shared_const_tbl_raw(this: *const Self) -> bool {
3118        unsafe {
3119            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
3120                ::std::ptr::addr_of!((*this)._bitfield_1),
3121                2usize,
3122                1u8,
3123            ) as u8)
3124        }
3125    }
3126    #[inline]
3127    pub unsafe fn set_shared_const_tbl_raw(this: *mut Self, val: bool) {
3128        unsafe {
3129            let val: u8 = ::std::mem::transmute(val);
3130            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
3131                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3132                2usize,
3133                1u8,
3134                val as u64,
3135            )
3136        }
3137    }
3138    #[inline]
3139    pub fn iclass_is_origin(&self) -> bool {
3140        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) }
3141    }
3142    #[inline]
3143    pub fn set_iclass_is_origin(&mut self, val: bool) {
3144        unsafe {
3145            let val: u8 = ::std::mem::transmute(val);
3146            self._bitfield_1.set(3usize, 1u8, val as u64)
3147        }
3148    }
3149    #[inline]
3150    pub unsafe fn iclass_is_origin_raw(this: *const Self) -> bool {
3151        unsafe {
3152            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
3153                ::std::ptr::addr_of!((*this)._bitfield_1),
3154                3usize,
3155                1u8,
3156            ) as u8)
3157        }
3158    }
3159    #[inline]
3160    pub unsafe fn set_iclass_is_origin_raw(this: *mut Self, val: bool) {
3161        unsafe {
3162            let val: u8 = ::std::mem::transmute(val);
3163            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
3164                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3165                3usize,
3166                1u8,
3167                val as u64,
3168            )
3169        }
3170    }
3171    #[inline]
3172    pub fn iclass_origin_shared_mtbl(&self) -> bool {
3173        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) }
3174    }
3175    #[inline]
3176    pub fn set_iclass_origin_shared_mtbl(&mut self, val: bool) {
3177        unsafe {
3178            let val: u8 = ::std::mem::transmute(val);
3179            self._bitfield_1.set(4usize, 1u8, val as u64)
3180        }
3181    }
3182    #[inline]
3183    pub unsafe fn iclass_origin_shared_mtbl_raw(this: *const Self) -> bool {
3184        unsafe {
3185            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
3186                ::std::ptr::addr_of!((*this)._bitfield_1),
3187                4usize,
3188                1u8,
3189            ) as u8)
3190        }
3191    }
3192    #[inline]
3193    pub unsafe fn set_iclass_origin_shared_mtbl_raw(this: *mut Self, val: bool) {
3194        unsafe {
3195            let val: u8 = ::std::mem::transmute(val);
3196            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
3197                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3198                4usize,
3199                1u8,
3200                val as u64,
3201            )
3202        }
3203    }
3204    #[inline]
3205    pub fn superclasses_with_self(&self) -> bool {
3206        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u8) }
3207    }
3208    #[inline]
3209    pub fn set_superclasses_with_self(&mut self, val: bool) {
3210        unsafe {
3211            let val: u8 = ::std::mem::transmute(val);
3212            self._bitfield_1.set(5usize, 1u8, val as u64)
3213        }
3214    }
3215    #[inline]
3216    pub unsafe fn superclasses_with_self_raw(this: *const Self) -> bool {
3217        unsafe {
3218            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
3219                ::std::ptr::addr_of!((*this)._bitfield_1),
3220                5usize,
3221                1u8,
3222            ) as u8)
3223        }
3224    }
3225    #[inline]
3226    pub unsafe fn set_superclasses_with_self_raw(this: *mut Self, val: bool) {
3227        unsafe {
3228            let val: u8 = ::std::mem::transmute(val);
3229            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
3230                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3231                5usize,
3232                1u8,
3233                val as u64,
3234            )
3235        }
3236    }
3237    #[inline]
3238    pub fn new_bitfield_1(
3239        permanent_classpath: bool,
3240        cloned: bool,
3241        shared_const_tbl: bool,
3242        iclass_is_origin: bool,
3243        iclass_origin_shared_mtbl: bool,
3244        superclasses_with_self: bool,
3245    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
3246        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
3247        __bindgen_bitfield_unit.set(0usize, 1u8, {
3248            let permanent_classpath: u8 = unsafe { ::std::mem::transmute(permanent_classpath) };
3249            permanent_classpath as u64
3250        });
3251        __bindgen_bitfield_unit.set(1usize, 1u8, {
3252            let cloned: u8 = unsafe { ::std::mem::transmute(cloned) };
3253            cloned as u64
3254        });
3255        __bindgen_bitfield_unit.set(2usize, 1u8, {
3256            let shared_const_tbl: u8 = unsafe { ::std::mem::transmute(shared_const_tbl) };
3257            shared_const_tbl as u64
3258        });
3259        __bindgen_bitfield_unit.set(3usize, 1u8, {
3260            let iclass_is_origin: u8 = unsafe { ::std::mem::transmute(iclass_is_origin) };
3261            iclass_is_origin as u64
3262        });
3263        __bindgen_bitfield_unit.set(4usize, 1u8, {
3264            let iclass_origin_shared_mtbl: u8 =
3265                unsafe { ::std::mem::transmute(iclass_origin_shared_mtbl) };
3266            iclass_origin_shared_mtbl as u64
3267        });
3268        __bindgen_bitfield_unit.set(5usize, 1u8, {
3269            let superclasses_with_self: u8 =
3270                unsafe { ::std::mem::transmute(superclasses_with_self) };
3271            superclasses_with_self as u64
3272        });
3273        __bindgen_bitfield_unit
3274    }
3275}
3276pub type rb_classext_t = rb_classext_struct;
3277#[repr(C)]
3278#[derive(Debug, Copy, Clone)]
3279pub struct RClass {
3280    pub basic: RBasic,
3281    pub object_id: VALUE,
3282}
3283#[repr(C)]
3284#[derive(Copy, Clone)]
3285pub struct RClass_and_rb_classext_t {
3286    pub rclass: RClass,
3287    pub classext: rb_classext_t,
3288}
3289impl ::std::fmt::Debug for RClass_and_rb_classext_t {
3290    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3291        write!(
3292            f,
3293            "RClass_and_rb_classext_t {{ rclass: {:?}, classext: {:?} }}",
3294            self.rclass, self.classext
3295        )
3296    }
3297}
3298#[repr(C)]
3299#[derive(Copy, Clone)]
3300pub struct iseq_compile_data {
3301    pub err_info: VALUE,
3302    pub catch_table_ary: VALUE,
3303    pub iseq_size: ::std::os::raw::c_uint,
3304    pub iseq_encoded: *mut VALUE,
3305    pub is_single_mark_bit: bool,
3306    pub mark_bits: iseq_compile_data__bindgen_ty_1,
3307    pub start_label: *mut iseq_label_data,
3308    pub end_label: *mut iseq_label_data,
3309    pub redo_label: *mut iseq_label_data,
3310    pub current_block: *const rb_iseq_t,
3311    pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
3312    pub node: iseq_compile_data__bindgen_ty_2,
3313    pub insn: iseq_compile_data__bindgen_ty_3,
3314    pub in_rescue: bool,
3315    pub in_masgn: bool,
3316    pub loopval_popped: ::std::os::raw::c_int,
3317    pub last_line: ::std::os::raw::c_int,
3318    pub label_no: ::std::os::raw::c_int,
3319    pub node_level: ::std::os::raw::c_int,
3320    pub isolated_depth: ::std::os::raw::c_int,
3321    pub ci_index: ::std::os::raw::c_uint,
3322    pub ic_index: ::std::os::raw::c_uint,
3323    pub option: *const rb_compile_option_t,
3324    pub ivar_cache_table: *mut rb_id_table,
3325    pub builtin_function_table: *const rb_builtin_function,
3326    pub root_node: *const NODE,
3327    pub catch_except_p: bool,
3328}
3329#[repr(C)]
3330#[derive(Copy, Clone)]
3331pub union iseq_compile_data__bindgen_ty_1 {
3332    pub list: *mut iseq_bits_t,
3333    pub single: iseq_bits_t,
3334}
3335impl ::std::fmt::Debug for iseq_compile_data__bindgen_ty_1 {
3336    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3337        write!(f, "iseq_compile_data__bindgen_ty_1 {{ union }}")
3338    }
3339}
3340#[repr(C)]
3341#[derive(Debug, Copy, Clone)]
3342pub struct iseq_compile_data__bindgen_ty_2 {
3343    pub storage_head: *mut iseq_compile_data_storage,
3344    pub storage_current: *mut iseq_compile_data_storage,
3345}
3346#[repr(C)]
3347#[derive(Debug, Copy, Clone)]
3348pub struct iseq_compile_data__bindgen_ty_3 {
3349    pub storage_head: *mut iseq_compile_data_storage,
3350    pub storage_current: *mut iseq_compile_data_storage,
3351}
3352impl ::std::fmt::Debug for iseq_compile_data {
3353    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3354        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)
3355    }
3356}
3357#[repr(C)]
3358#[derive(Debug, Copy, Clone)]
3359pub struct rb_compile_option_struct {
3360    pub _bitfield_align_1: [u8; 0],
3361    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
3362    pub debug_level: ::std::os::raw::c_int,
3363}
3364impl rb_compile_option_struct {
3365    #[inline]
3366    pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
3367        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3368    }
3369    #[inline]
3370    pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
3371        unsafe {
3372            let val: u32 = ::std::mem::transmute(val);
3373            self._bitfield_1.set(0usize, 1u8, val as u64)
3374        }
3375    }
3376    #[inline]
3377    pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
3378        unsafe {
3379            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3380                ::std::ptr::addr_of!((*this)._bitfield_1),
3381                0usize,
3382                1u8,
3383            ) as u32)
3384        }
3385    }
3386    #[inline]
3387    pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3388        unsafe {
3389            let val: u32 = ::std::mem::transmute(val);
3390            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3391                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3392                0usize,
3393                1u8,
3394                val as u64,
3395            )
3396        }
3397    }
3398    #[inline]
3399    pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
3400        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3401    }
3402    #[inline]
3403    pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
3404        unsafe {
3405            let val: u32 = ::std::mem::transmute(val);
3406            self._bitfield_1.set(1usize, 1u8, val as u64)
3407        }
3408    }
3409    #[inline]
3410    pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3411        unsafe {
3412            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3413                ::std::ptr::addr_of!((*this)._bitfield_1),
3414                1usize,
3415                1u8,
3416            ) as u32)
3417        }
3418    }
3419    #[inline]
3420    pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3421        unsafe {
3422            let val: u32 = ::std::mem::transmute(val);
3423            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3424                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3425                1usize,
3426                1u8,
3427                val as u64,
3428            )
3429        }
3430    }
3431    #[inline]
3432    pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3433        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3434    }
3435    #[inline]
3436    pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3437        unsafe {
3438            let val: u32 = ::std::mem::transmute(val);
3439            self._bitfield_1.set(2usize, 1u8, val as u64)
3440        }
3441    }
3442    #[inline]
3443    pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3444        unsafe {
3445            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3446                ::std::ptr::addr_of!((*this)._bitfield_1),
3447                2usize,
3448                1u8,
3449            ) as u32)
3450        }
3451    }
3452    #[inline]
3453    pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3454        unsafe {
3455            let val: u32 = ::std::mem::transmute(val);
3456            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3457                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3458                2usize,
3459                1u8,
3460                val as u64,
3461            )
3462        }
3463    }
3464    #[inline]
3465    pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3466        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3467    }
3468    #[inline]
3469    pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3470        unsafe {
3471            let val: u32 = ::std::mem::transmute(val);
3472            self._bitfield_1.set(3usize, 1u8, val as u64)
3473        }
3474    }
3475    #[inline]
3476    pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3477        unsafe {
3478            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3479                ::std::ptr::addr_of!((*this)._bitfield_1),
3480                3usize,
3481                1u8,
3482            ) as u32)
3483        }
3484    }
3485    #[inline]
3486    pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3487        unsafe {
3488            let val: u32 = ::std::mem::transmute(val);
3489            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3490                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3491                3usize,
3492                1u8,
3493                val as u64,
3494            )
3495        }
3496    }
3497    #[inline]
3498    pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3499        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3500    }
3501    #[inline]
3502    pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3503        unsafe {
3504            let val: u32 = ::std::mem::transmute(val);
3505            self._bitfield_1.set(4usize, 1u8, val as u64)
3506        }
3507    }
3508    #[inline]
3509    pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3510        unsafe {
3511            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3512                ::std::ptr::addr_of!((*this)._bitfield_1),
3513                4usize,
3514                1u8,
3515            ) as u32)
3516        }
3517    }
3518    #[inline]
3519    pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3520        unsafe {
3521            let val: u32 = ::std::mem::transmute(val);
3522            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3523                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3524                4usize,
3525                1u8,
3526                val as u64,
3527            )
3528        }
3529    }
3530    #[inline]
3531    pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3532        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3533    }
3534    #[inline]
3535    pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3536        unsafe {
3537            let val: u32 = ::std::mem::transmute(val);
3538            self._bitfield_1.set(5usize, 1u8, val as u64)
3539        }
3540    }
3541    #[inline]
3542    pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3543        unsafe {
3544            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3545                ::std::ptr::addr_of!((*this)._bitfield_1),
3546                5usize,
3547                1u8,
3548            ) as u32)
3549        }
3550    }
3551    #[inline]
3552    pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3553        unsafe {
3554            let val: u32 = ::std::mem::transmute(val);
3555            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3556                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3557                5usize,
3558                1u8,
3559                val as u64,
3560            )
3561        }
3562    }
3563    #[inline]
3564    pub fn frozen_string_literal(&self) -> ::std::os::raw::c_int {
3565        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 2u8) as u32) }
3566    }
3567    #[inline]
3568    pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_int) {
3569        unsafe {
3570            let val: u32 = ::std::mem::transmute(val);
3571            self._bitfield_1.set(6usize, 2u8, val as u64)
3572        }
3573    }
3574    #[inline]
3575    pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_int {
3576        unsafe {
3577            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3578                ::std::ptr::addr_of!((*this)._bitfield_1),
3579                6usize,
3580                2u8,
3581            ) as u32)
3582        }
3583    }
3584    #[inline]
3585    pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_int) {
3586        unsafe {
3587            let val: u32 = ::std::mem::transmute(val);
3588            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3589                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3590                6usize,
3591                2u8,
3592                val as u64,
3593            )
3594        }
3595    }
3596    #[inline]
3597    pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3598        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
3599    }
3600    #[inline]
3601    pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3602        unsafe {
3603            let val: u32 = ::std::mem::transmute(val);
3604            self._bitfield_1.set(8usize, 1u8, val as u64)
3605        }
3606    }
3607    #[inline]
3608    pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3609        unsafe {
3610            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3611                ::std::ptr::addr_of!((*this)._bitfield_1),
3612                8usize,
3613                1u8,
3614            ) as u32)
3615        }
3616    }
3617    #[inline]
3618    pub unsafe fn set_debug_frozen_string_literal_raw(
3619        this: *mut Self,
3620        val: ::std::os::raw::c_uint,
3621    ) {
3622        unsafe {
3623            let val: u32 = ::std::mem::transmute(val);
3624            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3625                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3626                8usize,
3627                1u8,
3628                val as u64,
3629            )
3630        }
3631    }
3632    #[inline]
3633    pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3634        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
3635    }
3636    #[inline]
3637    pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3638        unsafe {
3639            let val: u32 = ::std::mem::transmute(val);
3640            self._bitfield_1.set(9usize, 1u8, val as u64)
3641        }
3642    }
3643    #[inline]
3644    pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3645        unsafe {
3646            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3647                ::std::ptr::addr_of!((*this)._bitfield_1),
3648                9usize,
3649                1u8,
3650            ) as u32)
3651        }
3652    }
3653    #[inline]
3654    pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3655        unsafe {
3656            let val: u32 = ::std::mem::transmute(val);
3657            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3658                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3659                9usize,
3660                1u8,
3661                val as u64,
3662            )
3663        }
3664    }
3665    #[inline]
3666    pub fn new_bitfield_1(
3667        inline_const_cache: ::std::os::raw::c_uint,
3668        peephole_optimization: ::std::os::raw::c_uint,
3669        tailcall_optimization: ::std::os::raw::c_uint,
3670        specialized_instruction: ::std::os::raw::c_uint,
3671        operands_unification: ::std::os::raw::c_uint,
3672        instructions_unification: ::std::os::raw::c_uint,
3673        frozen_string_literal: ::std::os::raw::c_int,
3674        debug_frozen_string_literal: ::std::os::raw::c_uint,
3675        coverage_enabled: ::std::os::raw::c_uint,
3676    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3677        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3678        __bindgen_bitfield_unit.set(0usize, 1u8, {
3679            let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3680            inline_const_cache as u64
3681        });
3682        __bindgen_bitfield_unit.set(1usize, 1u8, {
3683            let peephole_optimization: u32 =
3684                unsafe { ::std::mem::transmute(peephole_optimization) };
3685            peephole_optimization as u64
3686        });
3687        __bindgen_bitfield_unit.set(2usize, 1u8, {
3688            let tailcall_optimization: u32 =
3689                unsafe { ::std::mem::transmute(tailcall_optimization) };
3690            tailcall_optimization as u64
3691        });
3692        __bindgen_bitfield_unit.set(3usize, 1u8, {
3693            let specialized_instruction: u32 =
3694                unsafe { ::std::mem::transmute(specialized_instruction) };
3695            specialized_instruction as u64
3696        });
3697        __bindgen_bitfield_unit.set(4usize, 1u8, {
3698            let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3699            operands_unification as u64
3700        });
3701        __bindgen_bitfield_unit.set(5usize, 1u8, {
3702            let instructions_unification: u32 =
3703                unsafe { ::std::mem::transmute(instructions_unification) };
3704            instructions_unification as u64
3705        });
3706        __bindgen_bitfield_unit.set(6usize, 2u8, {
3707            let frozen_string_literal: u32 =
3708                unsafe { ::std::mem::transmute(frozen_string_literal) };
3709            frozen_string_literal as u64
3710        });
3711        __bindgen_bitfield_unit.set(8usize, 1u8, {
3712            let debug_frozen_string_literal: u32 =
3713                unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3714            debug_frozen_string_literal as u64
3715        });
3716        __bindgen_bitfield_unit.set(9usize, 1u8, {
3717            let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3718            coverage_enabled as u64
3719        });
3720        __bindgen_bitfield_unit
3721    }
3722}
3723#[repr(C)]
3724#[derive(Debug, Copy, Clone)]
3725pub struct iseq_insn_info_entry {
3726    pub line_no: ::std::os::raw::c_int,
3727    pub node_id: ::std::os::raw::c_int,
3728    pub events: rb_event_flag_t,
3729}
3730pub const rb_catch_type_CATCH_TYPE_RESCUE: rb_catch_type = 3;
3731pub const rb_catch_type_CATCH_TYPE_ENSURE: rb_catch_type = 5;
3732pub const rb_catch_type_CATCH_TYPE_RETRY: rb_catch_type = 7;
3733pub const rb_catch_type_CATCH_TYPE_BREAK: rb_catch_type = 9;
3734pub const rb_catch_type_CATCH_TYPE_REDO: rb_catch_type = 11;
3735pub const rb_catch_type_CATCH_TYPE_NEXT: rb_catch_type = 13;
3736pub type rb_catch_type = ::std::os::raw::c_uint;
3737#[repr(C)]
3738#[derive(Debug, Copy, Clone)]
3739pub struct iseq_catch_table_entry {
3740    pub type_: rb_catch_type,
3741    pub iseq: *mut rb_iseq_t,
3742    pub start: ::std::os::raw::c_uint,
3743    pub end: ::std::os::raw::c_uint,
3744    pub cont: ::std::os::raw::c_uint,
3745    pub sp: ::std::os::raw::c_uint,
3746}
3747#[repr(C, packed)]
3748pub struct iseq_catch_table {
3749    pub size: ::std::os::raw::c_uint,
3750    pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3751}
3752#[repr(C)]
3753#[derive(Debug)]
3754pub struct iseq_compile_data_storage {
3755    pub next: *mut iseq_compile_data_storage,
3756    pub pos: ::std::os::raw::c_uint,
3757    pub size: ::std::os::raw::c_uint,
3758    pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3759}
3760#[repr(C)]
3761#[derive(Debug, Copy, Clone)]
3762pub struct coroutine_context {
3763    pub _address: u8,
3764}
3765#[repr(C)]
3766#[derive(Debug, Copy, Clone)]
3767pub struct rb_call_data {
3768    pub _address: u8,
3769}
3770#[repr(C)]
3771#[derive(Debug, Copy, Clone)]
3772pub struct succ_index_table {
3773    pub _address: u8,
3774}
3775#[repr(C)]
3776#[derive(Debug, Copy, Clone)]
3777pub struct rb_event_hook_struct {
3778    pub _address: u8,
3779}
3780#[repr(C)]
3781#[derive(Debug, Copy, Clone)]
3782pub struct rb_postponed_job_queue {
3783    pub _address: u8,
3784}
3785#[repr(C)]
3786#[derive(Debug, Copy, Clone)]
3787pub struct ractor_queue {
3788    pub _address: u8,
3789}
3790#[repr(C)]
3791#[derive(Debug, Copy, Clone)]
3792pub struct iseq_label_data {
3793    pub _address: u8,
3794}
3795#[repr(C)]
3796#[derive(Debug, Copy, Clone)]
3797pub struct iseq_compile_data_ensure_node_stack {
3798    pub _address: u8,
3799}