Skip to main content

rbspy_ruby_structs/
ruby_2_7_6.rs

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