Skip to main content

rbspy_ruby_structs/
ruby_2_5_3.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;
784#[repr(C)]
785#[derive(Debug, Copy, Clone)]
786pub struct rb_code_location_struct {
787    pub lineno: ::std::os::raw::c_int,
788    pub column: ::std::os::raw::c_int,
789}
790pub type rb_code_location_t = rb_code_location_struct;
791#[repr(C)]
792#[derive(Debug, Copy, Clone)]
793pub struct rb_code_range_struct {
794    pub first_loc: rb_code_location_t,
795    pub last_loc: rb_code_location_t,
796}
797pub type rb_code_range_t = rb_code_range_struct;
798pub const ruby_id_types_RUBY_ID_STATIC_SYM: ruby_id_types = 1;
799pub const ruby_id_types_RUBY_ID_LOCAL: ruby_id_types = 0;
800pub const ruby_id_types_RUBY_ID_INSTANCE: ruby_id_types = 2;
801pub const ruby_id_types_RUBY_ID_GLOBAL: ruby_id_types = 6;
802pub const ruby_id_types_RUBY_ID_ATTRSET: ruby_id_types = 8;
803pub const ruby_id_types_RUBY_ID_CONST: ruby_id_types = 10;
804pub const ruby_id_types_RUBY_ID_CLASS: ruby_id_types = 12;
805pub const ruby_id_types_RUBY_ID_JUNK: ruby_id_types = 14;
806pub const ruby_id_types_RUBY_ID_INTERNAL: ruby_id_types = 14;
807pub const ruby_id_types_RUBY_ID_SCOPE_SHIFT: ruby_id_types = 4;
808pub const ruby_id_types_RUBY_ID_SCOPE_MASK: ruby_id_types = 14;
809pub type ruby_id_types = ::std::os::raw::c_uint;
810pub const ruby_method_ids_idDot2: ruby_method_ids = 128;
811pub const ruby_method_ids_idDot3: ruby_method_ids = 129;
812pub const ruby_method_ids_idUPlus: ruby_method_ids = 130;
813pub const ruby_method_ids_idUMinus: ruby_method_ids = 131;
814pub const ruby_method_ids_idPow: ruby_method_ids = 132;
815pub const ruby_method_ids_idCmp: ruby_method_ids = 133;
816pub const ruby_method_ids_idPLUS: ruby_method_ids = 43;
817pub const ruby_method_ids_idMINUS: ruby_method_ids = 45;
818pub const ruby_method_ids_idMULT: ruby_method_ids = 42;
819pub const ruby_method_ids_idDIV: ruby_method_ids = 47;
820pub const ruby_method_ids_idMOD: ruby_method_ids = 37;
821pub const ruby_method_ids_idLTLT: ruby_method_ids = 134;
822pub const ruby_method_ids_idGTGT: ruby_method_ids = 135;
823pub const ruby_method_ids_idLT: ruby_method_ids = 60;
824pub const ruby_method_ids_idLE: ruby_method_ids = 136;
825pub const ruby_method_ids_idGT: ruby_method_ids = 62;
826pub const ruby_method_ids_idGE: ruby_method_ids = 137;
827pub const ruby_method_ids_idEq: ruby_method_ids = 138;
828pub const ruby_method_ids_idEqq: ruby_method_ids = 139;
829pub const ruby_method_ids_idNeq: ruby_method_ids = 140;
830pub const ruby_method_ids_idNot: ruby_method_ids = 33;
831pub const ruby_method_ids_idBackquote: ruby_method_ids = 96;
832pub const ruby_method_ids_idEqTilde: ruby_method_ids = 141;
833pub const ruby_method_ids_idNeqTilde: ruby_method_ids = 142;
834pub const ruby_method_ids_idAREF: ruby_method_ids = 143;
835pub const ruby_method_ids_idASET: ruby_method_ids = 144;
836pub const ruby_method_ids_idCOLON2: ruby_method_ids = 145;
837pub const ruby_method_ids_idANDOP: ruby_method_ids = 146;
838pub const ruby_method_ids_idOROP: ruby_method_ids = 147;
839pub const ruby_method_ids_idANDDOT: ruby_method_ids = 148;
840pub const ruby_method_ids_tPRESERVED_ID_BEGIN: ruby_method_ids = 148;
841pub const ruby_method_ids_idNULL: ruby_method_ids = 149;
842pub const ruby_method_ids_idEmptyP: ruby_method_ids = 150;
843pub const ruby_method_ids_idEqlP: ruby_method_ids = 151;
844pub const ruby_method_ids_idRespond_to: ruby_method_ids = 152;
845pub const ruby_method_ids_idRespond_to_missing: ruby_method_ids = 153;
846pub const ruby_method_ids_idIFUNC: ruby_method_ids = 154;
847pub const ruby_method_ids_idCFUNC: ruby_method_ids = 155;
848pub const ruby_method_ids_id_core_set_method_alias: ruby_method_ids = 156;
849pub const ruby_method_ids_id_core_set_variable_alias: ruby_method_ids = 157;
850pub const ruby_method_ids_id_core_undef_method: ruby_method_ids = 158;
851pub const ruby_method_ids_id_core_define_method: ruby_method_ids = 159;
852pub const ruby_method_ids_id_core_define_singleton_method: ruby_method_ids = 160;
853pub const ruby_method_ids_id_core_set_postexe: ruby_method_ids = 161;
854pub const ruby_method_ids_id_core_hash_from_ary: ruby_method_ids = 162;
855pub const ruby_method_ids_id_core_hash_merge_ary: ruby_method_ids = 163;
856pub const ruby_method_ids_id_core_hash_merge_ptr: ruby_method_ids = 164;
857pub const ruby_method_ids_id_core_hash_merge_kwd: ruby_method_ids = 165;
858pub const ruby_method_ids_id_debug_created_info: ruby_method_ids = 166;
859pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 167;
860pub const ruby_method_ids_tTOKEN_LOCAL_BEGIN: ruby_method_ids = 166;
861pub const ruby_method_ids_tMax: ruby_method_ids = 167;
862pub const ruby_method_ids_tMin: ruby_method_ids = 168;
863pub const ruby_method_ids_tFreeze: ruby_method_ids = 169;
864pub const ruby_method_ids_tInspect: ruby_method_ids = 170;
865pub const ruby_method_ids_tIntern: ruby_method_ids = 171;
866pub const ruby_method_ids_tObject_id: ruby_method_ids = 172;
867pub const ruby_method_ids_tConst_missing: ruby_method_ids = 173;
868pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 174;
869pub const ruby_method_ids_tMethod_added: ruby_method_ids = 175;
870pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 176;
871pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 177;
872pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 178;
873pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 179;
874pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 180;
875pub const ruby_method_ids_tLength: ruby_method_ids = 181;
876pub const ruby_method_ids_tSize: ruby_method_ids = 182;
877pub const ruby_method_ids_tGets: ruby_method_ids = 183;
878pub const ruby_method_ids_tSucc: ruby_method_ids = 184;
879pub const ruby_method_ids_tEach: ruby_method_ids = 185;
880pub const ruby_method_ids_tProc: ruby_method_ids = 186;
881pub const ruby_method_ids_tLambda: ruby_method_ids = 187;
882pub const ruby_method_ids_tSend: ruby_method_ids = 188;
883pub const ruby_method_ids_t__send__: ruby_method_ids = 189;
884pub const ruby_method_ids_t__attached__: ruby_method_ids = 190;
885pub const ruby_method_ids_tInitialize: ruby_method_ids = 191;
886pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 192;
887pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 193;
888pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 194;
889pub const ruby_method_ids_tTo_int: ruby_method_ids = 195;
890pub const ruby_method_ids_tTo_ary: ruby_method_ids = 196;
891pub const ruby_method_ids_tTo_str: ruby_method_ids = 197;
892pub const ruby_method_ids_tTo_sym: ruby_method_ids = 198;
893pub const ruby_method_ids_tTo_hash: ruby_method_ids = 199;
894pub const ruby_method_ids_tTo_proc: ruby_method_ids = 200;
895pub const ruby_method_ids_tTo_io: ruby_method_ids = 201;
896pub const ruby_method_ids_tTo_a: ruby_method_ids = 202;
897pub const ruby_method_ids_tTo_s: ruby_method_ids = 203;
898pub const ruby_method_ids_tTo_i: ruby_method_ids = 204;
899pub const ruby_method_ids_tTo_r: ruby_method_ids = 205;
900pub const ruby_method_ids_tBt: ruby_method_ids = 206;
901pub const ruby_method_ids_tBt_locations: ruby_method_ids = 207;
902pub const ruby_method_ids_tCall: ruby_method_ids = 208;
903pub const ruby_method_ids_tMesg: ruby_method_ids = 209;
904pub const ruby_method_ids_tException: ruby_method_ids = 210;
905pub const ruby_method_ids_tNOT: ruby_method_ids = 211;
906pub const ruby_method_ids_tAND: ruby_method_ids = 212;
907pub const ruby_method_ids_tOR: ruby_method_ids = 213;
908pub const ruby_method_ids_tUScore: ruby_method_ids = 214;
909pub const ruby_method_ids_tTOKEN_LOCAL_END: ruby_method_ids = 215;
910pub const ruby_method_ids_tTOKEN_INSTANCE_BEGIN: ruby_method_ids = 214;
911pub const ruby_method_ids_tTOKEN_INSTANCE_END: ruby_method_ids = 215;
912pub const ruby_method_ids_tTOKEN_GLOBAL_BEGIN: ruby_method_ids = 214;
913pub const ruby_method_ids_tLASTLINE: ruby_method_ids = 215;
914pub const ruby_method_ids_tBACKREF: ruby_method_ids = 216;
915pub const ruby_method_ids_tTOKEN_GLOBAL_END: ruby_method_ids = 217;
916pub const ruby_method_ids_tTOKEN_CONST_BEGIN: ruby_method_ids = 216;
917pub const ruby_method_ids_tTOKEN_CONST_END: ruby_method_ids = 217;
918pub const ruby_method_ids_tTOKEN_CLASS_BEGIN: ruby_method_ids = 216;
919pub const ruby_method_ids_tTOKEN_CLASS_END: ruby_method_ids = 217;
920pub const ruby_method_ids_tTOKEN_ATTRSET_BEGIN: ruby_method_ids = 216;
921pub const ruby_method_ids_tTOKEN_ATTRSET_END: ruby_method_ids = 217;
922pub const ruby_method_ids_tNEXT_ID: ruby_method_ids = 217;
923pub const ruby_method_ids_idMax: ruby_method_ids = 2673;
924pub const ruby_method_ids_idMin: ruby_method_ids = 2689;
925pub const ruby_method_ids_idFreeze: ruby_method_ids = 2705;
926pub const ruby_method_ids_idInspect: ruby_method_ids = 2721;
927pub const ruby_method_ids_idIntern: ruby_method_ids = 2737;
928pub const ruby_method_ids_idObject_id: ruby_method_ids = 2753;
929pub const ruby_method_ids_idConst_missing: ruby_method_ids = 2769;
930pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 2785;
931pub const ruby_method_ids_idMethod_added: ruby_method_ids = 2801;
932pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 2817;
933pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 2833;
934pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 2849;
935pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 2865;
936pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 2881;
937pub const ruby_method_ids_idLength: ruby_method_ids = 2897;
938pub const ruby_method_ids_idSize: ruby_method_ids = 2913;
939pub const ruby_method_ids_idGets: ruby_method_ids = 2929;
940pub const ruby_method_ids_idSucc: ruby_method_ids = 2945;
941pub const ruby_method_ids_idEach: ruby_method_ids = 2961;
942pub const ruby_method_ids_idProc: ruby_method_ids = 2977;
943pub const ruby_method_ids_idLambda: ruby_method_ids = 2993;
944pub const ruby_method_ids_idSend: ruby_method_ids = 3009;
945pub const ruby_method_ids_id__send__: ruby_method_ids = 3025;
946pub const ruby_method_ids_id__attached__: ruby_method_ids = 3041;
947pub const ruby_method_ids_idInitialize: ruby_method_ids = 3057;
948pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 3073;
949pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 3089;
950pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 3105;
951pub const ruby_method_ids_idTo_int: ruby_method_ids = 3121;
952pub const ruby_method_ids_idTo_ary: ruby_method_ids = 3137;
953pub const ruby_method_ids_idTo_str: ruby_method_ids = 3153;
954pub const ruby_method_ids_idTo_sym: ruby_method_ids = 3169;
955pub const ruby_method_ids_idTo_hash: ruby_method_ids = 3185;
956pub const ruby_method_ids_idTo_proc: ruby_method_ids = 3201;
957pub const ruby_method_ids_idTo_io: ruby_method_ids = 3217;
958pub const ruby_method_ids_idTo_a: ruby_method_ids = 3233;
959pub const ruby_method_ids_idTo_s: ruby_method_ids = 3249;
960pub const ruby_method_ids_idTo_i: ruby_method_ids = 3265;
961pub const ruby_method_ids_idTo_r: ruby_method_ids = 3281;
962pub const ruby_method_ids_idBt: ruby_method_ids = 3297;
963pub const ruby_method_ids_idBt_locations: ruby_method_ids = 3313;
964pub const ruby_method_ids_idCall: ruby_method_ids = 3329;
965pub const ruby_method_ids_idMesg: ruby_method_ids = 3345;
966pub const ruby_method_ids_idException: ruby_method_ids = 3361;
967pub const ruby_method_ids_idNOT: ruby_method_ids = 3377;
968pub const ruby_method_ids_idAND: ruby_method_ids = 3393;
969pub const ruby_method_ids_idOR: ruby_method_ids = 3409;
970pub const ruby_method_ids_idUScore: ruby_method_ids = 3425;
971pub const ruby_method_ids_idLASTLINE: ruby_method_ids = 3447;
972pub const ruby_method_ids_idBACKREF: ruby_method_ids = 3463;
973pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 166;
974pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 10;
975pub type ruby_method_ids = ::std::os::raw::c_uint;
976pub type rb_subclass_entry_t = rb_subclass_entry;
977#[repr(C)]
978#[derive(Debug, Copy, Clone)]
979pub struct rb_subclass_entry {
980    pub klass: VALUE,
981    pub next: *mut rb_subclass_entry_t,
982}
983pub type rb_serial_t = ::std::os::raw::c_ulonglong;
984#[repr(C)]
985#[derive(Debug, Copy, Clone)]
986pub struct rb_classext_struct {
987    pub iv_index_tbl: *mut st_table,
988    pub iv_tbl: *mut st_table,
989    pub const_tbl: *mut rb_id_table,
990    pub callable_m_tbl: *mut rb_id_table,
991    pub subclasses: *mut rb_subclass_entry_t,
992    pub parent_subclasses: *mut *mut rb_subclass_entry_t,
993    pub module_subclasses: *mut *mut rb_subclass_entry_t,
994    pub class_serial: rb_serial_t,
995    pub origin_: VALUE,
996    pub refined_class: VALUE,
997    pub allocator: rb_alloc_func_t,
998}
999pub type rb_classext_t = rb_classext_struct;
1000pub const imemo_type_imemo_env: imemo_type = 0;
1001pub const imemo_type_imemo_cref: imemo_type = 1;
1002pub const imemo_type_imemo_svar: imemo_type = 2;
1003pub const imemo_type_imemo_throw_data: imemo_type = 3;
1004pub const imemo_type_imemo_ifunc: imemo_type = 4;
1005pub const imemo_type_imemo_memo: imemo_type = 5;
1006pub const imemo_type_imemo_ment: imemo_type = 6;
1007pub const imemo_type_imemo_iseq: imemo_type = 7;
1008pub const imemo_type_imemo_alloc: imemo_type = 8;
1009pub const imemo_type_imemo_ast: imemo_type = 9;
1010pub const imemo_type_imemo_parser_strterm: imemo_type = 10;
1011pub type imemo_type = ::std::os::raw::c_uint;
1012#[repr(C)]
1013#[derive(Debug, Copy, Clone)]
1014pub struct vm_svar {
1015    pub flags: VALUE,
1016    pub cref_or_me: VALUE,
1017    pub lastline: VALUE,
1018    pub backref: VALUE,
1019    pub others: VALUE,
1020}
1021pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
1022pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
1023pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
1024pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
1025pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
1026pub type rb_method_visibility_t = ::std::os::raw::c_uint;
1027#[repr(C)]
1028#[derive(Debug, Copy, Clone)]
1029pub struct rb_scope_visi_struct {
1030    pub _bindgen_align: [u32; 0],
1031    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1032    pub __bindgen_padding_0: [u8; 3usize],
1033}
1034impl rb_scope_visi_struct {
1035    #[inline]
1036    #[allow(unnecessary_transmutes)]
1037    pub fn method_visi(&self) -> rb_method_visibility_t {
1038        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 3u8>() as u32) }
1039    }
1040    #[inline]
1041    #[allow(unnecessary_transmutes)]
1042    pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
1043        unsafe {
1044            let val: u32 = ::std::mem::transmute(val);
1045            self._bitfield_1.set_const::<0usize, 3u8>(val as u64)
1046        }
1047    }
1048    #[inline]
1049    #[allow(unnecessary_transmutes)]
1050    pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
1051        unsafe {
1052            ::std::mem::transmute(
1053                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 3u8>(
1054                    ::std::ptr::addr_of!((*this)._bitfield_1),
1055                ) as u32,
1056            )
1057        }
1058    }
1059    #[inline]
1060    #[allow(unnecessary_transmutes)]
1061    pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
1062        unsafe {
1063            let val: u32 = ::std::mem::transmute(val);
1064            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 3u8>(
1065                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1066                val as u64,
1067            )
1068        }
1069    }
1070    #[inline]
1071    #[allow(unnecessary_transmutes)]
1072    pub fn module_func(&self) -> ::std::os::raw::c_uint {
1073        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1074    }
1075    #[inline]
1076    #[allow(unnecessary_transmutes)]
1077    pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
1078        unsafe {
1079            let val: u32 = ::std::mem::transmute(val);
1080            self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1081        }
1082    }
1083    #[inline]
1084    #[allow(unnecessary_transmutes)]
1085    pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
1086        unsafe {
1087            ::std::mem::transmute(
1088                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
1089                    ::std::ptr::addr_of!((*this)._bitfield_1),
1090                ) as u32,
1091            )
1092        }
1093    }
1094    #[inline]
1095    #[allow(unnecessary_transmutes)]
1096    pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1097        unsafe {
1098            let val: u32 = ::std::mem::transmute(val);
1099            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
1100                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1101                val as u64,
1102            )
1103        }
1104    }
1105    #[inline]
1106    #[allow(unnecessary_transmutes)]
1107    pub fn new_bitfield_1(
1108        method_visi: rb_method_visibility_t,
1109        module_func: ::std::os::raw::c_uint,
1110    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1111        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1112        __bindgen_bitfield_unit.set_const::<0usize, 3u8>({
1113            let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
1114            method_visi as u64
1115        });
1116        __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
1117            let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
1118            module_func as u64
1119        });
1120        __bindgen_bitfield_unit
1121    }
1122}
1123pub type rb_scope_visibility_t = rb_scope_visi_struct;
1124#[repr(C)]
1125#[derive(Debug, Copy, Clone)]
1126pub struct rb_cref_struct {
1127    pub flags: VALUE,
1128    pub refinements: VALUE,
1129    pub klass: VALUE,
1130    pub next: *mut rb_cref_struct,
1131    pub scope_visi: rb_scope_visibility_t,
1132}
1133pub type rb_cref_t = rb_cref_struct;
1134#[repr(C)]
1135#[derive(Debug, Copy, Clone)]
1136pub struct rb_method_entry_struct {
1137    pub flags: VALUE,
1138    pub defined_class: VALUE,
1139    pub def: *mut rb_method_definition_struct,
1140    pub called_id: ID,
1141    pub owner: VALUE,
1142}
1143#[repr(C)]
1144#[derive(Debug, Copy, Clone)]
1145pub struct rb_callable_method_entry_struct {
1146    pub flags: VALUE,
1147    pub defined_class: VALUE,
1148    pub def: *mut rb_method_definition_struct,
1149    pub called_id: ID,
1150    pub owner: VALUE,
1151}
1152pub type rb_callable_method_entry_t = rb_callable_method_entry_struct;
1153pub type rb_iseq_t = rb_iseq_struct;
1154#[repr(C)]
1155#[derive(Debug, Copy, Clone)]
1156pub struct rb_method_iseq_struct {
1157    pub iseqptr: *const rb_iseq_t,
1158    pub cref: *mut rb_cref_t,
1159}
1160pub type rb_method_iseq_t = rb_method_iseq_struct;
1161#[repr(C)]
1162#[derive(Debug, Copy, Clone)]
1163pub struct rb_method_cfunc_struct {
1164    pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1165    pub invoker: ::std::option::Option<
1166        unsafe extern "C" fn(
1167            func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1168            recv: VALUE,
1169            argc: ::std::os::raw::c_int,
1170            argv: *const VALUE,
1171        ) -> VALUE,
1172    >,
1173    pub argc: ::std::os::raw::c_int,
1174}
1175pub type rb_method_cfunc_t = rb_method_cfunc_struct;
1176#[repr(C)]
1177#[derive(Debug, Copy, Clone)]
1178pub struct rb_method_attr_struct {
1179    pub id: ID,
1180    pub location: VALUE,
1181}
1182pub type rb_method_attr_t = rb_method_attr_struct;
1183#[repr(C)]
1184#[derive(Debug, Copy, Clone)]
1185pub struct rb_method_alias_struct {
1186    pub original_me: *const rb_method_entry_struct,
1187}
1188pub type rb_method_alias_t = rb_method_alias_struct;
1189#[repr(C)]
1190#[derive(Debug, Copy, Clone)]
1191pub struct rb_method_refined_struct {
1192    pub orig_me: *const rb_method_entry_struct,
1193    pub owner: VALUE,
1194}
1195pub type rb_method_refined_t = rb_method_refined_struct;
1196pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND: method_optimized_type = 0;
1197pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL: method_optimized_type = 1;
1198pub const method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX: method_optimized_type = 2;
1199pub type method_optimized_type = ::std::os::raw::c_uint;
1200#[repr(C, packed)]
1201#[derive(Copy, Clone)]
1202pub struct rb_method_definition_struct {
1203    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
1204    pub body: rb_method_definition_struct__bindgen_ty_1,
1205    pub original_id: ID,
1206}
1207#[repr(C)]
1208#[derive(Copy, Clone)]
1209pub union rb_method_definition_struct__bindgen_ty_1 {
1210    pub iseq: rb_method_iseq_t,
1211    pub cfunc: rb_method_cfunc_t,
1212    pub attr: rb_method_attr_t,
1213    pub alias: rb_method_alias_t,
1214    pub refined: rb_method_refined_t,
1215    pub proc_: VALUE,
1216    pub optimize_type: method_optimized_type,
1217}
1218impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
1219    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1220        write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
1221    }
1222}
1223impl rb_method_definition_struct {
1224    #[inline]
1225    #[allow(unnecessary_transmutes)]
1226    pub fn type_(&self) -> ::std::os::raw::c_uint {
1227        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u32) }
1228    }
1229    #[inline]
1230    #[allow(unnecessary_transmutes)]
1231    pub fn set_type(&mut self, val: ::std::os::raw::c_uint) {
1232        unsafe {
1233            let val: u32 = ::std::mem::transmute(val);
1234            self._bitfield_1.set_const::<0usize, 4u8>(val as u64)
1235        }
1236    }
1237    #[inline]
1238    #[allow(unnecessary_transmutes)]
1239    pub unsafe fn type__raw(this: *const Self) -> ::std::os::raw::c_uint {
1240        unsafe {
1241            ::std::mem::transmute(
1242                <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<0usize, 4u8>(
1243                    ::std::ptr::addr_of!((*this)._bitfield_1),
1244                ) as u32,
1245            )
1246        }
1247    }
1248    #[inline]
1249    #[allow(unnecessary_transmutes)]
1250    pub unsafe fn set_type_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1251        unsafe {
1252            let val: u32 = ::std::mem::transmute(val);
1253            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<0usize, 4u8>(
1254                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1255                val as u64,
1256            )
1257        }
1258    }
1259    #[inline]
1260    #[allow(unnecessary_transmutes)]
1261    pub fn alias_count(&self) -> ::std::os::raw::c_int {
1262        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 28u8>() as u32) }
1263    }
1264    #[inline]
1265    #[allow(unnecessary_transmutes)]
1266    pub fn set_alias_count(&mut self, val: ::std::os::raw::c_int) {
1267        unsafe {
1268            let val: u32 = ::std::mem::transmute(val);
1269            self._bitfield_1.set_const::<4usize, 28u8>(val as u64)
1270        }
1271    }
1272    #[inline]
1273    #[allow(unnecessary_transmutes)]
1274    pub unsafe fn alias_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1275        unsafe {
1276            ::std::mem::transmute(
1277                <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<4usize, 28u8>(
1278                    ::std::ptr::addr_of!((*this)._bitfield_1),
1279                ) as u32,
1280            )
1281        }
1282    }
1283    #[inline]
1284    #[allow(unnecessary_transmutes)]
1285    pub unsafe fn set_alias_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1286        unsafe {
1287            let val: u32 = ::std::mem::transmute(val);
1288            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<4usize, 28u8>(
1289                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1290                val as u64,
1291            )
1292        }
1293    }
1294    #[inline]
1295    #[allow(unnecessary_transmutes)]
1296    pub fn complemented_count(&self) -> ::std::os::raw::c_int {
1297        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<32usize, 28u8>() as u32) }
1298    }
1299    #[inline]
1300    #[allow(unnecessary_transmutes)]
1301    pub fn set_complemented_count(&mut self, val: ::std::os::raw::c_int) {
1302        unsafe {
1303            let val: u32 = ::std::mem::transmute(val);
1304            self._bitfield_1.set_const::<32usize, 28u8>(val as u64)
1305        }
1306    }
1307    #[inline]
1308    #[allow(unnecessary_transmutes)]
1309    pub unsafe fn complemented_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1310        unsafe {
1311            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<
1312                32usize,
1313                28u8,
1314            >(::std::ptr::addr_of!((*this)._bitfield_1))
1315                as u32)
1316        }
1317    }
1318    #[inline]
1319    #[allow(unnecessary_transmutes)]
1320    pub unsafe fn set_complemented_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1321        unsafe {
1322            let val: u32 = ::std::mem::transmute(val);
1323            <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<32usize, 28u8>(
1324                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1325                val as u64,
1326            )
1327        }
1328    }
1329    #[inline]
1330    #[allow(unnecessary_transmutes)]
1331    pub fn new_bitfield_1(
1332        type_: ::std::os::raw::c_uint,
1333        alias_count: ::std::os::raw::c_int,
1334        complemented_count: ::std::os::raw::c_int,
1335    ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
1336        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
1337        __bindgen_bitfield_unit.set_const::<0usize, 4u8>({
1338            let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1339            type_ as u64
1340        });
1341        __bindgen_bitfield_unit.set_const::<4usize, 28u8>({
1342            let alias_count: u32 = unsafe { ::std::mem::transmute(alias_count) };
1343            alias_count as u64
1344        });
1345        __bindgen_bitfield_unit.set_const::<32usize, 28u8>({
1346            let complemented_count: u32 = unsafe { ::std::mem::transmute(complemented_count) };
1347            complemented_count as u64
1348        });
1349        __bindgen_bitfield_unit
1350    }
1351}
1352pub type rb_atomic_t = ::std::os::raw::c_uint;
1353#[repr(C)]
1354#[derive(Debug, Copy, Clone)]
1355pub struct list_node {
1356    pub next: *mut list_node,
1357    pub prev: *mut list_node,
1358}
1359#[repr(C)]
1360#[derive(Debug, Copy, Clone)]
1361pub struct list_head {
1362    pub n: list_node,
1363}
1364pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
1365pub type rb_nativethread_id_t = pthread_t;
1366pub type rb_nativethread_lock_t = pthread_mutex_t;
1367#[repr(C)]
1368#[derive(Copy, Clone)]
1369pub struct rb_thread_cond_struct {
1370    pub cond: pthread_cond_t,
1371    pub clockid: clockid_t,
1372}
1373impl ::std::fmt::Debug for rb_thread_cond_struct {
1374    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1375        write!(
1376            f,
1377            "rb_thread_cond_struct {{ cond: {:?}, clockid: {:?} }}",
1378            self.cond, self.clockid
1379        )
1380    }
1381}
1382pub type rb_nativethread_cond_t = rb_thread_cond_struct;
1383#[repr(C)]
1384#[derive(Copy, Clone)]
1385pub struct native_thread_data_struct {
1386    pub ubf_list: list_node,
1387    pub sleep_cond: rb_nativethread_cond_t,
1388}
1389impl ::std::fmt::Debug for native_thread_data_struct {
1390    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1391        write!(
1392            f,
1393            "native_thread_data_struct {{ ubf_list: {:?}, sleep_cond: {:?} }}",
1394            self.ubf_list, self.sleep_cond
1395        )
1396    }
1397}
1398pub type native_thread_data_t = native_thread_data_struct;
1399#[repr(C)]
1400#[derive(Copy, Clone)]
1401pub struct rb_global_vm_lock_struct {
1402    pub acquired: ::std::os::raw::c_ulong,
1403    pub lock: rb_nativethread_lock_t,
1404    pub waiting: ::std::os::raw::c_ulong,
1405    pub cond: rb_nativethread_cond_t,
1406    pub switch_cond: rb_nativethread_cond_t,
1407    pub switch_wait_cond: rb_nativethread_cond_t,
1408    pub need_yield: ::std::os::raw::c_int,
1409    pub wait_yield: ::std::os::raw::c_int,
1410}
1411impl ::std::fmt::Debug for rb_global_vm_lock_struct {
1412    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1413        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)
1414    }
1415}
1416pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
1417#[repr(C)]
1418#[derive(Debug, Copy, Clone)]
1419pub struct __jmp_buf_tag {
1420    pub __jmpbuf: __jmp_buf,
1421    pub __mask_was_saved: ::std::os::raw::c_int,
1422    pub __saved_mask: __sigset_t,
1423}
1424pub type jmp_buf = [__jmp_buf_tag; 1usize];
1425pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1426pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1427pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1428pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1429pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1430pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1431pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1432pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1433pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1434pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1435pub type ruby_tag_type = ::std::os::raw::c_uint;
1436pub type rb_compile_option_t = rb_compile_option_struct;
1437#[repr(C)]
1438#[derive(Copy, Clone)]
1439pub struct iseq_inline_cache_entry {
1440    pub ic_serial: rb_serial_t,
1441    pub ic_cref: *const rb_cref_t,
1442    pub ic_value: iseq_inline_cache_entry__bindgen_ty_1,
1443}
1444#[repr(C)]
1445#[derive(Copy, Clone)]
1446pub union iseq_inline_cache_entry__bindgen_ty_1 {
1447    pub index: usize,
1448    pub value: VALUE,
1449}
1450impl ::std::fmt::Debug for iseq_inline_cache_entry__bindgen_ty_1 {
1451    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1452        write!(f, "iseq_inline_cache_entry__bindgen_ty_1 {{ union }}")
1453    }
1454}
1455impl ::std::fmt::Debug for iseq_inline_cache_entry {
1456    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1457        write!(
1458            f,
1459            "iseq_inline_cache_entry {{ ic_serial: {:?}, ic_cref: {:?}, ic_value: {:?} }}",
1460            self.ic_serial, self.ic_cref, self.ic_value
1461        )
1462    }
1463}
1464#[repr(C)]
1465#[derive(Copy, Clone)]
1466pub union iseq_inline_storage_entry {
1467    pub once: iseq_inline_storage_entry__bindgen_ty_1,
1468    pub cache: iseq_inline_cache_entry,
1469}
1470#[repr(C)]
1471#[derive(Debug, Copy, Clone)]
1472pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1473    pub running_thread: *mut rb_thread_struct,
1474    pub value: VALUE,
1475}
1476impl ::std::fmt::Debug for iseq_inline_storage_entry {
1477    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1478        write!(f, "iseq_inline_storage_entry {{ union }}")
1479    }
1480}
1481pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
1482pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
1483pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
1484pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
1485pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
1486pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
1487pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
1488pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
1489pub type method_missing_reason = ::std::os::raw::c_uint;
1490#[repr(C)]
1491#[derive(Debug, Copy, Clone)]
1492pub struct rb_call_info {
1493    pub mid: ID,
1494    pub flag: ::std::os::raw::c_uint,
1495    pub orig_argc: ::std::os::raw::c_int,
1496}
1497#[repr(C)]
1498#[derive(Debug, Copy, Clone)]
1499pub struct rb_calling_info {
1500    pub block_handler: VALUE,
1501    pub recv: VALUE,
1502    pub argc: ::std::os::raw::c_int,
1503}
1504pub type vm_call_handler = ::std::option::Option<
1505    unsafe extern "C" fn(
1506        ec: *mut rb_execution_context_struct,
1507        cfp: *mut rb_control_frame_struct,
1508        calling: *mut rb_calling_info,
1509        ci: *const rb_call_info,
1510        cc: *mut rb_call_cache,
1511    ) -> VALUE,
1512>;
1513#[repr(C)]
1514#[derive(Copy, Clone)]
1515pub struct rb_call_cache {
1516    pub method_state: rb_serial_t,
1517    pub class_serial: rb_serial_t,
1518    pub me: *const rb_callable_method_entry_t,
1519    pub call: vm_call_handler,
1520    pub aux: rb_call_cache__bindgen_ty_1,
1521}
1522#[repr(C)]
1523#[derive(Copy, Clone)]
1524pub union rb_call_cache__bindgen_ty_1 {
1525    pub index: ::std::os::raw::c_uint,
1526    pub method_missing_reason: method_missing_reason,
1527    pub inc_sp: ::std::os::raw::c_int,
1528}
1529impl ::std::fmt::Debug for rb_call_cache__bindgen_ty_1 {
1530    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1531        write!(f, "rb_call_cache__bindgen_ty_1 {{ union }}")
1532    }
1533}
1534impl ::std::fmt::Debug for rb_call_cache {
1535    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1536        write ! (f , "rb_call_cache {{ method_state: {:?}, class_serial: {:?}, me: {:?}, call: {:?}, aux: {:?} }}" , self . method_state , self . class_serial , self . me , self . call , self . aux)
1537    }
1538}
1539#[repr(C)]
1540#[derive(Debug, Copy, Clone)]
1541pub struct rb_iseq_location_struct {
1542    pub pathobj: VALUE,
1543    pub base_label: VALUE,
1544    pub label: VALUE,
1545    pub first_lineno: VALUE,
1546    pub code_range: rb_code_range_t,
1547}
1548pub type rb_iseq_location_t = rb_iseq_location_struct;
1549#[repr(C)]
1550#[derive(Debug, Copy, Clone)]
1551pub struct rb_iseq_constant_body {
1552    pub type_: rb_iseq_constant_body_iseq_type,
1553    pub iseq_size: ::std::os::raw::c_uint,
1554    pub iseq_encoded: *const VALUE,
1555    pub param: rb_iseq_constant_body__bindgen_ty_1,
1556    pub location: rb_iseq_location_t,
1557    pub insns_info: *const iseq_insn_info_entry,
1558    pub local_table: *const ID,
1559    pub catch_table: *const iseq_catch_table,
1560    pub parent_iseq: *const rb_iseq_struct,
1561    pub local_iseq: *mut rb_iseq_struct,
1562    pub is_entries: *mut iseq_inline_storage_entry,
1563    pub ci_entries: *mut rb_call_info,
1564    pub cc_entries: *mut rb_call_cache,
1565    pub mark_ary: VALUE,
1566    pub local_table_size: ::std::os::raw::c_uint,
1567    pub is_size: ::std::os::raw::c_uint,
1568    pub ci_size: ::std::os::raw::c_uint,
1569    pub ci_kw_size: ::std::os::raw::c_uint,
1570    pub insns_info_size: ::std::os::raw::c_uint,
1571    pub stack_max: ::std::os::raw::c_uint,
1572}
1573pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_TOP: rb_iseq_constant_body_iseq_type = 0;
1574pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_constant_body_iseq_type = 1;
1575pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_constant_body_iseq_type = 2;
1576pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_constant_body_iseq_type = 3;
1577pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_constant_body_iseq_type = 4;
1578pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_constant_body_iseq_type = 5;
1579pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_constant_body_iseq_type = 6;
1580pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_constant_body_iseq_type = 7;
1581pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_DEFINED_GUARD: rb_iseq_constant_body_iseq_type =
1582    8;
1583pub type rb_iseq_constant_body_iseq_type = ::std::os::raw::c_uint;
1584#[repr(C)]
1585#[derive(Debug, Copy, Clone)]
1586pub struct rb_iseq_constant_body__bindgen_ty_1 {
1587    pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1588    pub size: ::std::os::raw::c_uint,
1589    pub lead_num: ::std::os::raw::c_int,
1590    pub opt_num: ::std::os::raw::c_int,
1591    pub rest_start: ::std::os::raw::c_int,
1592    pub post_start: ::std::os::raw::c_int,
1593    pub post_num: ::std::os::raw::c_int,
1594    pub block_start: ::std::os::raw::c_int,
1595    pub opt_table: *const VALUE,
1596    pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1597}
1598#[repr(C)]
1599#[derive(Debug, Copy, Clone)]
1600pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1601    pub _bindgen_align: [u32; 0],
1602    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1603    pub __bindgen_padding_0: [u8; 3usize],
1604}
1605impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1606    #[inline]
1607    #[allow(unnecessary_transmutes)]
1608    pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1609        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
1610    }
1611    #[inline]
1612    #[allow(unnecessary_transmutes)]
1613    pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1614        unsafe {
1615            let val: u32 = ::std::mem::transmute(val);
1616            self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
1617        }
1618    }
1619    #[inline]
1620    #[allow(unnecessary_transmutes)]
1621    pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1622        unsafe {
1623            ::std::mem::transmute(
1624                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
1625                    ::std::ptr::addr_of!((*this)._bitfield_1),
1626                ) as u32,
1627            )
1628        }
1629    }
1630    #[inline]
1631    #[allow(unnecessary_transmutes)]
1632    pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1633        unsafe {
1634            let val: u32 = ::std::mem::transmute(val);
1635            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
1636                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1637                val as u64,
1638            )
1639        }
1640    }
1641    #[inline]
1642    #[allow(unnecessary_transmutes)]
1643    pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1644        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
1645    }
1646    #[inline]
1647    #[allow(unnecessary_transmutes)]
1648    pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1649        unsafe {
1650            let val: u32 = ::std::mem::transmute(val);
1651            self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
1652        }
1653    }
1654    #[inline]
1655    #[allow(unnecessary_transmutes)]
1656    pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1657        unsafe {
1658            ::std::mem::transmute(
1659                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
1660                    ::std::ptr::addr_of!((*this)._bitfield_1),
1661                ) as u32,
1662            )
1663        }
1664    }
1665    #[inline]
1666    #[allow(unnecessary_transmutes)]
1667    pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1668        unsafe {
1669            let val: u32 = ::std::mem::transmute(val);
1670            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
1671                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1672                val as u64,
1673            )
1674        }
1675    }
1676    #[inline]
1677    #[allow(unnecessary_transmutes)]
1678    pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1679        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
1680    }
1681    #[inline]
1682    #[allow(unnecessary_transmutes)]
1683    pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1684        unsafe {
1685            let val: u32 = ::std::mem::transmute(val);
1686            self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
1687        }
1688    }
1689    #[inline]
1690    #[allow(unnecessary_transmutes)]
1691    pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1692        unsafe {
1693            ::std::mem::transmute(
1694                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
1695                    ::std::ptr::addr_of!((*this)._bitfield_1),
1696                ) as u32,
1697            )
1698        }
1699    }
1700    #[inline]
1701    #[allow(unnecessary_transmutes)]
1702    pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1703        unsafe {
1704            let val: u32 = ::std::mem::transmute(val);
1705            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
1706                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1707                val as u64,
1708            )
1709        }
1710    }
1711    #[inline]
1712    #[allow(unnecessary_transmutes)]
1713    pub fn has_post(&self) -> ::std::os::raw::c_uint {
1714        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1715    }
1716    #[inline]
1717    #[allow(unnecessary_transmutes)]
1718    pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1719        unsafe {
1720            let val: u32 = ::std::mem::transmute(val);
1721            self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1722        }
1723    }
1724    #[inline]
1725    #[allow(unnecessary_transmutes)]
1726    pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1727        unsafe {
1728            ::std::mem::transmute(
1729                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
1730                    ::std::ptr::addr_of!((*this)._bitfield_1),
1731                ) as u32,
1732            )
1733        }
1734    }
1735    #[inline]
1736    #[allow(unnecessary_transmutes)]
1737    pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1738        unsafe {
1739            let val: u32 = ::std::mem::transmute(val);
1740            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
1741                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1742                val as u64,
1743            )
1744        }
1745    }
1746    #[inline]
1747    #[allow(unnecessary_transmutes)]
1748    pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1749        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
1750    }
1751    #[inline]
1752    #[allow(unnecessary_transmutes)]
1753    pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1754        unsafe {
1755            let val: u32 = ::std::mem::transmute(val);
1756            self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
1757        }
1758    }
1759    #[inline]
1760    #[allow(unnecessary_transmutes)]
1761    pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1762        unsafe {
1763            ::std::mem::transmute(
1764                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
1765                    ::std::ptr::addr_of!((*this)._bitfield_1),
1766                ) as u32,
1767            )
1768        }
1769    }
1770    #[inline]
1771    #[allow(unnecessary_transmutes)]
1772    pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1773        unsafe {
1774            let val: u32 = ::std::mem::transmute(val);
1775            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
1776                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1777                val as u64,
1778            )
1779        }
1780    }
1781    #[inline]
1782    #[allow(unnecessary_transmutes)]
1783    pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1784        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
1785    }
1786    #[inline]
1787    #[allow(unnecessary_transmutes)]
1788    pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1789        unsafe {
1790            let val: u32 = ::std::mem::transmute(val);
1791            self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
1792        }
1793    }
1794    #[inline]
1795    #[allow(unnecessary_transmutes)]
1796    pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1797        unsafe {
1798            ::std::mem::transmute(
1799                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
1800                    ::std::ptr::addr_of!((*this)._bitfield_1),
1801                ) as u32,
1802            )
1803        }
1804    }
1805    #[inline]
1806    #[allow(unnecessary_transmutes)]
1807    pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1808        unsafe {
1809            let val: u32 = ::std::mem::transmute(val);
1810            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
1811                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1812                val as u64,
1813            )
1814        }
1815    }
1816    #[inline]
1817    #[allow(unnecessary_transmutes)]
1818    pub fn has_block(&self) -> ::std::os::raw::c_uint {
1819        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
1820    }
1821    #[inline]
1822    #[allow(unnecessary_transmutes)]
1823    pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1824        unsafe {
1825            let val: u32 = ::std::mem::transmute(val);
1826            self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
1827        }
1828    }
1829    #[inline]
1830    #[allow(unnecessary_transmutes)]
1831    pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1832        unsafe {
1833            ::std::mem::transmute(
1834                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(
1835                    ::std::ptr::addr_of!((*this)._bitfield_1),
1836                ) as u32,
1837            )
1838        }
1839    }
1840    #[inline]
1841    #[allow(unnecessary_transmutes)]
1842    pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1843        unsafe {
1844            let val: u32 = ::std::mem::transmute(val);
1845            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(
1846                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1847                val as u64,
1848            )
1849        }
1850    }
1851    #[inline]
1852    #[allow(unnecessary_transmutes)]
1853    pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1854        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
1855    }
1856    #[inline]
1857    #[allow(unnecessary_transmutes)]
1858    pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1859        unsafe {
1860            let val: u32 = ::std::mem::transmute(val);
1861            self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
1862        }
1863    }
1864    #[inline]
1865    #[allow(unnecessary_transmutes)]
1866    pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1867        unsafe {
1868            ::std::mem::transmute(
1869                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<7usize, 1u8>(
1870                    ::std::ptr::addr_of!((*this)._bitfield_1),
1871                ) as u32,
1872            )
1873        }
1874    }
1875    #[inline]
1876    #[allow(unnecessary_transmutes)]
1877    pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1878        unsafe {
1879            let val: u32 = ::std::mem::transmute(val);
1880            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<7usize, 1u8>(
1881                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1882                val as u64,
1883            )
1884        }
1885    }
1886    #[inline]
1887    #[allow(unnecessary_transmutes)]
1888    pub fn new_bitfield_1(
1889        has_lead: ::std::os::raw::c_uint,
1890        has_opt: ::std::os::raw::c_uint,
1891        has_rest: ::std::os::raw::c_uint,
1892        has_post: ::std::os::raw::c_uint,
1893        has_kw: ::std::os::raw::c_uint,
1894        has_kwrest: ::std::os::raw::c_uint,
1895        has_block: ::std::os::raw::c_uint,
1896        ambiguous_param0: ::std::os::raw::c_uint,
1897    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1898        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1899        __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
1900            let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1901            has_lead as u64
1902        });
1903        __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
1904            let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1905            has_opt as u64
1906        });
1907        __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
1908            let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1909            has_rest as u64
1910        });
1911        __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
1912            let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1913            has_post as u64
1914        });
1915        __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
1916            let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1917            has_kw as u64
1918        });
1919        __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
1920            let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1921            has_kwrest as u64
1922        });
1923        __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
1924            let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1925            has_block as u64
1926        });
1927        __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
1928            let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
1929            ambiguous_param0 as u64
1930        });
1931        __bindgen_bitfield_unit
1932    }
1933}
1934#[repr(C)]
1935#[derive(Debug, Copy, Clone)]
1936pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
1937    pub num: ::std::os::raw::c_int,
1938    pub required_num: ::std::os::raw::c_int,
1939    pub bits_start: ::std::os::raw::c_int,
1940    pub rest_start: ::std::os::raw::c_int,
1941    pub table: *const ID,
1942    pub default_values: *const VALUE,
1943}
1944#[repr(C)]
1945#[derive(Copy, Clone)]
1946pub struct rb_iseq_struct {
1947    pub flags: VALUE,
1948    pub reserved1: VALUE,
1949    pub body: *mut rb_iseq_constant_body,
1950    pub aux: rb_iseq_struct__bindgen_ty_1,
1951}
1952#[repr(C)]
1953#[derive(Copy, Clone)]
1954pub union rb_iseq_struct__bindgen_ty_1 {
1955    pub compile_data: *mut iseq_compile_data,
1956    pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
1957    pub trace_events: rb_event_flag_t,
1958}
1959#[repr(C)]
1960#[derive(Debug, Copy, Clone)]
1961pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
1962    pub obj: VALUE,
1963    pub index: ::std::os::raw::c_int,
1964}
1965impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
1966    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1967        write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
1968    }
1969}
1970impl ::std::fmt::Debug for rb_iseq_struct {
1971    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1972        write!(
1973            f,
1974            "rb_iseq_struct {{ flags: {:?}, reserved1: {:?}, body: {:?}, aux: {:?} }}",
1975            self.flags, self.reserved1, self.body, self.aux
1976        )
1977    }
1978}
1979pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
1980#[repr(C)]
1981#[derive(Debug, Copy, Clone)]
1982pub struct rb_at_exit_list {
1983    pub func: rb_vm_at_exit_func,
1984    pub next: *mut rb_at_exit_list,
1985}
1986#[repr(C)]
1987#[derive(Debug)]
1988pub struct rb_objspace {
1989    _unused: [u8; 0],
1990}
1991#[repr(C)]
1992#[derive(Debug, Copy, Clone)]
1993pub struct rb_hook_list_struct {
1994    pub hooks: *mut rb_event_hook_struct,
1995    pub events: rb_event_flag_t,
1996    pub need_clean: ::std::os::raw::c_int,
1997}
1998pub type rb_hook_list_t = rb_hook_list_struct;
1999#[repr(C)]
2000#[derive(Copy, Clone)]
2001pub struct rb_vm_struct {
2002    pub self_: VALUE,
2003    pub gvl: rb_global_vm_lock_t,
2004    pub thread_destruct_lock: rb_nativethread_lock_t,
2005    pub main_thread: *mut rb_thread_struct,
2006    pub running_thread: *mut rb_thread_struct,
2007    pub waiting_fds: list_head,
2008    pub living_threads: list_head,
2009    pub living_thread_num: usize,
2010    pub thgroup_default: VALUE,
2011    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2012    pub trace_running: ::std::os::raw::c_int,
2013    pub sleeper: ::std::os::raw::c_int,
2014    pub mark_object_ary: VALUE,
2015    pub special_exceptions: [VALUE; 5usize],
2016    pub top_self: VALUE,
2017    pub load_path: VALUE,
2018    pub load_path_snapshot: VALUE,
2019    pub load_path_check_cache: VALUE,
2020    pub expanded_load_path: VALUE,
2021    pub loaded_features: VALUE,
2022    pub loaded_features_snapshot: VALUE,
2023    pub loaded_features_index: *mut st_table,
2024    pub loading_table: *mut st_table,
2025    pub trap_list: rb_vm_struct__bindgen_ty_1,
2026    pub event_hooks: rb_hook_list_t,
2027    pub ensure_rollback_table: *mut st_table,
2028    pub postponed_job_buffer: *mut rb_postponed_job_struct,
2029    pub postponed_job_index: ::std::os::raw::c_int,
2030    pub src_encoding_index: ::std::os::raw::c_int,
2031    pub verbose: VALUE,
2032    pub debug: VALUE,
2033    pub orig_progname: VALUE,
2034    pub progname: VALUE,
2035    pub coverages: VALUE,
2036    pub coverage_mode: ::std::os::raw::c_int,
2037    pub defined_module_hash: VALUE,
2038    pub objspace: *mut rb_objspace,
2039    pub at_exit: *mut rb_at_exit_list,
2040    pub defined_strings: *mut VALUE,
2041    pub frozen_strings: *mut st_table,
2042    pub default_params: rb_vm_struct__bindgen_ty_2,
2043    pub redefined_flag: [::std::os::raw::c_short; 25usize],
2044}
2045#[repr(C)]
2046#[derive(Debug, Copy, Clone)]
2047pub struct rb_vm_struct__bindgen_ty_1 {
2048    pub cmd: [VALUE; 65usize],
2049    pub safe: [::std::os::raw::c_uchar; 65usize],
2050}
2051#[repr(C)]
2052#[derive(Debug, Copy, Clone)]
2053pub struct rb_vm_struct__bindgen_ty_2 {
2054    pub thread_vm_stack_size: usize,
2055    pub thread_machine_stack_size: usize,
2056    pub fiber_vm_stack_size: usize,
2057    pub fiber_machine_stack_size: usize,
2058}
2059impl ::std::fmt::Debug for rb_vm_struct {
2060    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2061        write ! (f , "rb_vm_struct {{ self: {:?}, gvl: {:?}, thread_destruct_lock: {:?}, main_thread: {:?}, running_thread: {:?}, waiting_fds: {:?}, 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: {:?}, coverage_mode: {:?}, 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 . waiting_fds , 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 . coverage_mode , self . defined_module_hash , self . objspace , self . at_exit , self . defined_strings , self . frozen_strings , self . default_params , self . redefined_flag)
2062    }
2063}
2064impl rb_vm_struct {
2065    #[inline]
2066    #[allow(unnecessary_transmutes)]
2067    pub fn running(&self) -> ::std::os::raw::c_uint {
2068        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2069    }
2070    #[inline]
2071    #[allow(unnecessary_transmutes)]
2072    pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2073        unsafe {
2074            let val: u32 = ::std::mem::transmute(val);
2075            self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2076        }
2077    }
2078    #[inline]
2079    #[allow(unnecessary_transmutes)]
2080    pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2081        unsafe {
2082            ::std::mem::transmute(
2083                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
2084                    ::std::ptr::addr_of!((*this)._bitfield_1),
2085                ) as u32,
2086            )
2087        }
2088    }
2089    #[inline]
2090    #[allow(unnecessary_transmutes)]
2091    pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2092        unsafe {
2093            let val: u32 = ::std::mem::transmute(val);
2094            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
2095                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2096                val as u64,
2097            )
2098        }
2099    }
2100    #[inline]
2101    #[allow(unnecessary_transmutes)]
2102    pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2103        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2104    }
2105    #[inline]
2106    #[allow(unnecessary_transmutes)]
2107    pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2108        unsafe {
2109            let val: u32 = ::std::mem::transmute(val);
2110            self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2111        }
2112    }
2113    #[inline]
2114    #[allow(unnecessary_transmutes)]
2115    pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2116        unsafe {
2117            ::std::mem::transmute(
2118                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
2119                    ::std::ptr::addr_of!((*this)._bitfield_1),
2120                ) as u32,
2121            )
2122        }
2123    }
2124    #[inline]
2125    #[allow(unnecessary_transmutes)]
2126    pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2127        unsafe {
2128            let val: u32 = ::std::mem::transmute(val);
2129            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
2130                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2131                val as u64,
2132            )
2133        }
2134    }
2135    #[inline]
2136    #[allow(unnecessary_transmutes)]
2137    pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2138        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2139    }
2140    #[inline]
2141    #[allow(unnecessary_transmutes)]
2142    pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2143        unsafe {
2144            let val: u32 = ::std::mem::transmute(val);
2145            self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2146        }
2147    }
2148    #[inline]
2149    #[allow(unnecessary_transmutes)]
2150    pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2151        unsafe {
2152            ::std::mem::transmute(
2153                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2154                    ::std::ptr::addr_of!((*this)._bitfield_1),
2155                ) as u32,
2156            )
2157        }
2158    }
2159    #[inline]
2160    #[allow(unnecessary_transmutes)]
2161    pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2162        unsafe {
2163            let val: u32 = ::std::mem::transmute(val);
2164            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2165                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2166                val as u64,
2167            )
2168        }
2169    }
2170    #[inline]
2171    #[allow(unnecessary_transmutes)]
2172    pub fn new_bitfield_1(
2173        running: ::std::os::raw::c_uint,
2174        thread_abort_on_exception: ::std::os::raw::c_uint,
2175        thread_report_on_exception: ::std::os::raw::c_uint,
2176    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2177        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2178        __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2179            let running: u32 = unsafe { ::std::mem::transmute(running) };
2180            running as u64
2181        });
2182        __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2183            let thread_abort_on_exception: u32 =
2184                unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2185            thread_abort_on_exception as u64
2186        });
2187        __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2188            let thread_report_on_exception: u32 =
2189                unsafe { ::std::mem::transmute(thread_report_on_exception) };
2190            thread_report_on_exception as u64
2191        });
2192        __bindgen_bitfield_unit
2193    }
2194}
2195pub type rb_vm_t = rb_vm_struct;
2196#[repr(C)]
2197#[derive(Debug, Copy, Clone)]
2198pub struct rb_control_frame_struct {
2199    pub pc: *const VALUE,
2200    pub sp: *mut VALUE,
2201    pub iseq: *const rb_iseq_t,
2202    pub self_: VALUE,
2203    pub ep: *const VALUE,
2204    pub block_code: *const ::std::os::raw::c_void,
2205}
2206pub type rb_control_frame_t = rb_control_frame_struct;
2207pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2208pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2209pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2210pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2211pub type rb_thread_status = ::std::os::raw::c_uint;
2212pub type rb_jmpbuf_t = jmp_buf;
2213#[repr(C)]
2214#[derive(Debug, Copy, Clone)]
2215pub struct rb_vm_tag {
2216    pub tag: VALUE,
2217    pub retval: VALUE,
2218    pub buf: rb_jmpbuf_t,
2219    pub prev: *mut rb_vm_tag,
2220    pub state: ruby_tag_type,
2221}
2222#[repr(C)]
2223#[derive(Debug, Copy, Clone)]
2224pub struct rb_vm_protect_tag {
2225    pub prev: *mut rb_vm_protect_tag,
2226}
2227#[repr(C)]
2228#[derive(Debug, Copy, Clone)]
2229pub struct rb_unblock_callback {
2230    pub func: rb_unblock_function_t,
2231    pub arg: *mut ::std::os::raw::c_void,
2232}
2233#[repr(C)]
2234#[derive(Debug)]
2235pub struct rb_mutex_struct {
2236    _unused: [u8; 0],
2237}
2238#[repr(C)]
2239#[derive(Debug, Copy, Clone)]
2240pub struct rb_thread_list_struct {
2241    pub next: *mut rb_thread_list_struct,
2242    pub th: *mut rb_thread_struct,
2243}
2244pub type rb_thread_list_t = rb_thread_list_struct;
2245#[repr(C)]
2246#[derive(Debug, Copy, Clone)]
2247pub struct rb_ensure_entry {
2248    pub marker: VALUE,
2249    pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
2250    pub data2: VALUE,
2251}
2252#[repr(C)]
2253#[derive(Debug, Copy, Clone)]
2254pub struct rb_ensure_list {
2255    pub next: *mut rb_ensure_list,
2256    pub entry: rb_ensure_entry,
2257}
2258pub type rb_ensure_list_t = rb_ensure_list;
2259#[repr(C)]
2260#[derive(Debug)]
2261pub struct rb_fiber_struct {
2262    _unused: [u8; 0],
2263}
2264pub type rb_fiber_t = rb_fiber_struct;
2265#[repr(C)]
2266#[derive(Debug, Copy, Clone)]
2267pub struct rb_execution_context_struct {
2268    pub vm_stack: *mut VALUE,
2269    pub vm_stack_size: usize,
2270    pub cfp: *mut rb_control_frame_t,
2271    pub tag: *mut rb_vm_tag,
2272    pub protect_tag: *mut rb_vm_protect_tag,
2273    pub safe_level: ::std::os::raw::c_int,
2274    pub raised_flag: ::std::os::raw::c_int,
2275    pub interrupt_flag: rb_atomic_t,
2276    pub interrupt_mask: ::std::os::raw::c_ulong,
2277    pub fiber_ptr: *mut rb_fiber_t,
2278    pub thread_ptr: *mut rb_thread_struct,
2279    pub local_storage: *mut st_table,
2280    pub local_storage_recursive_hash: VALUE,
2281    pub local_storage_recursive_hash_for_trace: VALUE,
2282    pub root_lep: *const VALUE,
2283    pub root_svar: VALUE,
2284    pub ensure_list: *mut rb_ensure_list_t,
2285    pub trace_arg: *mut rb_trace_arg_struct,
2286    pub errinfo: VALUE,
2287    pub passed_block_handler: VALUE,
2288    pub passed_bmethod_me: *const rb_callable_method_entry_t,
2289    pub method_missing_reason: method_missing_reason,
2290    pub machine: rb_execution_context_struct__bindgen_ty_1,
2291}
2292#[repr(C)]
2293#[derive(Debug, Copy, Clone)]
2294pub struct rb_execution_context_struct__bindgen_ty_1 {
2295    pub stack_start: *mut VALUE,
2296    pub stack_end: *mut VALUE,
2297    pub stack_maxsize: usize,
2298    pub regs: jmp_buf,
2299}
2300pub type rb_execution_context_t = rb_execution_context_struct;
2301#[repr(C)]
2302#[derive(Copy, Clone)]
2303pub struct rb_thread_struct {
2304    pub vmlt_node: list_node,
2305    pub self_: VALUE,
2306    pub vm: *mut rb_vm_t,
2307    pub ec: *mut rb_execution_context_t,
2308    pub last_status: VALUE,
2309    pub calling: *mut rb_calling_info,
2310    pub top_self: VALUE,
2311    pub top_wrapper: VALUE,
2312    pub thread_id: rb_nativethread_id_t,
2313    pub status: rb_thread_status,
2314    pub to_kill: ::std::os::raw::c_int,
2315    pub priority: ::std::os::raw::c_int,
2316    pub native_thread_data: native_thread_data_t,
2317    pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2318    pub thgroup: VALUE,
2319    pub value: VALUE,
2320    pub pending_interrupt_queue: VALUE,
2321    pub pending_interrupt_mask_stack: VALUE,
2322    pub pending_interrupt_queue_checked: ::std::os::raw::c_int,
2323    pub interrupt_lock: rb_nativethread_lock_t,
2324    pub unblock: rb_unblock_callback,
2325    pub locking_mutex: VALUE,
2326    pub keeping_mutexes: *mut rb_mutex_struct,
2327    pub join_list: *mut rb_thread_list_t,
2328    pub first_proc: VALUE,
2329    pub first_args: VALUE,
2330    pub first_func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
2331    pub stat_insn_usage: VALUE,
2332    pub root_fiber: *mut rb_fiber_t,
2333    pub root_jmpbuf: rb_jmpbuf_t,
2334    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2335    pub altstack: *mut ::std::os::raw::c_void,
2336    pub running_time_us: u32,
2337    pub name: VALUE,
2338}
2339impl ::std::fmt::Debug for rb_thread_struct {
2340    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2341        write ! (f , "rb_thread_struct {{ vmlt_node: {:?}, self: {:?}, vm: {:?}, ec: {:?}, last_status: {:?}, calling: {:?}, top_self: {:?}, top_wrapper: {:?}, thread_id: {:?}, status: {:?}, to_kill: {:?}, priority: {:?}, native_thread_data: {:?}, blocking_region_buffer: {:?}, thgroup: {:?}, value: {:?}, pending_interrupt_queue: {:?}, pending_interrupt_mask_stack: {:?}, pending_interrupt_queue_checked: {:?}, interrupt_lock: {:?}, unblock: {:?}, locking_mutex: {:?}, keeping_mutexes: {:?}, join_list: {:?}, first_proc: {:?}, first_args: {:?}, first_func: {:?}, stat_insn_usage: {:?}, root_fiber: {:?}, root_jmpbuf: {:?}, abort_on_exception : {:?}, report_on_exception : {:?}, altstack: {:?}, name: {:?} }}" , self . vmlt_node , self . self_ , self . vm , self . ec , self . last_status , self . calling , self . top_self , self . top_wrapper , self . thread_id , self . status , self . to_kill , self . priority , self . native_thread_data , self . blocking_region_buffer , self . thgroup , self . value , self . pending_interrupt_queue , self . pending_interrupt_mask_stack , self . pending_interrupt_queue_checked , self . interrupt_lock , self . unblock , self . locking_mutex , self . keeping_mutexes , self . join_list , self . first_proc , self . first_args , self . first_func , self . stat_insn_usage , self . root_fiber , self . root_jmpbuf , self . abort_on_exception () , self . report_on_exception () , self . altstack , self . name)
2342    }
2343}
2344impl rb_thread_struct {
2345    #[inline]
2346    #[allow(unnecessary_transmutes)]
2347    pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2348        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2349    }
2350    #[inline]
2351    #[allow(unnecessary_transmutes)]
2352    pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2353        unsafe {
2354            let val: u32 = ::std::mem::transmute(val);
2355            self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2356        }
2357    }
2358    #[inline]
2359    #[allow(unnecessary_transmutes)]
2360    pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2361        unsafe {
2362            ::std::mem::transmute(
2363                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
2364                    ::std::ptr::addr_of!((*this)._bitfield_1),
2365                ) as u32,
2366            )
2367        }
2368    }
2369    #[inline]
2370    #[allow(unnecessary_transmutes)]
2371    pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2372        unsafe {
2373            let val: u32 = ::std::mem::transmute(val);
2374            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
2375                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2376                val as u64,
2377            )
2378        }
2379    }
2380    #[inline]
2381    #[allow(unnecessary_transmutes)]
2382    pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2383        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2384    }
2385    #[inline]
2386    #[allow(unnecessary_transmutes)]
2387    pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2388        unsafe {
2389            let val: u32 = ::std::mem::transmute(val);
2390            self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2391        }
2392    }
2393    #[inline]
2394    #[allow(unnecessary_transmutes)]
2395    pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2396        unsafe {
2397            ::std::mem::transmute(
2398                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
2399                    ::std::ptr::addr_of!((*this)._bitfield_1),
2400                ) as u32,
2401            )
2402        }
2403    }
2404    #[inline]
2405    #[allow(unnecessary_transmutes)]
2406    pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2407        unsafe {
2408            let val: u32 = ::std::mem::transmute(val);
2409            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
2410                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2411                val as u64,
2412            )
2413        }
2414    }
2415    #[inline]
2416    #[allow(unnecessary_transmutes)]
2417    pub fn new_bitfield_1(
2418        abort_on_exception: ::std::os::raw::c_uint,
2419        report_on_exception: ::std::os::raw::c_uint,
2420    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2421        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2422        __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2423            let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2424            abort_on_exception as u64
2425        });
2426        __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2427            let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2428            report_on_exception as u64
2429        });
2430        __bindgen_bitfield_unit
2431    }
2432}
2433pub type rb_thread_t = rb_thread_struct;
2434#[repr(C)]
2435#[derive(Debug, Copy, Clone)]
2436pub struct rb_trace_arg_struct {
2437    pub event: rb_event_flag_t,
2438    pub ec: *mut rb_execution_context_t,
2439    pub cfp: *const rb_control_frame_t,
2440    pub self_: VALUE,
2441    pub id: ID,
2442    pub called_id: ID,
2443    pub klass: VALUE,
2444    pub data: VALUE,
2445    pub klass_solved: ::std::os::raw::c_int,
2446    pub lineno: ::std::os::raw::c_int,
2447    pub path: VALUE,
2448}
2449#[repr(C)]
2450#[derive(Debug, Copy, Clone)]
2451pub struct iseq_compile_data {
2452    pub err_info: VALUE,
2453    pub mark_ary: VALUE,
2454    pub catch_table_ary: VALUE,
2455    pub start_label: *mut iseq_label_data,
2456    pub end_label: *mut iseq_label_data,
2457    pub redo_label: *mut iseq_label_data,
2458    pub current_block: *const rb_iseq_t,
2459    pub ensure_node: VALUE,
2460    pub for_iseq: VALUE,
2461    pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2462    pub loopval_popped: ::std::os::raw::c_int,
2463    pub cached_const: ::std::os::raw::c_int,
2464    pub storage_head: *mut iseq_compile_data_storage,
2465    pub storage_current: *mut iseq_compile_data_storage,
2466    pub last_line: ::std::os::raw::c_int,
2467    pub label_no: ::std::os::raw::c_int,
2468    pub node_level: ::std::os::raw::c_int,
2469    pub ci_index: ::std::os::raw::c_uint,
2470    pub ci_kw_index: ::std::os::raw::c_uint,
2471    pub option: *const rb_compile_option_t,
2472    pub ivar_cache_table: *mut rb_id_table,
2473}
2474#[repr(C)]
2475#[derive(Debug, Copy, Clone)]
2476pub struct rb_compile_option_struct {
2477    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2478    pub debug_level: ::std::os::raw::c_int,
2479}
2480impl rb_compile_option_struct {
2481    #[inline]
2482    #[allow(unnecessary_transmutes)]
2483    pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
2484        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2485    }
2486    #[inline]
2487    #[allow(unnecessary_transmutes)]
2488    pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
2489        unsafe {
2490            let val: u32 = ::std::mem::transmute(val);
2491            self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2492        }
2493    }
2494    #[inline]
2495    #[allow(unnecessary_transmutes)]
2496    pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
2497        unsafe {
2498            ::std::mem::transmute(
2499                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(
2500                    ::std::ptr::addr_of!((*this)._bitfield_1),
2501                ) as u32,
2502            )
2503        }
2504    }
2505    #[inline]
2506    #[allow(unnecessary_transmutes)]
2507    pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2508        unsafe {
2509            let val: u32 = ::std::mem::transmute(val);
2510            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(
2511                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2512                val as u64,
2513            )
2514        }
2515    }
2516    #[inline]
2517    #[allow(unnecessary_transmutes)]
2518    pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
2519        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2520    }
2521    #[inline]
2522    #[allow(unnecessary_transmutes)]
2523    pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
2524        unsafe {
2525            let val: u32 = ::std::mem::transmute(val);
2526            self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2527        }
2528    }
2529    #[inline]
2530    #[allow(unnecessary_transmutes)]
2531    pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2532        unsafe {
2533            ::std::mem::transmute(
2534                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(
2535                    ::std::ptr::addr_of!((*this)._bitfield_1),
2536                ) as u32,
2537            )
2538        }
2539    }
2540    #[inline]
2541    #[allow(unnecessary_transmutes)]
2542    pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2543        unsafe {
2544            let val: u32 = ::std::mem::transmute(val);
2545            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(
2546                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2547                val as u64,
2548            )
2549        }
2550    }
2551    #[inline]
2552    #[allow(unnecessary_transmutes)]
2553    pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
2554        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2555    }
2556    #[inline]
2557    #[allow(unnecessary_transmutes)]
2558    pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
2559        unsafe {
2560            let val: u32 = ::std::mem::transmute(val);
2561            self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2562        }
2563    }
2564    #[inline]
2565    #[allow(unnecessary_transmutes)]
2566    pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2567        unsafe {
2568            ::std::mem::transmute(
2569                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(
2570                    ::std::ptr::addr_of!((*this)._bitfield_1),
2571                ) as u32,
2572            )
2573        }
2574    }
2575    #[inline]
2576    #[allow(unnecessary_transmutes)]
2577    pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2578        unsafe {
2579            let val: u32 = ::std::mem::transmute(val);
2580            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(
2581                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2582                val as u64,
2583            )
2584        }
2585    }
2586    #[inline]
2587    #[allow(unnecessary_transmutes)]
2588    pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
2589        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2590    }
2591    #[inline]
2592    #[allow(unnecessary_transmutes)]
2593    pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
2594        unsafe {
2595            let val: u32 = ::std::mem::transmute(val);
2596            self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2597        }
2598    }
2599    #[inline]
2600    #[allow(unnecessary_transmutes)]
2601    pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
2602        unsafe {
2603            ::std::mem::transmute(
2604                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(
2605                    ::std::ptr::addr_of!((*this)._bitfield_1),
2606                ) as u32,
2607            )
2608        }
2609    }
2610    #[inline]
2611    #[allow(unnecessary_transmutes)]
2612    pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2613        unsafe {
2614            let val: u32 = ::std::mem::transmute(val);
2615            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(
2616                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2617                val as u64,
2618            )
2619        }
2620    }
2621    #[inline]
2622    #[allow(unnecessary_transmutes)]
2623    pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
2624        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
2625    }
2626    #[inline]
2627    #[allow(unnecessary_transmutes)]
2628    pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
2629        unsafe {
2630            let val: u32 = ::std::mem::transmute(val);
2631            self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
2632        }
2633    }
2634    #[inline]
2635    #[allow(unnecessary_transmutes)]
2636    pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2637        unsafe {
2638            ::std::mem::transmute(
2639                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(
2640                    ::std::ptr::addr_of!((*this)._bitfield_1),
2641                ) as u32,
2642            )
2643        }
2644    }
2645    #[inline]
2646    #[allow(unnecessary_transmutes)]
2647    pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2648        unsafe {
2649            let val: u32 = ::std::mem::transmute(val);
2650            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(
2651                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2652                val as u64,
2653            )
2654        }
2655    }
2656    #[inline]
2657    #[allow(unnecessary_transmutes)]
2658    pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
2659        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
2660    }
2661    #[inline]
2662    #[allow(unnecessary_transmutes)]
2663    pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
2664        unsafe {
2665            let val: u32 = ::std::mem::transmute(val);
2666            self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
2667        }
2668    }
2669    #[inline]
2670    #[allow(unnecessary_transmutes)]
2671    pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2672        unsafe {
2673            ::std::mem::transmute(
2674                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<5usize, 1u8>(
2675                    ::std::ptr::addr_of!((*this)._bitfield_1),
2676                ) as u32,
2677            )
2678        }
2679    }
2680    #[inline]
2681    #[allow(unnecessary_transmutes)]
2682    pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2683        unsafe {
2684            let val: u32 = ::std::mem::transmute(val);
2685            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<5usize, 1u8>(
2686                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2687                val as u64,
2688            )
2689        }
2690    }
2691    #[inline]
2692    #[allow(unnecessary_transmutes)]
2693    pub fn stack_caching(&self) -> ::std::os::raw::c_uint {
2694        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
2695    }
2696    #[inline]
2697    #[allow(unnecessary_transmutes)]
2698    pub fn set_stack_caching(&mut self, val: ::std::os::raw::c_uint) {
2699        unsafe {
2700            let val: u32 = ::std::mem::transmute(val);
2701            self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
2702        }
2703    }
2704    #[inline]
2705    #[allow(unnecessary_transmutes)]
2706    pub unsafe fn stack_caching_raw(this: *const Self) -> ::std::os::raw::c_uint {
2707        unsafe {
2708            ::std::mem::transmute(
2709                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<6usize, 1u8>(
2710                    ::std::ptr::addr_of!((*this)._bitfield_1),
2711                ) as u32,
2712            )
2713        }
2714    }
2715    #[inline]
2716    #[allow(unnecessary_transmutes)]
2717    pub unsafe fn set_stack_caching_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2718        unsafe {
2719            let val: u32 = ::std::mem::transmute(val);
2720            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<6usize, 1u8>(
2721                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2722                val as u64,
2723            )
2724        }
2725    }
2726    #[inline]
2727    #[allow(unnecessary_transmutes)]
2728    pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
2729        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
2730    }
2731    #[inline]
2732    #[allow(unnecessary_transmutes)]
2733    pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
2734        unsafe {
2735            let val: u32 = ::std::mem::transmute(val);
2736            self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
2737        }
2738    }
2739    #[inline]
2740    #[allow(unnecessary_transmutes)]
2741    pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
2742        unsafe {
2743            ::std::mem::transmute(
2744                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(
2745                    ::std::ptr::addr_of!((*this)._bitfield_1),
2746                ) as u32,
2747            )
2748        }
2749    }
2750    #[inline]
2751    #[allow(unnecessary_transmutes)]
2752    pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2753        unsafe {
2754            let val: u32 = ::std::mem::transmute(val);
2755            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(
2756                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2757                val as u64,
2758            )
2759        }
2760    }
2761    #[inline]
2762    #[allow(unnecessary_transmutes)]
2763    pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
2764        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) }
2765    }
2766    #[inline]
2767    #[allow(unnecessary_transmutes)]
2768    pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
2769        unsafe {
2770            let val: u32 = ::std::mem::transmute(val);
2771            self._bitfield_1.set_const::<8usize, 1u8>(val as u64)
2772        }
2773    }
2774    #[inline]
2775    #[allow(unnecessary_transmutes)]
2776    pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
2777        unsafe {
2778            ::std::mem::transmute(
2779                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(
2780                    ::std::ptr::addr_of!((*this)._bitfield_1),
2781                ) as u32,
2782            )
2783        }
2784    }
2785    #[inline]
2786    #[allow(unnecessary_transmutes)]
2787    pub unsafe fn set_debug_frozen_string_literal_raw(
2788        this: *mut Self,
2789        val: ::std::os::raw::c_uint,
2790    ) {
2791        unsafe {
2792            let val: u32 = ::std::mem::transmute(val);
2793            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(
2794                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2795                val as u64,
2796            )
2797        }
2798    }
2799    #[inline]
2800    #[allow(unnecessary_transmutes)]
2801    pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
2802        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u32) }
2803    }
2804    #[inline]
2805    #[allow(unnecessary_transmutes)]
2806    pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
2807        unsafe {
2808            let val: u32 = ::std::mem::transmute(val);
2809            self._bitfield_1.set_const::<9usize, 1u8>(val as u64)
2810        }
2811    }
2812    #[inline]
2813    #[allow(unnecessary_transmutes)]
2814    pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
2815        unsafe {
2816            ::std::mem::transmute(
2817                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(
2818                    ::std::ptr::addr_of!((*this)._bitfield_1),
2819                ) as u32,
2820            )
2821        }
2822    }
2823    #[inline]
2824    #[allow(unnecessary_transmutes)]
2825    pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2826        unsafe {
2827            let val: u32 = ::std::mem::transmute(val);
2828            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(
2829                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2830                val as u64,
2831            )
2832        }
2833    }
2834    #[inline]
2835    #[allow(unnecessary_transmutes)]
2836    pub fn new_bitfield_1(
2837        inline_const_cache: ::std::os::raw::c_uint,
2838        peephole_optimization: ::std::os::raw::c_uint,
2839        tailcall_optimization: ::std::os::raw::c_uint,
2840        specialized_instruction: ::std::os::raw::c_uint,
2841        operands_unification: ::std::os::raw::c_uint,
2842        instructions_unification: ::std::os::raw::c_uint,
2843        stack_caching: ::std::os::raw::c_uint,
2844        frozen_string_literal: ::std::os::raw::c_uint,
2845        debug_frozen_string_literal: ::std::os::raw::c_uint,
2846        coverage_enabled: ::std::os::raw::c_uint,
2847    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2848        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2849        __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2850            let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
2851            inline_const_cache as u64
2852        });
2853        __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2854            let peephole_optimization: u32 =
2855                unsafe { ::std::mem::transmute(peephole_optimization) };
2856            peephole_optimization as u64
2857        });
2858        __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2859            let tailcall_optimization: u32 =
2860                unsafe { ::std::mem::transmute(tailcall_optimization) };
2861            tailcall_optimization as u64
2862        });
2863        __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2864            let specialized_instruction: u32 =
2865                unsafe { ::std::mem::transmute(specialized_instruction) };
2866            specialized_instruction as u64
2867        });
2868        __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
2869            let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
2870            operands_unification as u64
2871        });
2872        __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
2873            let instructions_unification: u32 =
2874                unsafe { ::std::mem::transmute(instructions_unification) };
2875            instructions_unification as u64
2876        });
2877        __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
2878            let stack_caching: u32 = unsafe { ::std::mem::transmute(stack_caching) };
2879            stack_caching as u64
2880        });
2881        __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
2882            let frozen_string_literal: u32 =
2883                unsafe { ::std::mem::transmute(frozen_string_literal) };
2884            frozen_string_literal as u64
2885        });
2886        __bindgen_bitfield_unit.set_const::<8usize, 1u8>({
2887            let debug_frozen_string_literal: u32 =
2888                unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
2889            debug_frozen_string_literal as u64
2890        });
2891        __bindgen_bitfield_unit.set_const::<9usize, 1u8>({
2892            let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
2893            coverage_enabled as u64
2894        });
2895        __bindgen_bitfield_unit
2896    }
2897}
2898#[repr(C)]
2899#[derive(Debug, Copy, Clone)]
2900pub struct iseq_insn_info_entry {
2901    pub position: ::std::os::raw::c_uint,
2902    pub line_no: ::std::os::raw::c_int,
2903    pub events: rb_event_flag_t,
2904}
2905#[repr(C)]
2906#[derive(Debug, Copy, Clone)]
2907pub struct iseq_catch_table_entry {
2908    pub type_: iseq_catch_table_entry_catch_type,
2909    pub iseq: *const rb_iseq_t,
2910    pub start: ::std::os::raw::c_uint,
2911    pub end: ::std::os::raw::c_uint,
2912    pub cont: ::std::os::raw::c_uint,
2913    pub sp: ::std::os::raw::c_uint,
2914}
2915pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
2916    3;
2917pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
2918    5;
2919pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
2920pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
2921pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
2922pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
2923pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
2924#[repr(C, packed)]
2925#[derive(Copy, Clone)]
2926pub struct iseq_catch_table {
2927    pub size: ::std::os::raw::c_uint,
2928    pub entries: [iseq_catch_table_entry; 1usize],
2929}
2930#[repr(C)]
2931#[derive(Debug, Copy, Clone)]
2932pub struct iseq_compile_data_storage {
2933    pub next: *mut iseq_compile_data_storage,
2934    pub pos: ::std::os::raw::c_uint,
2935    pub size: ::std::os::raw::c_uint,
2936    pub buff: [::std::os::raw::c_char; 1usize],
2937}
2938#[repr(C)]
2939#[derive(Debug, Copy, Clone)]
2940pub struct rb_id_table {
2941    pub _address: u8,
2942}
2943#[repr(C)]
2944#[derive(Debug, Copy, Clone)]
2945pub struct rb_event_hook_struct {
2946    pub _address: u8,
2947}
2948#[repr(C)]
2949#[derive(Debug, Copy, Clone)]
2950pub struct rb_postponed_job_struct {
2951    pub _address: u8,
2952}
2953#[repr(C)]
2954#[derive(Debug, Copy, Clone)]
2955pub struct iseq_label_data {
2956    pub _address: u8,
2957}
2958#[repr(C)]
2959#[derive(Debug, Copy, Clone)]
2960pub struct iseq_compile_data_ensure_node_stack {
2961    pub _address: u8,
2962}