Skip to main content

rbspy_ruby_structs/
ruby_3_0_4.rs

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