rbspy_ruby_structs/
ruby_3_3_0.rs

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