rbspy_ruby_structs/
ruby_3_0_0.rs

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