rbspy_ruby_structs/
ruby_3_0_5.rs

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