Skip to main content

rbspy_ruby_structs/
ruby_3_1_6.rs

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