Skip to main content

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