Skip to main content

rbspy_ruby_structs/
ruby_4_0_6.rs

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