Skip to main content

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