rbspy_ruby_structs/
ruby_3_2_3.rs

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