Skip to main content

rbspy_ruby_structs/
ruby_3_3_11.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_waiting {
1202    pub flags: rb_thread_sched_waiting_thread_sched_waiting_flag,
1203    pub data: rb_thread_sched_waiting__bindgen_ty_1,
1204    pub node: ccan_list_node,
1205}
1206pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_none:
1207    rb_thread_sched_waiting_thread_sched_waiting_flag = 0;
1208pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_timeout:
1209    rb_thread_sched_waiting_thread_sched_waiting_flag = 1;
1210pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_io_read:
1211    rb_thread_sched_waiting_thread_sched_waiting_flag = 2;
1212pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_io_write:
1213    rb_thread_sched_waiting_thread_sched_waiting_flag = 8;
1214pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_io_force:
1215    rb_thread_sched_waiting_thread_sched_waiting_flag = 64;
1216pub type rb_thread_sched_waiting_thread_sched_waiting_flag = ::std::os::raw::c_uint;
1217#[repr(C)]
1218#[derive(Debug, Copy, Clone)]
1219pub struct rb_thread_sched_waiting__bindgen_ty_1 {
1220    pub timeout: u64,
1221    pub fd: ::std::os::raw::c_int,
1222    pub result: ::std::os::raw::c_int,
1223}
1224#[repr(C)]
1225#[derive(Debug, Copy, Clone)]
1226pub struct rb_thread_sched_item {
1227    pub node: rb_thread_sched_item__bindgen_ty_1,
1228    pub waiting_reason: rb_thread_sched_waiting,
1229    pub finished: bool,
1230    pub malloc_stack: bool,
1231    pub context_stack: *mut ::std::os::raw::c_void,
1232    pub context: *mut coroutine_context,
1233}
1234#[repr(C)]
1235#[derive(Debug, Copy, Clone)]
1236pub struct rb_thread_sched_item__bindgen_ty_1 {
1237    pub ubf: ccan_list_node,
1238    pub readyq: ccan_list_node,
1239    pub timeslice_threads: ccan_list_node,
1240    pub running_threads: ccan_list_node,
1241    pub zombie_threads: ccan_list_node,
1242}
1243#[repr(C)]
1244#[derive(Copy, Clone)]
1245pub struct rb_native_thread {
1246    pub serial: rb_atomic_t,
1247    pub vm: *mut rb_vm_struct,
1248    pub thread_id: rb_nativethread_id_t,
1249    pub tid: ::std::os::raw::c_int,
1250    pub running_thread: *mut rb_thread_struct,
1251    pub cond: rb_native_thread__bindgen_ty_1,
1252    pub altstack: *mut ::std::os::raw::c_void,
1253    pub nt_context: *mut coroutine_context,
1254    pub dedicated: ::std::os::raw::c_int,
1255    pub machine_stack_maxsize: usize,
1256}
1257#[repr(C)]
1258#[derive(Copy, Clone)]
1259pub union rb_native_thread__bindgen_ty_1 {
1260    pub intr: rb_nativethread_cond_t,
1261    pub readyq: rb_nativethread_cond_t,
1262}
1263impl ::std::fmt::Debug for rb_native_thread__bindgen_ty_1 {
1264    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1265        write!(f, "rb_native_thread__bindgen_ty_1 {{ union }}")
1266    }
1267}
1268impl ::std::fmt::Debug for rb_native_thread {
1269    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1270        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)
1271    }
1272}
1273#[repr(C)]
1274#[derive(Copy, Clone)]
1275pub struct rb_thread_sched {
1276    pub lock_: rb_nativethread_lock_t,
1277    pub running: *mut rb_thread_struct,
1278    pub is_running: bool,
1279    pub is_running_timeslice: bool,
1280    pub enable_mn_threads: bool,
1281    pub readyq: ccan_list_head,
1282    pub readyq_cnt: ::std::os::raw::c_int,
1283    pub grq_node: ccan_list_node,
1284}
1285impl ::std::fmt::Debug for rb_thread_sched {
1286    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1287        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)
1288    }
1289}
1290pub type rb_snum_t = ::std::os::raw::c_long;
1291pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1292pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1293pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1294pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1295pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1296pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1297pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1298pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1299pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1300pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1301pub type ruby_tag_type = ::std::os::raw::c_uint;
1302pub type rb_compile_option_t = rb_compile_option_struct;
1303#[repr(C)]
1304#[derive(Debug, Copy, Clone)]
1305pub struct iseq_inline_constant_cache_entry {
1306    pub flags: VALUE,
1307    pub value: VALUE,
1308    pub _unused1: VALUE,
1309    pub _unused2: VALUE,
1310    pub ic_cref: *const rb_cref_t,
1311}
1312#[repr(C)]
1313#[derive(Debug, Copy, Clone)]
1314pub struct iseq_inline_constant_cache {
1315    pub entry: *mut iseq_inline_constant_cache_entry,
1316    pub segments: *const ID,
1317}
1318#[repr(C)]
1319#[derive(Debug, Copy, Clone)]
1320pub struct iseq_inline_iv_cache_entry {
1321    pub value: usize,
1322    pub iv_set_name: ID,
1323}
1324#[repr(C)]
1325#[derive(Copy, Clone)]
1326pub union iseq_inline_storage_entry {
1327    pub once: iseq_inline_storage_entry__bindgen_ty_1,
1328    pub ic_cache: iseq_inline_constant_cache,
1329    pub iv_cache: iseq_inline_iv_cache_entry,
1330}
1331#[repr(C)]
1332#[derive(Debug, Copy, Clone)]
1333pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1334    pub running_thread: *mut rb_thread_struct,
1335    pub value: VALUE,
1336}
1337impl ::std::fmt::Debug for iseq_inline_storage_entry {
1338    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1339        write!(f, "iseq_inline_storage_entry {{ union }}")
1340    }
1341}
1342#[repr(C)]
1343#[derive(Debug, Copy, Clone)]
1344pub struct rb_calling_info {
1345    pub cd: *mut rb_call_data,
1346    pub cc: *const rb_callcache,
1347    pub block_handler: VALUE,
1348    pub recv: VALUE,
1349    pub argc: ::std::os::raw::c_int,
1350    pub kw_splat: bool,
1351    pub heap_argv: VALUE,
1352}
1353#[repr(C)]
1354#[derive(Debug, Copy, Clone)]
1355pub struct rb_iseq_location_struct {
1356    pub pathobj: VALUE,
1357    pub base_label: VALUE,
1358    pub label: VALUE,
1359    pub first_lineno: ::std::os::raw::c_int,
1360    pub node_id: ::std::os::raw::c_int,
1361    pub code_location: rb_code_location_t,
1362}
1363pub type rb_iseq_location_t = rb_iseq_location_struct;
1364pub type iseq_bits_t = usize;
1365pub const rb_iseq_type_ISEQ_TYPE_TOP: rb_iseq_type = 0;
1366pub const rb_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_type = 1;
1367pub const rb_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_type = 2;
1368pub const rb_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_type = 3;
1369pub const rb_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_type = 4;
1370pub const rb_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_type = 5;
1371pub const rb_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_type = 6;
1372pub const rb_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_type = 7;
1373pub const rb_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_type = 8;
1374pub type rb_iseq_type = ::std::os::raw::c_uint;
1375pub type rb_jit_func_t = ::std::option::Option<
1376    unsafe extern "C" fn(
1377        arg1: *mut rb_execution_context_struct,
1378        arg2: *mut rb_control_frame_struct,
1379    ) -> VALUE,
1380>;
1381#[repr(C)]
1382#[derive(Copy, Clone)]
1383pub struct rb_iseq_constant_body {
1384    pub type_: rb_iseq_type,
1385    pub iseq_size: ::std::os::raw::c_uint,
1386    pub iseq_encoded: *mut VALUE,
1387    pub param: rb_iseq_constant_body__bindgen_ty_1,
1388    pub location: rb_iseq_location_t,
1389    pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1390    pub local_table: *const ID,
1391    pub catch_table: *mut iseq_catch_table,
1392    pub parent_iseq: *const rb_iseq_struct,
1393    pub local_iseq: *mut rb_iseq_struct,
1394    pub is_entries: *mut iseq_inline_storage_entry,
1395    pub call_data: *mut rb_call_data,
1396    pub variable: rb_iseq_constant_body__bindgen_ty_2,
1397    pub local_table_size: ::std::os::raw::c_uint,
1398    pub ic_size: ::std::os::raw::c_uint,
1399    pub ise_size: ::std::os::raw::c_uint,
1400    pub ivc_size: ::std::os::raw::c_uint,
1401    pub icvarc_size: ::std::os::raw::c_uint,
1402    pub ci_size: ::std::os::raw::c_uint,
1403    pub stack_max: ::std::os::raw::c_uint,
1404    pub builtin_attrs: ::std::os::raw::c_uint,
1405    pub mark_bits: rb_iseq_constant_body__bindgen_ty_3,
1406    pub outer_variables: *mut rb_id_table,
1407    pub mandatory_only_iseq: *const rb_iseq_t,
1408    pub jit_entry: rb_jit_func_t,
1409    pub jit_entry_calls: ::std::os::raw::c_ulong,
1410    pub jit_exception: rb_jit_func_t,
1411    pub jit_exception_calls: ::std::os::raw::c_ulong,
1412    pub rjit_blocks: VALUE,
1413    pub yjit_payload: *mut ::std::os::raw::c_void,
1414    pub yjit_calls_at_interv: u64,
1415}
1416#[repr(C)]
1417#[derive(Debug, Copy, Clone)]
1418pub struct rb_iseq_constant_body__bindgen_ty_1 {
1419    pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1420    pub size: ::std::os::raw::c_uint,
1421    pub lead_num: ::std::os::raw::c_int,
1422    pub opt_num: ::std::os::raw::c_int,
1423    pub rest_start: ::std::os::raw::c_int,
1424    pub post_start: ::std::os::raw::c_int,
1425    pub post_num: ::std::os::raw::c_int,
1426    pub block_start: ::std::os::raw::c_int,
1427    pub opt_table: *const VALUE,
1428    pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1429}
1430#[repr(C)]
1431#[repr(align(4))]
1432#[derive(Debug, Copy, Clone)]
1433pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1434    pub _bitfield_align_1: [u8; 0],
1435    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
1436    pub __bindgen_padding_0: u16,
1437}
1438impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1439    #[inline]
1440    pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1441        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1442    }
1443    #[inline]
1444    pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1445        unsafe {
1446            let val: u32 = ::std::mem::transmute(val);
1447            self._bitfield_1.set(0usize, 1u8, val as u64)
1448        }
1449    }
1450    #[inline]
1451    pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1452        unsafe {
1453            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1454                ::std::ptr::addr_of!((*this)._bitfield_1),
1455                0usize,
1456                1u8,
1457            ) as u32)
1458        }
1459    }
1460    #[inline]
1461    pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1462        unsafe {
1463            let val: u32 = ::std::mem::transmute(val);
1464            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1465                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1466                0usize,
1467                1u8,
1468                val as u64,
1469            )
1470        }
1471    }
1472    #[inline]
1473    pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1474        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1475    }
1476    #[inline]
1477    pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1478        unsafe {
1479            let val: u32 = ::std::mem::transmute(val);
1480            self._bitfield_1.set(1usize, 1u8, val as u64)
1481        }
1482    }
1483    #[inline]
1484    pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1485        unsafe {
1486            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1487                ::std::ptr::addr_of!((*this)._bitfield_1),
1488                1usize,
1489                1u8,
1490            ) as u32)
1491        }
1492    }
1493    #[inline]
1494    pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1495        unsafe {
1496            let val: u32 = ::std::mem::transmute(val);
1497            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1498                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1499                1usize,
1500                1u8,
1501                val as u64,
1502            )
1503        }
1504    }
1505    #[inline]
1506    pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1507        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1508    }
1509    #[inline]
1510    pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1511        unsafe {
1512            let val: u32 = ::std::mem::transmute(val);
1513            self._bitfield_1.set(2usize, 1u8, val as u64)
1514        }
1515    }
1516    #[inline]
1517    pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1518        unsafe {
1519            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1520                ::std::ptr::addr_of!((*this)._bitfield_1),
1521                2usize,
1522                1u8,
1523            ) as u32)
1524        }
1525    }
1526    #[inline]
1527    pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1528        unsafe {
1529            let val: u32 = ::std::mem::transmute(val);
1530            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1531                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1532                2usize,
1533                1u8,
1534                val as u64,
1535            )
1536        }
1537    }
1538    #[inline]
1539    pub fn has_post(&self) -> ::std::os::raw::c_uint {
1540        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1541    }
1542    #[inline]
1543    pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1544        unsafe {
1545            let val: u32 = ::std::mem::transmute(val);
1546            self._bitfield_1.set(3usize, 1u8, val as u64)
1547        }
1548    }
1549    #[inline]
1550    pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1551        unsafe {
1552            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1553                ::std::ptr::addr_of!((*this)._bitfield_1),
1554                3usize,
1555                1u8,
1556            ) as u32)
1557        }
1558    }
1559    #[inline]
1560    pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1561        unsafe {
1562            let val: u32 = ::std::mem::transmute(val);
1563            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1564                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1565                3usize,
1566                1u8,
1567                val as u64,
1568            )
1569        }
1570    }
1571    #[inline]
1572    pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1573        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1574    }
1575    #[inline]
1576    pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1577        unsafe {
1578            let val: u32 = ::std::mem::transmute(val);
1579            self._bitfield_1.set(4usize, 1u8, val as u64)
1580        }
1581    }
1582    #[inline]
1583    pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1584        unsafe {
1585            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1586                ::std::ptr::addr_of!((*this)._bitfield_1),
1587                4usize,
1588                1u8,
1589            ) as u32)
1590        }
1591    }
1592    #[inline]
1593    pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1594        unsafe {
1595            let val: u32 = ::std::mem::transmute(val);
1596            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1597                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1598                4usize,
1599                1u8,
1600                val as u64,
1601            )
1602        }
1603    }
1604    #[inline]
1605    pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1606        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1607    }
1608    #[inline]
1609    pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1610        unsafe {
1611            let val: u32 = ::std::mem::transmute(val);
1612            self._bitfield_1.set(5usize, 1u8, val as u64)
1613        }
1614    }
1615    #[inline]
1616    pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1617        unsafe {
1618            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1619                ::std::ptr::addr_of!((*this)._bitfield_1),
1620                5usize,
1621                1u8,
1622            ) as u32)
1623        }
1624    }
1625    #[inline]
1626    pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1627        unsafe {
1628            let val: u32 = ::std::mem::transmute(val);
1629            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1630                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1631                5usize,
1632                1u8,
1633                val as u64,
1634            )
1635        }
1636    }
1637    #[inline]
1638    pub fn has_block(&self) -> ::std::os::raw::c_uint {
1639        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1640    }
1641    #[inline]
1642    pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1643        unsafe {
1644            let val: u32 = ::std::mem::transmute(val);
1645            self._bitfield_1.set(6usize, 1u8, val as u64)
1646        }
1647    }
1648    #[inline]
1649    pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1650        unsafe {
1651            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1652                ::std::ptr::addr_of!((*this)._bitfield_1),
1653                6usize,
1654                1u8,
1655            ) as u32)
1656        }
1657    }
1658    #[inline]
1659    pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1660        unsafe {
1661            let val: u32 = ::std::mem::transmute(val);
1662            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1663                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1664                6usize,
1665                1u8,
1666                val as u64,
1667            )
1668        }
1669    }
1670    #[inline]
1671    pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1672        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1673    }
1674    #[inline]
1675    pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1676        unsafe {
1677            let val: u32 = ::std::mem::transmute(val);
1678            self._bitfield_1.set(7usize, 1u8, val as u64)
1679        }
1680    }
1681    #[inline]
1682    pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1683        unsafe {
1684            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1685                ::std::ptr::addr_of!((*this)._bitfield_1),
1686                7usize,
1687                1u8,
1688            ) as u32)
1689        }
1690    }
1691    #[inline]
1692    pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1693        unsafe {
1694            let val: u32 = ::std::mem::transmute(val);
1695            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1696                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1697                7usize,
1698                1u8,
1699                val as u64,
1700            )
1701        }
1702    }
1703    #[inline]
1704    pub fn accepts_no_kwarg(&self) -> ::std::os::raw::c_uint {
1705        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
1706    }
1707    #[inline]
1708    pub fn set_accepts_no_kwarg(&mut self, val: ::std::os::raw::c_uint) {
1709        unsafe {
1710            let val: u32 = ::std::mem::transmute(val);
1711            self._bitfield_1.set(8usize, 1u8, val as u64)
1712        }
1713    }
1714    #[inline]
1715    pub unsafe fn accepts_no_kwarg_raw(this: *const Self) -> ::std::os::raw::c_uint {
1716        unsafe {
1717            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1718                ::std::ptr::addr_of!((*this)._bitfield_1),
1719                8usize,
1720                1u8,
1721            ) as u32)
1722        }
1723    }
1724    #[inline]
1725    pub unsafe fn set_accepts_no_kwarg_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1726        unsafe {
1727            let val: u32 = ::std::mem::transmute(val);
1728            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1729                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1730                8usize,
1731                1u8,
1732                val as u64,
1733            )
1734        }
1735    }
1736    #[inline]
1737    pub fn ruby2_keywords(&self) -> ::std::os::raw::c_uint {
1738        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
1739    }
1740    #[inline]
1741    pub fn set_ruby2_keywords(&mut self, val: ::std::os::raw::c_uint) {
1742        unsafe {
1743            let val: u32 = ::std::mem::transmute(val);
1744            self._bitfield_1.set(9usize, 1u8, val as u64)
1745        }
1746    }
1747    #[inline]
1748    pub unsafe fn ruby2_keywords_raw(this: *const Self) -> ::std::os::raw::c_uint {
1749        unsafe {
1750            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1751                ::std::ptr::addr_of!((*this)._bitfield_1),
1752                9usize,
1753                1u8,
1754            ) as u32)
1755        }
1756    }
1757    #[inline]
1758    pub unsafe fn set_ruby2_keywords_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1759        unsafe {
1760            let val: u32 = ::std::mem::transmute(val);
1761            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1762                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1763                9usize,
1764                1u8,
1765                val as u64,
1766            )
1767        }
1768    }
1769    #[inline]
1770    pub fn new_bitfield_1(
1771        has_lead: ::std::os::raw::c_uint,
1772        has_opt: ::std::os::raw::c_uint,
1773        has_rest: ::std::os::raw::c_uint,
1774        has_post: ::std::os::raw::c_uint,
1775        has_kw: ::std::os::raw::c_uint,
1776        has_kwrest: ::std::os::raw::c_uint,
1777        has_block: ::std::os::raw::c_uint,
1778        ambiguous_param0: ::std::os::raw::c_uint,
1779        accepts_no_kwarg: ::std::os::raw::c_uint,
1780        ruby2_keywords: ::std::os::raw::c_uint,
1781    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
1782        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
1783        __bindgen_bitfield_unit.set(0usize, 1u8, {
1784            let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1785            has_lead as u64
1786        });
1787        __bindgen_bitfield_unit.set(1usize, 1u8, {
1788            let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1789            has_opt as u64
1790        });
1791        __bindgen_bitfield_unit.set(2usize, 1u8, {
1792            let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1793            has_rest as u64
1794        });
1795        __bindgen_bitfield_unit.set(3usize, 1u8, {
1796            let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1797            has_post as u64
1798        });
1799        __bindgen_bitfield_unit.set(4usize, 1u8, {
1800            let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1801            has_kw as u64
1802        });
1803        __bindgen_bitfield_unit.set(5usize, 1u8, {
1804            let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1805            has_kwrest as u64
1806        });
1807        __bindgen_bitfield_unit.set(6usize, 1u8, {
1808            let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1809            has_block as u64
1810        });
1811        __bindgen_bitfield_unit.set(7usize, 1u8, {
1812            let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
1813            ambiguous_param0 as u64
1814        });
1815        __bindgen_bitfield_unit.set(8usize, 1u8, {
1816            let accepts_no_kwarg: u32 = unsafe { ::std::mem::transmute(accepts_no_kwarg) };
1817            accepts_no_kwarg as u64
1818        });
1819        __bindgen_bitfield_unit.set(9usize, 1u8, {
1820            let ruby2_keywords: u32 = unsafe { ::std::mem::transmute(ruby2_keywords) };
1821            ruby2_keywords as u64
1822        });
1823        __bindgen_bitfield_unit
1824    }
1825}
1826#[repr(C)]
1827#[derive(Debug, Copy, Clone)]
1828pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
1829    pub num: ::std::os::raw::c_int,
1830    pub required_num: ::std::os::raw::c_int,
1831    pub bits_start: ::std::os::raw::c_int,
1832    pub rest_start: ::std::os::raw::c_int,
1833    pub table: *const ID,
1834    pub default_values: *mut VALUE,
1835}
1836#[repr(C)]
1837#[derive(Debug, Copy, Clone)]
1838pub struct rb_iseq_constant_body_iseq_insn_info {
1839    pub body: *const iseq_insn_info_entry,
1840    pub positions: *mut ::std::os::raw::c_uint,
1841    pub size: ::std::os::raw::c_uint,
1842    pub succ_index_table: *mut succ_index_table,
1843}
1844#[repr(C)]
1845#[derive(Debug, Copy, Clone)]
1846pub struct rb_iseq_constant_body__bindgen_ty_2 {
1847    pub flip_count: rb_snum_t,
1848    pub script_lines: VALUE,
1849    pub coverage: VALUE,
1850    pub pc2branchindex: VALUE,
1851    pub original_iseq: *mut VALUE,
1852}
1853#[repr(C)]
1854#[derive(Copy, Clone)]
1855pub union rb_iseq_constant_body__bindgen_ty_3 {
1856    pub list: *mut iseq_bits_t,
1857    pub single: iseq_bits_t,
1858}
1859impl ::std::fmt::Debug for rb_iseq_constant_body__bindgen_ty_3 {
1860    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1861        write!(f, "rb_iseq_constant_body__bindgen_ty_3 {{ union }}")
1862    }
1863}
1864impl ::std::fmt::Debug for rb_iseq_constant_body {
1865    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1866        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)
1867    }
1868}
1869#[repr(C)]
1870#[derive(Copy, Clone)]
1871pub struct rb_iseq_struct {
1872    pub flags: VALUE,
1873    pub wrapper: VALUE,
1874    pub body: *mut rb_iseq_constant_body,
1875    pub aux: rb_iseq_struct__bindgen_ty_1,
1876}
1877#[repr(C)]
1878#[derive(Copy, Clone)]
1879pub union rb_iseq_struct__bindgen_ty_1 {
1880    pub compile_data: *mut iseq_compile_data,
1881    pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
1882    pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
1883}
1884#[repr(C)]
1885#[derive(Debug, Copy, Clone)]
1886pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
1887    pub obj: VALUE,
1888    pub index: ::std::os::raw::c_int,
1889}
1890#[repr(C)]
1891#[derive(Debug, Copy, Clone)]
1892pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
1893    pub local_hooks: *mut rb_hook_list_struct,
1894    pub global_trace_events: rb_event_flag_t,
1895}
1896impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
1897    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1898        write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
1899    }
1900}
1901impl ::std::fmt::Debug for rb_iseq_struct {
1902    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1903        write!(
1904            f,
1905            "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
1906            self.flags, self.wrapper, self.body, self.aux
1907        )
1908    }
1909}
1910pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
1911#[repr(C)]
1912#[derive(Debug, Copy, Clone)]
1913pub struct rb_at_exit_list {
1914    pub func: rb_vm_at_exit_func,
1915    pub next: *mut rb_at_exit_list,
1916}
1917#[repr(C)]
1918#[derive(Debug, Copy, Clone)]
1919pub struct rb_objspace {
1920    _unused: [u8; 0],
1921}
1922#[repr(C)]
1923#[derive(Debug, Copy, Clone)]
1924pub struct rb_hook_list_struct {
1925    pub hooks: *mut rb_event_hook_struct,
1926    pub events: rb_event_flag_t,
1927    pub running: ::std::os::raw::c_uint,
1928    pub need_clean: bool,
1929    pub is_local: bool,
1930}
1931pub type rb_hook_list_t = rb_hook_list_struct;
1932#[repr(C)]
1933#[derive(Debug, Copy, Clone)]
1934pub struct rb_builtin_function {
1935    _unused: [u8; 0],
1936}
1937#[repr(C)]
1938#[derive(Copy, Clone)]
1939pub struct rb_vm_struct {
1940    pub self_: VALUE,
1941    pub ractor: rb_vm_struct__bindgen_ty_1,
1942    pub main_altstack: *mut ::std::os::raw::c_void,
1943    pub fork_gen: rb_serial_t,
1944    pub waiting_fds: ccan_list_head,
1945    pub ubf_async_safe: ::std::os::raw::c_int,
1946    pub _bitfield_align_1: [u8; 0],
1947    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1948    pub mark_object_ary: VALUE,
1949    pub special_exceptions: [VALUE; 5usize],
1950    pub top_self: VALUE,
1951    pub load_path: VALUE,
1952    pub load_path_snapshot: VALUE,
1953    pub load_path_check_cache: VALUE,
1954    pub expanded_load_path: VALUE,
1955    pub loaded_features: VALUE,
1956    pub loaded_features_snapshot: VALUE,
1957    pub loaded_features_realpaths: VALUE,
1958    pub loaded_features_realpath_map: VALUE,
1959    pub loaded_features_index: *mut st_table,
1960    pub loading_table: *mut st_table,
1961    pub static_ext_inits: *mut st_table,
1962    pub trap_list: rb_vm_struct__bindgen_ty_2,
1963    pub ensure_rollback_table: *mut st_table,
1964    pub postponed_job_queue: *mut rb_postponed_job_queue,
1965    pub src_encoding_index: ::std::os::raw::c_int,
1966    pub workqueue: ccan_list_head,
1967    pub workqueue_lock: rb_nativethread_lock_t,
1968    pub orig_progname: VALUE,
1969    pub progname: VALUE,
1970    pub coverages: VALUE,
1971    pub me2counter: VALUE,
1972    pub coverage_mode: ::std::os::raw::c_int,
1973    pub defined_module_hash: *mut st_table,
1974    pub objspace: *mut rb_objspace,
1975    pub at_exit: *mut rb_at_exit_list,
1976    pub frozen_strings: *mut st_table,
1977    pub builtin_function_table: *const rb_builtin_function,
1978    pub builtin_inline_index: ::std::os::raw::c_int,
1979    pub ci_table: *mut st_table,
1980    pub negative_cme_table: *mut rb_id_table,
1981    pub overloaded_cme_table: *mut st_table,
1982    pub constant_cache: *mut rb_id_table,
1983    pub inserting_constant_cache_id: ID,
1984    pub global_cc_cache_table: [*const rb_callcache; 1023usize],
1985    pub default_params: rb_vm_struct__bindgen_ty_3,
1986}
1987#[repr(C)]
1988#[derive(Copy, Clone)]
1989pub struct rb_vm_struct__bindgen_ty_1 {
1990    pub set: ccan_list_head,
1991    pub cnt: ::std::os::raw::c_uint,
1992    pub blocking_cnt: ::std::os::raw::c_uint,
1993    pub main_ractor: *mut rb_ractor_struct,
1994    pub main_thread: *mut rb_thread_struct,
1995    pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
1996    pub sched: rb_vm_struct__bindgen_ty_1__bindgen_ty_2,
1997}
1998#[repr(C)]
1999#[derive(Copy, Clone)]
2000pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2001    pub lock: rb_nativethread_lock_t,
2002    pub lock_owner: *mut rb_ractor_struct,
2003    pub lock_rec: ::std::os::raw::c_uint,
2004    pub terminate_cond: rb_nativethread_cond_t,
2005    pub terminate_waiting: bool,
2006}
2007impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2008    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2009        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)
2010    }
2011}
2012#[repr(C)]
2013#[derive(Copy, Clone)]
2014pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2015    pub lock: rb_nativethread_lock_t,
2016    pub lock_owner: *mut rb_ractor_struct,
2017    pub locked: bool,
2018    pub cond: rb_nativethread_cond_t,
2019    pub snt_cnt: ::std::os::raw::c_uint,
2020    pub dnt_cnt: ::std::os::raw::c_uint,
2021    pub running_cnt: ::std::os::raw::c_uint,
2022    pub max_cpu: ::std::os::raw::c_uint,
2023    pub grq: ccan_list_head,
2024    pub grq_cnt: ::std::os::raw::c_uint,
2025    pub running_threads: ccan_list_head,
2026    pub timeslice_threads: ccan_list_head,
2027    pub zombie_threads: ccan_list_head,
2028    pub timeslice_wait_inf: bool,
2029    pub barrier_complete_cond: rb_nativethread_cond_t,
2030    pub barrier_release_cond: rb_nativethread_cond_t,
2031    pub barrier_waiting: bool,
2032    pub barrier_waiting_cnt: ::std::os::raw::c_uint,
2033    pub barrier_serial: ::std::os::raw::c_uint,
2034}
2035impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2036    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2037        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)
2038    }
2039}
2040impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2041    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2042        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)
2043    }
2044}
2045#[repr(C)]
2046#[derive(Debug, Copy, Clone)]
2047pub struct rb_vm_struct__bindgen_ty_2 {
2048    pub cmd: [VALUE; 65usize],
2049}
2050#[repr(C)]
2051#[derive(Debug, Copy, Clone)]
2052pub struct rb_vm_struct__bindgen_ty_3 {
2053    pub thread_vm_stack_size: usize,
2054    pub thread_machine_stack_size: usize,
2055    pub fiber_vm_stack_size: usize,
2056    pub fiber_machine_stack_size: usize,
2057}
2058impl ::std::fmt::Debug for rb_vm_struct {
2059    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2060        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)
2061    }
2062}
2063impl rb_vm_struct {
2064    #[inline]
2065    pub fn running(&self) -> ::std::os::raw::c_uint {
2066        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2067    }
2068    #[inline]
2069    pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2070        unsafe {
2071            let val: u32 = ::std::mem::transmute(val);
2072            self._bitfield_1.set(0usize, 1u8, val as u64)
2073        }
2074    }
2075    #[inline]
2076    pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2077        unsafe {
2078            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2079                ::std::ptr::addr_of!((*this)._bitfield_1),
2080                0usize,
2081                1u8,
2082            ) as u32)
2083        }
2084    }
2085    #[inline]
2086    pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2087        unsafe {
2088            let val: u32 = ::std::mem::transmute(val);
2089            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2090                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2091                0usize,
2092                1u8,
2093                val as u64,
2094            )
2095        }
2096    }
2097    #[inline]
2098    pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2099        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2100    }
2101    #[inline]
2102    pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2103        unsafe {
2104            let val: u32 = ::std::mem::transmute(val);
2105            self._bitfield_1.set(1usize, 1u8, val as u64)
2106        }
2107    }
2108    #[inline]
2109    pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2110        unsafe {
2111            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2112                ::std::ptr::addr_of!((*this)._bitfield_1),
2113                1usize,
2114                1u8,
2115            ) as u32)
2116        }
2117    }
2118    #[inline]
2119    pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2120        unsafe {
2121            let val: u32 = ::std::mem::transmute(val);
2122            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2123                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2124                1usize,
2125                1u8,
2126                val as u64,
2127            )
2128        }
2129    }
2130    #[inline]
2131    pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2132        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2133    }
2134    #[inline]
2135    pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2136        unsafe {
2137            let val: u32 = ::std::mem::transmute(val);
2138            self._bitfield_1.set(2usize, 1u8, val as u64)
2139        }
2140    }
2141    #[inline]
2142    pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2143        unsafe {
2144            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2145                ::std::ptr::addr_of!((*this)._bitfield_1),
2146                2usize,
2147                1u8,
2148            ) as u32)
2149        }
2150    }
2151    #[inline]
2152    pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2153        unsafe {
2154            let val: u32 = ::std::mem::transmute(val);
2155            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2156                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2157                2usize,
2158                1u8,
2159                val as u64,
2160            )
2161        }
2162    }
2163    #[inline]
2164    pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2165        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2166    }
2167    #[inline]
2168    pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2169        unsafe {
2170            let val: u32 = ::std::mem::transmute(val);
2171            self._bitfield_1.set(3usize, 1u8, val as u64)
2172        }
2173    }
2174    #[inline]
2175    pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2176        unsafe {
2177            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2178                ::std::ptr::addr_of!((*this)._bitfield_1),
2179                3usize,
2180                1u8,
2181            ) as u32)
2182        }
2183    }
2184    #[inline]
2185    pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2186        unsafe {
2187            let val: u32 = ::std::mem::transmute(val);
2188            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2189                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2190                3usize,
2191                1u8,
2192                val as u64,
2193            )
2194        }
2195    }
2196    #[inline]
2197    pub fn new_bitfield_1(
2198        running: ::std::os::raw::c_uint,
2199        thread_abort_on_exception: ::std::os::raw::c_uint,
2200        thread_report_on_exception: ::std::os::raw::c_uint,
2201        thread_ignore_deadlock: ::std::os::raw::c_uint,
2202    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2203        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2204        __bindgen_bitfield_unit.set(0usize, 1u8, {
2205            let running: u32 = unsafe { ::std::mem::transmute(running) };
2206            running as u64
2207        });
2208        __bindgen_bitfield_unit.set(1usize, 1u8, {
2209            let thread_abort_on_exception: u32 =
2210                unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2211            thread_abort_on_exception as u64
2212        });
2213        __bindgen_bitfield_unit.set(2usize, 1u8, {
2214            let thread_report_on_exception: u32 =
2215                unsafe { ::std::mem::transmute(thread_report_on_exception) };
2216            thread_report_on_exception as u64
2217        });
2218        __bindgen_bitfield_unit.set(3usize, 1u8, {
2219            let thread_ignore_deadlock: u32 =
2220                unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2221            thread_ignore_deadlock as u64
2222        });
2223        __bindgen_bitfield_unit
2224    }
2225}
2226pub type rb_vm_t = rb_vm_struct;
2227#[repr(C)]
2228#[derive(Debug, Copy, Clone)]
2229pub struct rb_control_frame_struct {
2230    pub pc: *const VALUE,
2231    pub sp: *mut VALUE,
2232    pub iseq: *const rb_iseq_t,
2233    pub self_: VALUE,
2234    pub ep: *const VALUE,
2235    pub block_code: *const ::std::os::raw::c_void,
2236    pub jit_return: *mut ::std::os::raw::c_void,
2237}
2238pub type rb_control_frame_t = rb_control_frame_struct;
2239pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2240pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2241pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2242pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2243pub type rb_thread_status = ::std::os::raw::c_uint;
2244pub type rb_jmpbuf_t = sigjmp_buf;
2245pub type rb_vm_tag_jmpbuf_t = rb_jmpbuf_t;
2246#[repr(C)]
2247#[derive(Debug, Copy, Clone)]
2248pub struct rb_vm_tag {
2249    pub tag: VALUE,
2250    pub retval: VALUE,
2251    pub buf: rb_vm_tag_jmpbuf_t,
2252    pub prev: *mut rb_vm_tag,
2253    pub state: ruby_tag_type,
2254    pub lock_rec: ::std::os::raw::c_uint,
2255}
2256#[repr(C)]
2257#[derive(Debug, Copy, Clone)]
2258pub struct rb_unblock_callback {
2259    pub func: rb_unblock_function_t,
2260    pub arg: *mut ::std::os::raw::c_void,
2261}
2262#[repr(C)]
2263#[derive(Debug, Copy, Clone)]
2264pub struct rb_mutex_struct {
2265    _unused: [u8; 0],
2266}
2267#[repr(C)]
2268#[derive(Debug, Copy, Clone)]
2269pub struct rb_ensure_entry {
2270    pub marker: VALUE,
2271    pub e_proc: ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>,
2272    pub data2: VALUE,
2273}
2274#[repr(C)]
2275#[derive(Debug, Copy, Clone)]
2276pub struct rb_ensure_list {
2277    pub next: *mut rb_ensure_list,
2278    pub entry: rb_ensure_entry,
2279}
2280pub type rb_ensure_list_t = rb_ensure_list;
2281#[repr(C)]
2282#[derive(Debug, Copy, Clone)]
2283pub struct rb_fiber_struct {
2284    _unused: [u8; 0],
2285}
2286pub type rb_fiber_t = rb_fiber_struct;
2287#[repr(C)]
2288#[derive(Debug, Copy, Clone)]
2289pub struct rb_waiting_list {
2290    pub next: *mut rb_waiting_list,
2291    pub thread: *mut rb_thread_struct,
2292    pub fiber: *mut rb_fiber_struct,
2293}
2294#[repr(C)]
2295#[derive(Debug, Copy, Clone)]
2296pub struct rb_execution_context_struct {
2297    pub vm_stack: *mut VALUE,
2298    pub vm_stack_size: usize,
2299    pub cfp: *mut rb_control_frame_t,
2300    pub tag: *mut rb_vm_tag,
2301    pub interrupt_flag: rb_atomic_t,
2302    pub interrupt_mask: rb_atomic_t,
2303    pub fiber_ptr: *mut rb_fiber_t,
2304    pub thread_ptr: *mut rb_thread_struct,
2305    pub local_storage: *mut rb_id_table,
2306    pub local_storage_recursive_hash: VALUE,
2307    pub local_storage_recursive_hash_for_trace: VALUE,
2308    pub storage: VALUE,
2309    pub root_lep: *const VALUE,
2310    pub root_svar: VALUE,
2311    pub ensure_list: *mut rb_ensure_list_t,
2312    pub trace_arg: *mut rb_trace_arg_struct,
2313    pub errinfo: VALUE,
2314    pub passed_block_handler: VALUE,
2315    pub raised_flag: u8,
2316    pub _bitfield_align_1: [u8; 0],
2317    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2318    pub private_const_reference: VALUE,
2319    pub machine: rb_execution_context_struct__bindgen_ty_1,
2320}
2321#[repr(C)]
2322#[derive(Debug, Copy, Clone)]
2323pub struct rb_execution_context_struct__bindgen_ty_1 {
2324    pub stack_start: *mut VALUE,
2325    pub stack_end: *mut VALUE,
2326    pub stack_maxsize: usize,
2327    pub regs: jmp_buf,
2328}
2329impl rb_execution_context_struct {
2330    #[inline]
2331    pub fn method_missing_reason(&self) -> method_missing_reason {
2332        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
2333    }
2334    #[inline]
2335    pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2336        unsafe {
2337            let val: u32 = ::std::mem::transmute(val);
2338            self._bitfield_1.set(0usize, 8u8, val as u64)
2339        }
2340    }
2341    #[inline]
2342    pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2343        unsafe {
2344            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2345                ::std::ptr::addr_of!((*this)._bitfield_1),
2346                0usize,
2347                8u8,
2348            ) as u32)
2349        }
2350    }
2351    #[inline]
2352    pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2353        unsafe {
2354            let val: u32 = ::std::mem::transmute(val);
2355            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2356                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2357                0usize,
2358                8u8,
2359                val as u64,
2360            )
2361        }
2362    }
2363    #[inline]
2364    pub fn new_bitfield_1(
2365        method_missing_reason: method_missing_reason,
2366    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2367        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2368        __bindgen_bitfield_unit.set(0usize, 8u8, {
2369            let method_missing_reason: u32 =
2370                unsafe { ::std::mem::transmute(method_missing_reason) };
2371            method_missing_reason as u64
2372        });
2373        __bindgen_bitfield_unit
2374    }
2375}
2376pub type rb_execution_context_t = rb_execution_context_struct;
2377#[repr(C)]
2378#[derive(Debug, Copy, Clone)]
2379pub struct rb_ext_config {
2380    pub ractor_safe: bool,
2381}
2382pub type rb_ractor_t = rb_ractor_struct;
2383#[repr(C)]
2384#[derive(Copy, Clone)]
2385pub struct rb_thread_struct {
2386    pub lt_node: ccan_list_node,
2387    pub self_: VALUE,
2388    pub ractor: *mut rb_ractor_t,
2389    pub vm: *mut rb_vm_t,
2390    pub nt: *mut rb_native_thread,
2391    pub ec: *mut rb_execution_context_t,
2392    pub sched: rb_thread_sched_item,
2393    pub serial: rb_atomic_t,
2394    pub last_status: VALUE,
2395    pub calling: *mut rb_calling_info,
2396    pub top_self: VALUE,
2397    pub top_wrapper: VALUE,
2398    pub _bitfield_align_1: [u8; 0],
2399    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2400    pub priority: i8,
2401    pub running_time_us: u32,
2402    pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2403    pub thgroup: VALUE,
2404    pub value: VALUE,
2405    pub pending_interrupt_queue: VALUE,
2406    pub pending_interrupt_mask_stack: VALUE,
2407    pub interrupt_lock: rb_nativethread_lock_t,
2408    pub unblock: rb_unblock_callback,
2409    pub locking_mutex: VALUE,
2410    pub keeping_mutexes: *mut rb_mutex_struct,
2411    pub join_list: *mut rb_waiting_list,
2412    pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2413    pub invoke_type: rb_thread_struct_thread_invoke_type,
2414    pub stat_insn_usage: VALUE,
2415    pub root_fiber: *mut rb_fiber_t,
2416    pub scheduler: VALUE,
2417    pub blocking: ::std::os::raw::c_uint,
2418    pub name: VALUE,
2419    pub specific_storage: *mut *mut ::std::os::raw::c_void,
2420    pub ext_config: rb_ext_config,
2421}
2422#[repr(C)]
2423#[derive(Copy, Clone)]
2424pub union rb_thread_struct__bindgen_ty_1 {
2425    pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2426    pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2427}
2428#[repr(C)]
2429#[derive(Debug, Copy, Clone)]
2430pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2431    pub proc_: VALUE,
2432    pub args: VALUE,
2433    pub kw_splat: ::std::os::raw::c_int,
2434}
2435#[repr(C)]
2436#[derive(Debug, Copy, Clone)]
2437pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2438    pub func:
2439        ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
2440    pub arg: *mut ::std::os::raw::c_void,
2441}
2442impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2443    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2444        write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2445    }
2446}
2447pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
2448    rb_thread_struct_thread_invoke_type = 0;
2449pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
2450    rb_thread_struct_thread_invoke_type = 1;
2451pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
2452    rb_thread_struct_thread_invoke_type = 2;
2453pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
2454    rb_thread_struct_thread_invoke_type = 3;
2455pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
2456impl ::std::fmt::Debug for rb_thread_struct {
2457    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2458        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)
2459    }
2460}
2461impl rb_thread_struct {
2462    #[inline]
2463    pub fn status(&self) -> rb_thread_status {
2464        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
2465    }
2466    #[inline]
2467    pub fn set_status(&mut self, val: rb_thread_status) {
2468        unsafe {
2469            let val: u32 = ::std::mem::transmute(val);
2470            self._bitfield_1.set(0usize, 2u8, val as u64)
2471        }
2472    }
2473    #[inline]
2474    pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2475        unsafe {
2476            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2477                ::std::ptr::addr_of!((*this)._bitfield_1),
2478                0usize,
2479                2u8,
2480            ) as u32)
2481        }
2482    }
2483    #[inline]
2484    pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2485        unsafe {
2486            let val: u32 = ::std::mem::transmute(val);
2487            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2488                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2489                0usize,
2490                2u8,
2491                val as u64,
2492            )
2493        }
2494    }
2495    #[inline]
2496    pub fn has_dedicated_nt(&self) -> ::std::os::raw::c_uint {
2497        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2498    }
2499    #[inline]
2500    pub fn set_has_dedicated_nt(&mut self, val: ::std::os::raw::c_uint) {
2501        unsafe {
2502            let val: u32 = ::std::mem::transmute(val);
2503            self._bitfield_1.set(2usize, 1u8, val as u64)
2504        }
2505    }
2506    #[inline]
2507    pub unsafe fn has_dedicated_nt_raw(this: *const Self) -> ::std::os::raw::c_uint {
2508        unsafe {
2509            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2510                ::std::ptr::addr_of!((*this)._bitfield_1),
2511                2usize,
2512                1u8,
2513            ) as u32)
2514        }
2515    }
2516    #[inline]
2517    pub unsafe fn set_has_dedicated_nt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2518        unsafe {
2519            let val: u32 = ::std::mem::transmute(val);
2520            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2521                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2522                2usize,
2523                1u8,
2524                val as u64,
2525            )
2526        }
2527    }
2528    #[inline]
2529    pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2530        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2531    }
2532    #[inline]
2533    pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2534        unsafe {
2535            let val: u32 = ::std::mem::transmute(val);
2536            self._bitfield_1.set(3usize, 1u8, val as u64)
2537        }
2538    }
2539    #[inline]
2540    pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2541        unsafe {
2542            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2543                ::std::ptr::addr_of!((*this)._bitfield_1),
2544                3usize,
2545                1u8,
2546            ) as u32)
2547        }
2548    }
2549    #[inline]
2550    pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2551        unsafe {
2552            let val: u32 = ::std::mem::transmute(val);
2553            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2554                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2555                3usize,
2556                1u8,
2557                val as u64,
2558            )
2559        }
2560    }
2561    #[inline]
2562    pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2563        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2564    }
2565    #[inline]
2566    pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2567        unsafe {
2568            let val: u32 = ::std::mem::transmute(val);
2569            self._bitfield_1.set(4usize, 1u8, val as u64)
2570        }
2571    }
2572    #[inline]
2573    pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2574        unsafe {
2575            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2576                ::std::ptr::addr_of!((*this)._bitfield_1),
2577                4usize,
2578                1u8,
2579            ) as u32)
2580        }
2581    }
2582    #[inline]
2583    pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2584        unsafe {
2585            let val: u32 = ::std::mem::transmute(val);
2586            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2587                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2588                4usize,
2589                1u8,
2590                val as u64,
2591            )
2592        }
2593    }
2594    #[inline]
2595    pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2596        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2597    }
2598    #[inline]
2599    pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2600        unsafe {
2601            let val: u32 = ::std::mem::transmute(val);
2602            self._bitfield_1.set(5usize, 1u8, val as u64)
2603        }
2604    }
2605    #[inline]
2606    pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2607        unsafe {
2608            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2609                ::std::ptr::addr_of!((*this)._bitfield_1),
2610                5usize,
2611                1u8,
2612            ) as u32)
2613        }
2614    }
2615    #[inline]
2616    pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2617        unsafe {
2618            let val: u32 = ::std::mem::transmute(val);
2619            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2620                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2621                5usize,
2622                1u8,
2623                val as u64,
2624            )
2625        }
2626    }
2627    #[inline]
2628    pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
2629        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
2630    }
2631    #[inline]
2632    pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
2633        unsafe {
2634            let val: u32 = ::std::mem::transmute(val);
2635            self._bitfield_1.set(6usize, 1u8, val as u64)
2636        }
2637    }
2638    #[inline]
2639    pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
2640        unsafe {
2641            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2642                ::std::ptr::addr_of!((*this)._bitfield_1),
2643                6usize,
2644                1u8,
2645            ) as u32)
2646        }
2647    }
2648    #[inline]
2649    pub unsafe fn set_pending_interrupt_queue_checked_raw(
2650        this: *mut Self,
2651        val: ::std::os::raw::c_uint,
2652    ) {
2653        unsafe {
2654            let val: u32 = ::std::mem::transmute(val);
2655            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2656                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2657                6usize,
2658                1u8,
2659                val as u64,
2660            )
2661        }
2662    }
2663    #[inline]
2664    pub fn new_bitfield_1(
2665        status: rb_thread_status,
2666        has_dedicated_nt: ::std::os::raw::c_uint,
2667        to_kill: ::std::os::raw::c_uint,
2668        abort_on_exception: ::std::os::raw::c_uint,
2669        report_on_exception: ::std::os::raw::c_uint,
2670        pending_interrupt_queue_checked: ::std::os::raw::c_uint,
2671    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2672        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2673        __bindgen_bitfield_unit.set(0usize, 2u8, {
2674            let status: u32 = unsafe { ::std::mem::transmute(status) };
2675            status as u64
2676        });
2677        __bindgen_bitfield_unit.set(2usize, 1u8, {
2678            let has_dedicated_nt: u32 = unsafe { ::std::mem::transmute(has_dedicated_nt) };
2679            has_dedicated_nt as u64
2680        });
2681        __bindgen_bitfield_unit.set(3usize, 1u8, {
2682            let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
2683            to_kill as u64
2684        });
2685        __bindgen_bitfield_unit.set(4usize, 1u8, {
2686            let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2687            abort_on_exception as u64
2688        });
2689        __bindgen_bitfield_unit.set(5usize, 1u8, {
2690            let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2691            report_on_exception as u64
2692        });
2693        __bindgen_bitfield_unit.set(6usize, 1u8, {
2694            let pending_interrupt_queue_checked: u32 =
2695                unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
2696            pending_interrupt_queue_checked as u64
2697        });
2698        __bindgen_bitfield_unit
2699    }
2700}
2701pub type rb_thread_t = rb_thread_struct;
2702#[repr(C)]
2703#[derive(Debug, Copy, Clone)]
2704pub struct rb_trace_arg_struct {
2705    pub event: rb_event_flag_t,
2706    pub ec: *mut rb_execution_context_t,
2707    pub cfp: *const rb_control_frame_t,
2708    pub self_: VALUE,
2709    pub id: ID,
2710    pub called_id: ID,
2711    pub klass: VALUE,
2712    pub data: VALUE,
2713    pub klass_solved: ::std::os::raw::c_int,
2714    pub lineno: ::std::os::raw::c_int,
2715    pub path: VALUE,
2716}
2717#[repr(C)]
2718#[derive(Debug, Copy, Clone)]
2719pub struct rb_ractor_pub {
2720    pub self_: VALUE,
2721    pub id: u32,
2722    pub hooks: rb_hook_list_t,
2723}
2724#[repr(C)]
2725#[derive(Debug, Copy, Clone)]
2726pub struct ractor_newobj_size_pool_cache {
2727    pub freelist: *mut RVALUE,
2728    pub using_page: *mut heap_page,
2729}
2730pub type rb_ractor_newobj_size_pool_cache_t = ractor_newobj_size_pool_cache;
2731#[repr(C)]
2732#[derive(Debug, Copy, Clone)]
2733pub struct ractor_newobj_cache {
2734    pub incremental_mark_step_allocated_slots: usize,
2735    pub size_pool_caches: [rb_ractor_newobj_size_pool_cache_t; 5usize],
2736}
2737pub type rb_ractor_newobj_cache_t = ractor_newobj_cache;
2738pub const rb_ractor_basket_type_basket_type_none: rb_ractor_basket_type = 0;
2739pub const rb_ractor_basket_type_basket_type_ref: rb_ractor_basket_type = 1;
2740pub const rb_ractor_basket_type_basket_type_copy: rb_ractor_basket_type = 2;
2741pub const rb_ractor_basket_type_basket_type_move: rb_ractor_basket_type = 3;
2742pub const rb_ractor_basket_type_basket_type_will: rb_ractor_basket_type = 4;
2743pub const rb_ractor_basket_type_basket_type_deleted: rb_ractor_basket_type = 5;
2744pub const rb_ractor_basket_type_basket_type_reserved: rb_ractor_basket_type = 6;
2745pub const rb_ractor_basket_type_basket_type_take_basket: rb_ractor_basket_type = 7;
2746pub const rb_ractor_basket_type_basket_type_yielding: rb_ractor_basket_type = 8;
2747pub type rb_ractor_basket_type = ::std::os::raw::c_uint;
2748#[repr(C)]
2749#[derive(Debug, Copy, Clone)]
2750pub struct rb_ractor_selector_take_config {
2751    pub closed: bool,
2752    pub oneshot: bool,
2753}
2754#[repr(C)]
2755#[derive(Copy, Clone)]
2756pub struct rb_ractor_basket {
2757    pub type_: rb_ractor_basket__bindgen_ty_1,
2758    pub sender: VALUE,
2759    pub p: rb_ractor_basket__bindgen_ty_2,
2760}
2761#[repr(C)]
2762#[derive(Copy, Clone)]
2763pub union rb_ractor_basket__bindgen_ty_1 {
2764    pub e: rb_ractor_basket_type,
2765    pub atomic: rb_atomic_t,
2766}
2767impl ::std::fmt::Debug for rb_ractor_basket__bindgen_ty_1 {
2768    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2769        write!(f, "rb_ractor_basket__bindgen_ty_1 {{ union }}")
2770    }
2771}
2772#[repr(C)]
2773#[derive(Copy, Clone)]
2774pub union rb_ractor_basket__bindgen_ty_2 {
2775    pub send: rb_ractor_basket__bindgen_ty_2__bindgen_ty_1,
2776    pub take: rb_ractor_basket__bindgen_ty_2__bindgen_ty_2,
2777}
2778#[repr(C)]
2779#[derive(Debug, Copy, Clone)]
2780pub struct rb_ractor_basket__bindgen_ty_2__bindgen_ty_1 {
2781    pub v: VALUE,
2782    pub exception: bool,
2783}
2784#[repr(C)]
2785#[derive(Debug, Copy, Clone)]
2786pub struct rb_ractor_basket__bindgen_ty_2__bindgen_ty_2 {
2787    pub basket: *mut rb_ractor_basket,
2788    pub config: *mut rb_ractor_selector_take_config,
2789}
2790impl ::std::fmt::Debug for rb_ractor_basket__bindgen_ty_2 {
2791    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2792        write!(f, "rb_ractor_basket__bindgen_ty_2 {{ union }}")
2793    }
2794}
2795impl ::std::fmt::Debug for rb_ractor_basket {
2796    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2797        write!(
2798            f,
2799            "rb_ractor_basket {{ type: {:?}, sender: {:?}, p: {:?} }}",
2800            self.type_, self.sender, self.p
2801        )
2802    }
2803}
2804#[repr(C)]
2805#[derive(Debug, Copy, Clone)]
2806pub struct rb_ractor_queue {
2807    pub baskets: *mut rb_ractor_basket,
2808    pub start: ::std::os::raw::c_int,
2809    pub cnt: ::std::os::raw::c_int,
2810    pub size: ::std::os::raw::c_int,
2811    pub serial: ::std::os::raw::c_uint,
2812    pub reserved_cnt: ::std::os::raw::c_uint,
2813}
2814pub const rb_ractor_wait_status_wait_none: rb_ractor_wait_status = 0;
2815pub const rb_ractor_wait_status_wait_receiving: rb_ractor_wait_status = 1;
2816pub const rb_ractor_wait_status_wait_taking: rb_ractor_wait_status = 2;
2817pub const rb_ractor_wait_status_wait_yielding: rb_ractor_wait_status = 4;
2818pub const rb_ractor_wait_status_wait_moving: rb_ractor_wait_status = 8;
2819pub type rb_ractor_wait_status = ::std::os::raw::c_uint;
2820pub const rb_ractor_wakeup_status_wakeup_none: rb_ractor_wakeup_status = 0;
2821pub const rb_ractor_wakeup_status_wakeup_by_send: rb_ractor_wakeup_status = 1;
2822pub const rb_ractor_wakeup_status_wakeup_by_yield: rb_ractor_wakeup_status = 2;
2823pub const rb_ractor_wakeup_status_wakeup_by_take: rb_ractor_wakeup_status = 3;
2824pub const rb_ractor_wakeup_status_wakeup_by_close: rb_ractor_wakeup_status = 4;
2825pub const rb_ractor_wakeup_status_wakeup_by_interrupt: rb_ractor_wakeup_status = 5;
2826pub const rb_ractor_wakeup_status_wakeup_by_retry: rb_ractor_wakeup_status = 6;
2827pub type rb_ractor_wakeup_status = ::std::os::raw::c_uint;
2828#[repr(C)]
2829#[derive(Copy, Clone)]
2830pub struct rb_ractor_sync {
2831    pub lock: rb_nativethread_lock_t,
2832    pub incoming_port_closed: bool,
2833    pub outgoing_port_closed: bool,
2834    pub recv_queue: rb_ractor_queue,
2835    pub takers_queue: rb_ractor_queue,
2836    pub will_basket: rb_ractor_basket,
2837    pub wait: rb_ractor_sync_ractor_wait,
2838}
2839#[repr(C)]
2840#[derive(Debug, Copy, Clone)]
2841pub struct rb_ractor_sync_ractor_wait {
2842    pub status: rb_ractor_wait_status,
2843    pub wakeup_status: rb_ractor_wakeup_status,
2844    pub waiting_thread: *mut rb_thread_t,
2845}
2846impl ::std::fmt::Debug for rb_ractor_sync {
2847    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2848        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)
2849    }
2850}
2851pub const ractor_status_ractor_created: ractor_status = 0;
2852pub const ractor_status_ractor_running: ractor_status = 1;
2853pub const ractor_status_ractor_blocking: ractor_status = 2;
2854pub const ractor_status_ractor_terminated: ractor_status = 3;
2855pub type ractor_status = ::std::os::raw::c_uint;
2856#[repr(C)]
2857#[derive(Copy, Clone)]
2858pub struct rb_ractor_struct {
2859    pub pub_: rb_ractor_pub,
2860    pub sync: rb_ractor_sync,
2861    pub receiving_mutex: VALUE,
2862    pub barrier_wait_cond: rb_nativethread_cond_t,
2863    pub threads: rb_ractor_struct__bindgen_ty_1,
2864    pub thgroup_default: VALUE,
2865    pub name: VALUE,
2866    pub loc: VALUE,
2867    pub status_: ractor_status,
2868    pub vmlr_node: ccan_list_node,
2869    pub local_storage: *mut st_table,
2870    pub idkey_local_storage: *mut rb_id_table,
2871    pub r_stdin: VALUE,
2872    pub r_stdout: VALUE,
2873    pub r_stderr: VALUE,
2874    pub verbose: VALUE,
2875    pub debug: VALUE,
2876    pub newobj_cache: rb_ractor_newobj_cache_t,
2877    pub mfd: *mut rb_ractor_struct_gc_mark_func_data_struct,
2878}
2879#[repr(C)]
2880#[derive(Copy, Clone)]
2881pub struct rb_ractor_struct__bindgen_ty_1 {
2882    pub set: ccan_list_head,
2883    pub cnt: ::std::os::raw::c_uint,
2884    pub blocking_cnt: ::std::os::raw::c_uint,
2885    pub sleeper: ::std::os::raw::c_uint,
2886    pub sched: rb_thread_sched,
2887    pub running_ec: *mut rb_execution_context_t,
2888    pub main: *mut rb_thread_t,
2889}
2890impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
2891    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2892        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)
2893    }
2894}
2895#[repr(C)]
2896#[derive(Debug, Copy, Clone)]
2897pub struct rb_ractor_struct_gc_mark_func_data_struct {
2898    pub data: *mut ::std::os::raw::c_void,
2899    pub mark_func:
2900        ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
2901}
2902impl ::std::fmt::Debug for rb_ractor_struct {
2903    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2904        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)
2905    }
2906}
2907pub type attr_index_t = u32;
2908#[repr(C)]
2909#[derive(Debug, Copy, Clone)]
2910pub struct rb_subclass_entry {
2911    pub klass: VALUE,
2912    pub next: *mut rb_subclass_entry,
2913    pub prev: *mut rb_subclass_entry,
2914}
2915#[repr(C)]
2916#[derive(Copy, Clone)]
2917pub struct rb_classext_struct {
2918    pub iv_ptr: *mut VALUE,
2919    pub const_tbl: *mut rb_id_table,
2920    pub callable_m_tbl: *mut rb_id_table,
2921    pub cc_tbl: *mut rb_id_table,
2922    pub cvc_tbl: *mut rb_id_table,
2923    pub superclass_depth: usize,
2924    pub superclasses: *mut VALUE,
2925    pub subclasses: *mut rb_subclass_entry,
2926    pub subclass_entry: *mut rb_subclass_entry,
2927    pub module_subclass_entry: *mut rb_subclass_entry,
2928    pub origin_: VALUE,
2929    pub refined_class: VALUE,
2930    pub as_: rb_classext_struct__bindgen_ty_1,
2931    pub includer: VALUE,
2932    pub max_iv_count: attr_index_t,
2933    pub variation_count: ::std::os::raw::c_uchar,
2934    pub _bitfield_align_1: [u8; 0],
2935    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2936    pub classpath: VALUE,
2937}
2938#[repr(C)]
2939#[derive(Copy, Clone)]
2940pub union rb_classext_struct__bindgen_ty_1 {
2941    pub class: rb_classext_struct__bindgen_ty_1__bindgen_ty_1,
2942    pub singleton_class: rb_classext_struct__bindgen_ty_1__bindgen_ty_2,
2943}
2944#[repr(C)]
2945#[derive(Debug, Copy, Clone)]
2946pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_1 {
2947    pub allocator: rb_alloc_func_t,
2948}
2949#[repr(C)]
2950#[derive(Debug, Copy, Clone)]
2951pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_2 {
2952    pub attached_object: VALUE,
2953}
2954impl ::std::fmt::Debug for rb_classext_struct__bindgen_ty_1 {
2955    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2956        write!(f, "rb_classext_struct__bindgen_ty_1 {{ union }}")
2957    }
2958}
2959impl ::std::fmt::Debug for rb_classext_struct {
2960    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2961        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)
2962    }
2963}
2964impl rb_classext_struct {
2965    #[inline]
2966    pub fn permanent_classpath(&self) -> bool {
2967        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
2968    }
2969    #[inline]
2970    pub fn set_permanent_classpath(&mut self, val: bool) {
2971        unsafe {
2972            let val: u8 = ::std::mem::transmute(val);
2973            self._bitfield_1.set(0usize, 1u8, val as u64)
2974        }
2975    }
2976    #[inline]
2977    pub unsafe fn permanent_classpath_raw(this: *const Self) -> bool {
2978        unsafe {
2979            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2980                ::std::ptr::addr_of!((*this)._bitfield_1),
2981                0usize,
2982                1u8,
2983            ) as u8)
2984        }
2985    }
2986    #[inline]
2987    pub unsafe fn set_permanent_classpath_raw(this: *mut Self, val: bool) {
2988        unsafe {
2989            let val: u8 = ::std::mem::transmute(val);
2990            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2991                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2992                0usize,
2993                1u8,
2994                val as u64,
2995            )
2996        }
2997    }
2998    #[inline]
2999    pub fn cloned(&self) -> bool {
3000        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) }
3001    }
3002    #[inline]
3003    pub fn set_cloned(&mut self, val: bool) {
3004        unsafe {
3005            let val: u8 = ::std::mem::transmute(val);
3006            self._bitfield_1.set(1usize, 1u8, val as u64)
3007        }
3008    }
3009    #[inline]
3010    pub unsafe fn cloned_raw(this: *const Self) -> bool {
3011        unsafe {
3012            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
3013                ::std::ptr::addr_of!((*this)._bitfield_1),
3014                1usize,
3015                1u8,
3016            ) as u8)
3017        }
3018    }
3019    #[inline]
3020    pub unsafe fn set_cloned_raw(this: *mut Self, val: bool) {
3021        unsafe {
3022            let val: u8 = ::std::mem::transmute(val);
3023            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
3024                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3025                1usize,
3026                1u8,
3027                val as u64,
3028            )
3029        }
3030    }
3031    #[inline]
3032    pub fn new_bitfield_1(
3033        permanent_classpath: bool,
3034        cloned: bool,
3035    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
3036        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
3037        __bindgen_bitfield_unit.set(0usize, 1u8, {
3038            let permanent_classpath: u8 = unsafe { ::std::mem::transmute(permanent_classpath) };
3039            permanent_classpath as u64
3040        });
3041        __bindgen_bitfield_unit.set(1usize, 1u8, {
3042            let cloned: u8 = unsafe { ::std::mem::transmute(cloned) };
3043            cloned as u64
3044        });
3045        __bindgen_bitfield_unit
3046    }
3047}
3048pub type rb_classext_t = rb_classext_struct;
3049#[repr(C)]
3050#[derive(Debug, Copy, Clone)]
3051pub struct RClass {
3052    pub basic: RBasic,
3053    pub super_: VALUE,
3054    pub m_tbl: *mut rb_id_table,
3055}
3056#[repr(C)]
3057#[derive(Copy, Clone)]
3058pub struct RClass_and_rb_classext_t {
3059    pub rclass: RClass,
3060    pub classext: rb_classext_t,
3061}
3062impl ::std::fmt::Debug for RClass_and_rb_classext_t {
3063    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3064        write!(
3065            f,
3066            "RClass_and_rb_classext_t {{ rclass: {:?}, classext: {:?} }}",
3067            self.rclass, self.classext
3068        )
3069    }
3070}
3071#[repr(C)]
3072#[derive(Debug, Copy, Clone)]
3073pub struct iseq_compile_data {
3074    pub err_info: VALUE,
3075    pub catch_table_ary: VALUE,
3076    pub start_label: *mut iseq_label_data,
3077    pub end_label: *mut iseq_label_data,
3078    pub redo_label: *mut iseq_label_data,
3079    pub current_block: *const rb_iseq_t,
3080    pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
3081    pub node: iseq_compile_data__bindgen_ty_1,
3082    pub insn: iseq_compile_data__bindgen_ty_2,
3083    pub in_rescue: bool,
3084    pub in_masgn: bool,
3085    pub loopval_popped: ::std::os::raw::c_int,
3086    pub last_line: ::std::os::raw::c_int,
3087    pub label_no: ::std::os::raw::c_int,
3088    pub node_level: ::std::os::raw::c_int,
3089    pub isolated_depth: ::std::os::raw::c_int,
3090    pub ci_index: ::std::os::raw::c_uint,
3091    pub ic_index: ::std::os::raw::c_uint,
3092    pub option: *const rb_compile_option_t,
3093    pub ivar_cache_table: *mut rb_id_table,
3094    pub builtin_function_table: *const rb_builtin_function,
3095    pub root_node: *const NODE,
3096    pub catch_except_p: bool,
3097}
3098#[repr(C)]
3099#[derive(Debug, Copy, Clone)]
3100pub struct iseq_compile_data__bindgen_ty_1 {
3101    pub storage_head: *mut iseq_compile_data_storage,
3102    pub storage_current: *mut iseq_compile_data_storage,
3103}
3104#[repr(C)]
3105#[derive(Debug, Copy, Clone)]
3106pub struct iseq_compile_data__bindgen_ty_2 {
3107    pub storage_head: *mut iseq_compile_data_storage,
3108    pub storage_current: *mut iseq_compile_data_storage,
3109}
3110#[repr(C)]
3111#[derive(Debug, Copy, Clone)]
3112pub struct rb_compile_option_struct {
3113    pub _bitfield_align_1: [u8; 0],
3114    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
3115    pub debug_level: ::std::os::raw::c_int,
3116}
3117impl rb_compile_option_struct {
3118    #[inline]
3119    pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
3120        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3121    }
3122    #[inline]
3123    pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
3124        unsafe {
3125            let val: u32 = ::std::mem::transmute(val);
3126            self._bitfield_1.set(0usize, 1u8, val as u64)
3127        }
3128    }
3129    #[inline]
3130    pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
3131        unsafe {
3132            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3133                ::std::ptr::addr_of!((*this)._bitfield_1),
3134                0usize,
3135                1u8,
3136            ) as u32)
3137        }
3138    }
3139    #[inline]
3140    pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3141        unsafe {
3142            let val: u32 = ::std::mem::transmute(val);
3143            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3144                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3145                0usize,
3146                1u8,
3147                val as u64,
3148            )
3149        }
3150    }
3151    #[inline]
3152    pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
3153        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3154    }
3155    #[inline]
3156    pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
3157        unsafe {
3158            let val: u32 = ::std::mem::transmute(val);
3159            self._bitfield_1.set(1usize, 1u8, val as u64)
3160        }
3161    }
3162    #[inline]
3163    pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3164        unsafe {
3165            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3166                ::std::ptr::addr_of!((*this)._bitfield_1),
3167                1usize,
3168                1u8,
3169            ) as u32)
3170        }
3171    }
3172    #[inline]
3173    pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3174        unsafe {
3175            let val: u32 = ::std::mem::transmute(val);
3176            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3177                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3178                1usize,
3179                1u8,
3180                val as u64,
3181            )
3182        }
3183    }
3184    #[inline]
3185    pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3186        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3187    }
3188    #[inline]
3189    pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3190        unsafe {
3191            let val: u32 = ::std::mem::transmute(val);
3192            self._bitfield_1.set(2usize, 1u8, val as u64)
3193        }
3194    }
3195    #[inline]
3196    pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3197        unsafe {
3198            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3199                ::std::ptr::addr_of!((*this)._bitfield_1),
3200                2usize,
3201                1u8,
3202            ) as u32)
3203        }
3204    }
3205    #[inline]
3206    pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3207        unsafe {
3208            let val: u32 = ::std::mem::transmute(val);
3209            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3210                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3211                2usize,
3212                1u8,
3213                val as u64,
3214            )
3215        }
3216    }
3217    #[inline]
3218    pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3219        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3220    }
3221    #[inline]
3222    pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3223        unsafe {
3224            let val: u32 = ::std::mem::transmute(val);
3225            self._bitfield_1.set(3usize, 1u8, val as u64)
3226        }
3227    }
3228    #[inline]
3229    pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3230        unsafe {
3231            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3232                ::std::ptr::addr_of!((*this)._bitfield_1),
3233                3usize,
3234                1u8,
3235            ) as u32)
3236        }
3237    }
3238    #[inline]
3239    pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3240        unsafe {
3241            let val: u32 = ::std::mem::transmute(val);
3242            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3243                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3244                3usize,
3245                1u8,
3246                val as u64,
3247            )
3248        }
3249    }
3250    #[inline]
3251    pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3252        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3253    }
3254    #[inline]
3255    pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3256        unsafe {
3257            let val: u32 = ::std::mem::transmute(val);
3258            self._bitfield_1.set(4usize, 1u8, val as u64)
3259        }
3260    }
3261    #[inline]
3262    pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3263        unsafe {
3264            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3265                ::std::ptr::addr_of!((*this)._bitfield_1),
3266                4usize,
3267                1u8,
3268            ) as u32)
3269        }
3270    }
3271    #[inline]
3272    pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3273        unsafe {
3274            let val: u32 = ::std::mem::transmute(val);
3275            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3276                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3277                4usize,
3278                1u8,
3279                val as u64,
3280            )
3281        }
3282    }
3283    #[inline]
3284    pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3285        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3286    }
3287    #[inline]
3288    pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3289        unsafe {
3290            let val: u32 = ::std::mem::transmute(val);
3291            self._bitfield_1.set(5usize, 1u8, val as u64)
3292        }
3293    }
3294    #[inline]
3295    pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3296        unsafe {
3297            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3298                ::std::ptr::addr_of!((*this)._bitfield_1),
3299                5usize,
3300                1u8,
3301            ) as u32)
3302        }
3303    }
3304    #[inline]
3305    pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3306        unsafe {
3307            let val: u32 = ::std::mem::transmute(val);
3308            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3309                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3310                5usize,
3311                1u8,
3312                val as u64,
3313            )
3314        }
3315    }
3316    #[inline]
3317    pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3318        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
3319    }
3320    #[inline]
3321    pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3322        unsafe {
3323            let val: u32 = ::std::mem::transmute(val);
3324            self._bitfield_1.set(6usize, 1u8, val as u64)
3325        }
3326    }
3327    #[inline]
3328    pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3329        unsafe {
3330            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3331                ::std::ptr::addr_of!((*this)._bitfield_1),
3332                6usize,
3333                1u8,
3334            ) as u32)
3335        }
3336    }
3337    #[inline]
3338    pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3339        unsafe {
3340            let val: u32 = ::std::mem::transmute(val);
3341            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3342                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3343                6usize,
3344                1u8,
3345                val as u64,
3346            )
3347        }
3348    }
3349    #[inline]
3350    pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3351        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
3352    }
3353    #[inline]
3354    pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3355        unsafe {
3356            let val: u32 = ::std::mem::transmute(val);
3357            self._bitfield_1.set(7usize, 1u8, val as u64)
3358        }
3359    }
3360    #[inline]
3361    pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3362        unsafe {
3363            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3364                ::std::ptr::addr_of!((*this)._bitfield_1),
3365                7usize,
3366                1u8,
3367            ) as u32)
3368        }
3369    }
3370    #[inline]
3371    pub unsafe fn set_debug_frozen_string_literal_raw(
3372        this: *mut Self,
3373        val: ::std::os::raw::c_uint,
3374    ) {
3375        unsafe {
3376            let val: u32 = ::std::mem::transmute(val);
3377            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3378                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3379                7usize,
3380                1u8,
3381                val as u64,
3382            )
3383        }
3384    }
3385    #[inline]
3386    pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3387        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
3388    }
3389    #[inline]
3390    pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3391        unsafe {
3392            let val: u32 = ::std::mem::transmute(val);
3393            self._bitfield_1.set(8usize, 1u8, val as u64)
3394        }
3395    }
3396    #[inline]
3397    pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3398        unsafe {
3399            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3400                ::std::ptr::addr_of!((*this)._bitfield_1),
3401                8usize,
3402                1u8,
3403            ) as u32)
3404        }
3405    }
3406    #[inline]
3407    pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3408        unsafe {
3409            let val: u32 = ::std::mem::transmute(val);
3410            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3411                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3412                8usize,
3413                1u8,
3414                val as u64,
3415            )
3416        }
3417    }
3418    #[inline]
3419    pub fn new_bitfield_1(
3420        inline_const_cache: ::std::os::raw::c_uint,
3421        peephole_optimization: ::std::os::raw::c_uint,
3422        tailcall_optimization: ::std::os::raw::c_uint,
3423        specialized_instruction: ::std::os::raw::c_uint,
3424        operands_unification: ::std::os::raw::c_uint,
3425        instructions_unification: ::std::os::raw::c_uint,
3426        frozen_string_literal: ::std::os::raw::c_uint,
3427        debug_frozen_string_literal: ::std::os::raw::c_uint,
3428        coverage_enabled: ::std::os::raw::c_uint,
3429    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3430        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3431        __bindgen_bitfield_unit.set(0usize, 1u8, {
3432            let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3433            inline_const_cache as u64
3434        });
3435        __bindgen_bitfield_unit.set(1usize, 1u8, {
3436            let peephole_optimization: u32 =
3437                unsafe { ::std::mem::transmute(peephole_optimization) };
3438            peephole_optimization as u64
3439        });
3440        __bindgen_bitfield_unit.set(2usize, 1u8, {
3441            let tailcall_optimization: u32 =
3442                unsafe { ::std::mem::transmute(tailcall_optimization) };
3443            tailcall_optimization as u64
3444        });
3445        __bindgen_bitfield_unit.set(3usize, 1u8, {
3446            let specialized_instruction: u32 =
3447                unsafe { ::std::mem::transmute(specialized_instruction) };
3448            specialized_instruction as u64
3449        });
3450        __bindgen_bitfield_unit.set(4usize, 1u8, {
3451            let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3452            operands_unification as u64
3453        });
3454        __bindgen_bitfield_unit.set(5usize, 1u8, {
3455            let instructions_unification: u32 =
3456                unsafe { ::std::mem::transmute(instructions_unification) };
3457            instructions_unification as u64
3458        });
3459        __bindgen_bitfield_unit.set(6usize, 1u8, {
3460            let frozen_string_literal: u32 =
3461                unsafe { ::std::mem::transmute(frozen_string_literal) };
3462            frozen_string_literal as u64
3463        });
3464        __bindgen_bitfield_unit.set(7usize, 1u8, {
3465            let debug_frozen_string_literal: u32 =
3466                unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3467            debug_frozen_string_literal as u64
3468        });
3469        __bindgen_bitfield_unit.set(8usize, 1u8, {
3470            let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3471            coverage_enabled as u64
3472        });
3473        __bindgen_bitfield_unit
3474    }
3475}
3476#[repr(C)]
3477#[derive(Debug, Copy, Clone)]
3478pub struct iseq_insn_info_entry {
3479    pub line_no: ::std::os::raw::c_int,
3480    pub node_id: ::std::os::raw::c_int,
3481    pub events: rb_event_flag_t,
3482}
3483pub const rb_catch_type_CATCH_TYPE_RESCUE: rb_catch_type = 3;
3484pub const rb_catch_type_CATCH_TYPE_ENSURE: rb_catch_type = 5;
3485pub const rb_catch_type_CATCH_TYPE_RETRY: rb_catch_type = 7;
3486pub const rb_catch_type_CATCH_TYPE_BREAK: rb_catch_type = 9;
3487pub const rb_catch_type_CATCH_TYPE_REDO: rb_catch_type = 11;
3488pub const rb_catch_type_CATCH_TYPE_NEXT: rb_catch_type = 13;
3489pub type rb_catch_type = ::std::os::raw::c_uint;
3490#[repr(C)]
3491#[derive(Debug, Copy, Clone)]
3492pub struct iseq_catch_table_entry {
3493    pub type_: rb_catch_type,
3494    pub iseq: *mut rb_iseq_t,
3495    pub start: ::std::os::raw::c_uint,
3496    pub end: ::std::os::raw::c_uint,
3497    pub cont: ::std::os::raw::c_uint,
3498    pub sp: ::std::os::raw::c_uint,
3499}
3500#[repr(C, packed)]
3501pub struct iseq_catch_table {
3502    pub size: ::std::os::raw::c_uint,
3503    pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3504}
3505#[repr(C)]
3506#[derive(Debug)]
3507pub struct iseq_compile_data_storage {
3508    pub next: *mut iseq_compile_data_storage,
3509    pub pos: ::std::os::raw::c_uint,
3510    pub size: ::std::os::raw::c_uint,
3511    pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3512}
3513#[repr(C)]
3514#[derive(Debug, Copy, Clone)]
3515pub struct coroutine_context {
3516    pub _address: u8,
3517}
3518#[repr(C)]
3519#[derive(Debug, Copy, Clone)]
3520pub struct rb_call_data {
3521    pub _address: u8,
3522}
3523#[repr(C)]
3524#[derive(Debug, Copy, Clone)]
3525pub struct succ_index_table {
3526    pub _address: u8,
3527}
3528#[repr(C)]
3529#[derive(Debug, Copy, Clone)]
3530pub struct rb_event_hook_struct {
3531    pub _address: u8,
3532}
3533#[repr(C)]
3534#[derive(Debug, Copy, Clone)]
3535pub struct rb_postponed_job_queue {
3536    pub _address: u8,
3537}
3538#[repr(C)]
3539#[derive(Debug, Copy, Clone)]
3540pub struct RVALUE {
3541    pub _address: u8,
3542}
3543#[repr(C)]
3544#[derive(Debug, Copy, Clone)]
3545pub struct heap_page {
3546    pub _address: u8,
3547}
3548#[repr(C)]
3549#[derive(Debug, Copy, Clone)]
3550pub struct iseq_label_data {
3551    pub _address: u8,
3552}
3553#[repr(C)]
3554#[derive(Debug, Copy, Clone)]
3555pub struct iseq_compile_data_ensure_node_stack {
3556    pub _address: u8,
3557}