rbspy_ruby_structs/
ruby_3_3_10.rs

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