rbspy_ruby_structs/
ruby_4_0_0.rs

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