Skip to main content

rbspy_ruby_structs/
ruby_2_4_1.rs

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