Skip to main content

rbspy_ruby_structs/
ruby_3_3_5.rs

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