Skip to main content

rbspy_ruby_structs/
ruby_2_5_6.rs

1/* automatically generated by rust-bindgen 0.73.2 */
2
3#[repr(C)]
4#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
5pub struct __BindgenBitfieldUnit<Storage> {
6    storage: Storage,
7}
8impl<Storage> __BindgenBitfieldUnit<Storage> {
9    #[inline]
10    pub const fn new(storage: Storage) -> Self {
11        Self { storage }
12    }
13}
14impl<Storage> __BindgenBitfieldUnit<Storage>
15where
16    Storage: AsRef<[u8]> + AsMut<[u8]>,
17{
18    #[inline]
19    fn extract_bit(byte: u8, index: usize) -> bool {
20        let bit_index = if cfg!(target_endian = "big") {
21            7 - (index % 8)
22        } else {
23            index % 8
24        };
25        let mask = 1 << bit_index;
26        byte & mask == mask
27    }
28    #[inline]
29    pub fn get_bit(&self, index: usize) -> bool {
30        debug_assert!(index / 8 < self.storage.as_ref().len());
31        let byte_index = index / 8;
32        let byte = self.storage.as_ref()[byte_index];
33        Self::extract_bit(byte, index)
34    }
35    #[inline]
36    pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
37        debug_assert!(index / 8 < core::mem::size_of::<Storage>());
38        let byte_index = index / 8;
39        let byte = unsafe {
40            *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize)
41        };
42        Self::extract_bit(byte, index)
43    }
44    #[inline]
45    fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
46        let bit_index = if cfg!(target_endian = "big") {
47            7 - (index % 8)
48        } else {
49            index % 8
50        };
51        let mask = 1 << bit_index;
52        if val {
53            byte | mask
54        } else {
55            byte & !mask
56        }
57    }
58    #[inline]
59    pub fn set_bit(&mut self, index: usize, val: bool) {
60        debug_assert!(index / 8 < self.storage.as_ref().len());
61        let byte_index = index / 8;
62        let byte = &mut self.storage.as_mut()[byte_index];
63        *byte = Self::change_bit(*byte, index, val);
64    }
65    #[inline]
66    pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
67        debug_assert!(index / 8 < core::mem::size_of::<Storage>());
68        let byte_index = index / 8;
69        let byte = unsafe {
70            (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize)
71        };
72        unsafe { *byte = Self::change_bit(*byte, index, val) };
73    }
74    #[inline]
75    pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
76        debug_assert!(bit_width <= 64);
77        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
78        debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len());
79        if bit_width == 0 {
80            return 0;
81        }
82        let mut val = 0u64;
83        let storage = self.storage.as_ref();
84        let start_byte = bit_offset / 8;
85        let bit_shift = bit_offset % 8;
86        let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
87        if cfg!(target_endian = "big") {
88            for i in 0..bytes_needed {
89                val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8);
90            }
91        } else {
92            for i in 0..bytes_needed {
93                val |= (storage[start_byte + i] as u64) << (i * 8);
94            }
95        }
96        val >>= bit_shift;
97        if bit_width < 64 {
98            val &= (1u64 << bit_width) - 1;
99        }
100        if cfg!(target_endian = "big") {
101            val = val.reverse_bits() >> (64 - bit_width as usize);
102        }
103        val
104    }
105    #[inline]
106    pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
107        debug_assert!(bit_width <= 64);
108        debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
109        debug_assert!(
110            (bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::<Storage>()
111        );
112        if bit_width == 0 {
113            return 0;
114        }
115        let mut val = 0u64;
116        let start_byte = bit_offset / 8;
117        let bit_shift = bit_offset % 8;
118        let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
119        let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 };
120        if cfg!(target_endian = "big") {
121            for i in 0..bytes_needed {
122                let byte = unsafe { *storage_ptr.add(start_byte + i) };
123                val |= (byte.reverse_bits() as u64) << (i * 8);
124            }
125        } else {
126            for i in 0..bytes_needed {
127                let byte = unsafe { *storage_ptr.add(start_byte + i) };
128                val |= (byte as u64) << (i * 8);
129            }
130        }
131        val >>= bit_shift;
132        if bit_width < 64 {
133            val &= (1u64 << bit_width) - 1;
134        }
135        if cfg!(target_endian = "big") {
136            val = val.reverse_bits() >> (64 - bit_width as usize);
137        }
138        val
139    }
140    #[inline]
141    pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
142        debug_assert!(bit_width <= 64);
143        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
144        debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len());
145        if bit_width == 0 {
146            return;
147        }
148        let mut val = val;
149        if bit_width < 64 {
150            val &= (1u64 << bit_width) - 1;
151        }
152        if cfg!(target_endian = "big") {
153            val = val.reverse_bits() >> (64 - bit_width as usize);
154        }
155        let storage = self.storage.as_mut();
156        let start_byte = bit_offset / 8;
157        let bit_shift = bit_offset % 8;
158        let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
159        val <<= bit_shift;
160        let field_mask = if bit_width as usize + bit_shift >= 64 {
161            !0u64 << bit_shift
162        } else {
163            ((1u64 << bit_width) - 1) << bit_shift
164        };
165        for i in 0..bytes_needed {
166            let byte_val = (val >> (i * 8)) as u8;
167            let byte_mask = (field_mask >> (i * 8)) as u8;
168            if cfg!(target_endian = "big") {
169                let byte = storage[start_byte + i].reverse_bits();
170                let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
171                storage[start_byte + i] = new_byte.reverse_bits();
172            } else {
173                storage[start_byte + i] =
174                    (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask);
175            }
176        }
177    }
178    #[inline]
179    pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
180        debug_assert!(bit_width <= 64);
181        debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
182        debug_assert!(
183            (bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::<Storage>()
184        );
185        if bit_width == 0 {
186            return;
187        }
188        let mut val = val;
189        if bit_width < 64 {
190            val &= (1u64 << bit_width) - 1;
191        }
192        if cfg!(target_endian = "big") {
193            val = val.reverse_bits() >> (64 - bit_width as usize);
194        }
195        let start_byte = bit_offset / 8;
196        let bit_shift = bit_offset % 8;
197        let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
198        val <<= bit_shift;
199        let field_mask = if bit_width as usize + bit_shift >= 64 {
200            !0u64 << bit_shift
201        } else {
202            ((1u64 << bit_width) - 1) << bit_shift
203        };
204        let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 };
205        for i in 0..bytes_needed {
206            let byte_val = (val >> (i * 8)) as u8;
207            let byte_mask = (field_mask >> (i * 8)) as u8;
208            let byte_ptr = unsafe { storage_ptr.add(start_byte + i) };
209            if cfg!(target_endian = "big") {
210                let byte = unsafe { (*byte_ptr).reverse_bits() };
211                let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
212                unsafe { *byte_ptr = new_byte.reverse_bits() };
213            } else {
214                unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) };
215            }
216        }
217    }
218}
219#[doc = " Const-generic methods for efficient bitfield access when offset and width"]
220#[doc = " are known at compile time."]
221impl<const N: usize> __BindgenBitfieldUnit<[u8; N]> {
222    #[doc = " Get a field using const generics for compile-time optimization."]
223    #[doc = " Uses native word size operations when the field fits in usize."]
224    #[inline]
225    pub const fn get_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(&self) -> u64 {
226        debug_assert!(BIT_WIDTH <= 64);
227        debug_assert!(BIT_OFFSET / 8 < N);
228        debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
229        if BIT_WIDTH == 0 {
230            return 0;
231        }
232        let start_byte = BIT_OFFSET / 8;
233        let bit_shift = BIT_OFFSET % 8;
234        let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
235        if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
236            let mut val = 0usize;
237            if cfg!(target_endian = "big") {
238                let mut i = 0;
239                while i < bytes_needed {
240                    val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8);
241                    i += 1;
242                }
243            } else {
244                let mut i = 0;
245                while i < bytes_needed {
246                    val |= (self.storage[start_byte + i] as usize) << (i * 8);
247                    i += 1;
248                }
249            }
250            val >>= bit_shift;
251            if (BIT_WIDTH as u32) < usize::BITS {
252                val &= (1usize << BIT_WIDTH) - 1;
253            }
254            if cfg!(target_endian = "big") {
255                val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
256            }
257            val as u64
258        } else {
259            let mut val = 0u64;
260            if cfg!(target_endian = "big") {
261                let mut i = 0;
262                while i < bytes_needed {
263                    val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8);
264                    i += 1;
265                }
266            } else {
267                let mut i = 0;
268                while i < bytes_needed {
269                    val |= (self.storage[start_byte + i] as u64) << (i * 8);
270                    i += 1;
271                }
272            }
273            val >>= bit_shift;
274            if BIT_WIDTH < 64 {
275                val &= (1u64 << BIT_WIDTH) - 1;
276            }
277            if cfg!(target_endian = "big") {
278                val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
279            }
280            val
281        }
282    }
283    #[doc = " Set a field using const generics for compile-time optimization."]
284    #[doc = " Uses native word size operations when the field fits in usize."]
285    #[inline]
286    pub fn set_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(&mut self, val: u64) {
287        debug_assert!(BIT_WIDTH <= 64);
288        debug_assert!(BIT_OFFSET / 8 < N);
289        debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
290        if BIT_WIDTH == 0 {
291            return;
292        }
293        let start_byte = BIT_OFFSET / 8;
294        let bit_shift = BIT_OFFSET % 8;
295        let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
296        if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
297            let mut val = val as usize;
298            if (BIT_WIDTH as u32) < usize::BITS {
299                val &= (1usize << BIT_WIDTH) - 1;
300            }
301            if cfg!(target_endian = "big") {
302                val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
303            }
304            val <<= bit_shift;
305            let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize {
306                !0usize << bit_shift
307            } else {
308                ((1usize << BIT_WIDTH) - 1) << bit_shift
309            };
310            let mut i = 0;
311            while i < bytes_needed {
312                let byte_val = (val >> (i * 8)) as u8;
313                let byte_mask = (field_mask >> (i * 8)) as u8;
314                if cfg!(target_endian = "big") {
315                    let byte = self.storage[start_byte + i].reverse_bits();
316                    let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
317                    self.storage[start_byte + i] = new_byte.reverse_bits();
318                } else {
319                    self.storage[start_byte + i] =
320                        (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask);
321                }
322                i += 1;
323            }
324        } else {
325            let mut val = val;
326            if BIT_WIDTH < 64 {
327                val &= (1u64 << BIT_WIDTH) - 1;
328            }
329            if cfg!(target_endian = "big") {
330                val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
331            }
332            val <<= bit_shift;
333            let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 {
334                !0u64 << bit_shift
335            } else {
336                ((1u64 << BIT_WIDTH) - 1) << bit_shift
337            };
338            let mut i = 0;
339            while i < bytes_needed {
340                let byte_val = (val >> (i * 8)) as u8;
341                let byte_mask = (field_mask >> (i * 8)) as u8;
342                if cfg!(target_endian = "big") {
343                    let byte = self.storage[start_byte + i].reverse_bits();
344                    let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
345                    self.storage[start_byte + i] = new_byte.reverse_bits();
346                } else {
347                    self.storage[start_byte + i] =
348                        (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask);
349                }
350                i += 1;
351            }
352        }
353    }
354    #[doc = " Raw pointer get using const generics for compile-time optimization."]
355    #[doc = " Uses native word size operations when the field fits in usize."]
356    #[inline]
357    pub const unsafe fn raw_get_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(
358        this: *const Self,
359    ) -> u64 {
360        debug_assert!(BIT_WIDTH <= 64);
361        debug_assert!(BIT_OFFSET / 8 < N);
362        debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
363        if BIT_WIDTH == 0 {
364            return 0;
365        }
366        let start_byte = BIT_OFFSET / 8;
367        let bit_shift = BIT_OFFSET % 8;
368        let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
369        let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 };
370        if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
371            let mut val = 0usize;
372            if cfg!(target_endian = "big") {
373                let mut i = 0;
374                while i < bytes_needed {
375                    let byte = unsafe { *storage_ptr.add(start_byte + i) };
376                    val |= (byte.reverse_bits() as usize) << (i * 8);
377                    i += 1;
378                }
379            } else {
380                let mut i = 0;
381                while i < bytes_needed {
382                    let byte = unsafe { *storage_ptr.add(start_byte + i) };
383                    val |= (byte as usize) << (i * 8);
384                    i += 1;
385                }
386            }
387            val >>= bit_shift;
388            if (BIT_WIDTH as u32) < usize::BITS {
389                val &= (1usize << BIT_WIDTH) - 1;
390            }
391            if cfg!(target_endian = "big") {
392                val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
393            }
394            val as u64
395        } else {
396            let mut val = 0u64;
397            if cfg!(target_endian = "big") {
398                let mut i = 0;
399                while i < bytes_needed {
400                    let byte = unsafe { *storage_ptr.add(start_byte + i) };
401                    val |= (byte.reverse_bits() as u64) << (i * 8);
402                    i += 1;
403                }
404            } else {
405                let mut i = 0;
406                while i < bytes_needed {
407                    let byte = unsafe { *storage_ptr.add(start_byte + i) };
408                    val |= (byte as u64) << (i * 8);
409                    i += 1;
410                }
411            }
412            val >>= bit_shift;
413            if BIT_WIDTH < 64 {
414                val &= (1u64 << BIT_WIDTH) - 1;
415            }
416            if cfg!(target_endian = "big") {
417                val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
418            }
419            val
420        }
421    }
422    #[doc = " Raw pointer set using const generics for compile-time optimization."]
423    #[doc = " Uses native word size operations when the field fits in usize."]
424    #[inline]
425    pub unsafe fn raw_set_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(
426        this: *mut Self,
427        val: u64,
428    ) {
429        debug_assert!(BIT_WIDTH <= 64);
430        debug_assert!(BIT_OFFSET / 8 < N);
431        debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
432        if BIT_WIDTH == 0 {
433            return;
434        }
435        let start_byte = BIT_OFFSET / 8;
436        let bit_shift = BIT_OFFSET % 8;
437        let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
438        let storage_ptr = this.cast::<[u8; N]>().cast::<u8>();
439        if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
440            let mut val = val as usize;
441            if (BIT_WIDTH as u32) < usize::BITS {
442                val &= (1usize << BIT_WIDTH) - 1;
443            }
444            if cfg!(target_endian = "big") {
445                val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
446            }
447            val <<= bit_shift;
448            let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize {
449                !0usize << bit_shift
450            } else {
451                ((1usize << BIT_WIDTH) - 1) << bit_shift
452            };
453            let mut i = 0;
454            while i < bytes_needed {
455                let byte_val = (val >> (i * 8)) as u8;
456                let byte_mask = (field_mask >> (i * 8)) as u8;
457                let byte_ptr = unsafe { storage_ptr.add(start_byte + i) };
458                if cfg!(target_endian = "big") {
459                    let byte = unsafe { (*byte_ptr).reverse_bits() };
460                    let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
461                    unsafe { *byte_ptr = new_byte.reverse_bits() };
462                } else {
463                    unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) };
464                }
465                i += 1;
466            }
467        } else {
468            let mut val = val;
469            if BIT_WIDTH < 64 {
470                val &= (1u64 << BIT_WIDTH) - 1;
471            }
472            if cfg!(target_endian = "big") {
473                val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
474            }
475            val <<= bit_shift;
476            let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 {
477                !0u64 << bit_shift
478            } else {
479                ((1u64 << BIT_WIDTH) - 1) << bit_shift
480            };
481            let mut i = 0;
482            while i < bytes_needed {
483                let byte_val = (val >> (i * 8)) as u8;
484                let byte_mask = (field_mask >> (i * 8)) as u8;
485                let byte_ptr = unsafe { storage_ptr.add(start_byte + i) };
486                if cfg!(target_endian = "big") {
487                    let byte = unsafe { (*byte_ptr).reverse_bits() };
488                    let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
489                    unsafe { *byte_ptr = new_byte.reverse_bits() };
490                } else {
491                    unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) };
492                }
493                i += 1;
494            }
495        }
496    }
497}
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 fork_gen: rb_serial_t,
2008    pub waiting_fds: list_head,
2009    pub living_threads: list_head,
2010    pub living_thread_num: usize,
2011    pub thgroup_default: VALUE,
2012    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2013    pub trace_running: ::std::os::raw::c_int,
2014    pub sleeper: ::std::os::raw::c_int,
2015    pub mark_object_ary: VALUE,
2016    pub special_exceptions: [VALUE; 5usize],
2017    pub top_self: VALUE,
2018    pub load_path: VALUE,
2019    pub load_path_snapshot: VALUE,
2020    pub load_path_check_cache: VALUE,
2021    pub expanded_load_path: VALUE,
2022    pub loaded_features: VALUE,
2023    pub loaded_features_snapshot: VALUE,
2024    pub loaded_features_index: *mut st_table,
2025    pub loading_table: *mut st_table,
2026    pub trap_list: rb_vm_struct__bindgen_ty_1,
2027    pub event_hooks: rb_hook_list_t,
2028    pub ensure_rollback_table: *mut st_table,
2029    pub postponed_job_buffer: *mut rb_postponed_job_struct,
2030    pub postponed_job_index: ::std::os::raw::c_int,
2031    pub src_encoding_index: ::std::os::raw::c_int,
2032    pub verbose: VALUE,
2033    pub debug: VALUE,
2034    pub orig_progname: VALUE,
2035    pub progname: VALUE,
2036    pub coverages: VALUE,
2037    pub coverage_mode: ::std::os::raw::c_int,
2038    pub defined_module_hash: VALUE,
2039    pub objspace: *mut rb_objspace,
2040    pub at_exit: *mut rb_at_exit_list,
2041    pub defined_strings: *mut VALUE,
2042    pub frozen_strings: *mut st_table,
2043    pub default_params: rb_vm_struct__bindgen_ty_2,
2044    pub redefined_flag: [::std::os::raw::c_short; 25usize],
2045}
2046#[repr(C)]
2047#[derive(Debug, Copy, Clone)]
2048pub struct rb_vm_struct__bindgen_ty_1 {
2049    pub cmd: [VALUE; 65usize],
2050    pub safe: [::std::os::raw::c_uchar; 65usize],
2051}
2052#[repr(C)]
2053#[derive(Debug, Copy, Clone)]
2054pub struct rb_vm_struct__bindgen_ty_2 {
2055    pub thread_vm_stack_size: usize,
2056    pub thread_machine_stack_size: usize,
2057    pub fiber_vm_stack_size: usize,
2058    pub fiber_machine_stack_size: usize,
2059}
2060impl ::std::fmt::Debug for rb_vm_struct {
2061    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2062        write ! (f , "rb_vm_struct {{ self: {:?}, gvl: {:?}, thread_destruct_lock: {:?}, main_thread: {:?}, running_thread: {:?}, fork_gen: {:?}, 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 . fork_gen , 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)
2063    }
2064}
2065impl rb_vm_struct {
2066    #[inline]
2067    #[allow(unnecessary_transmutes)]
2068    pub fn running(&self) -> ::std::os::raw::c_uint {
2069        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2070    }
2071    #[inline]
2072    #[allow(unnecessary_transmutes)]
2073    pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2074        unsafe {
2075            let val: u32 = ::std::mem::transmute(val);
2076            self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2077        }
2078    }
2079    #[inline]
2080    #[allow(unnecessary_transmutes)]
2081    pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2082        unsafe {
2083            ::std::mem::transmute(
2084                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
2085                    ::std::ptr::addr_of!((*this)._bitfield_1),
2086                ) as u32,
2087            )
2088        }
2089    }
2090    #[inline]
2091    #[allow(unnecessary_transmutes)]
2092    pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2093        unsafe {
2094            let val: u32 = ::std::mem::transmute(val);
2095            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
2096                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2097                val as u64,
2098            )
2099        }
2100    }
2101    #[inline]
2102    #[allow(unnecessary_transmutes)]
2103    pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2104        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2105    }
2106    #[inline]
2107    #[allow(unnecessary_transmutes)]
2108    pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2109        unsafe {
2110            let val: u32 = ::std::mem::transmute(val);
2111            self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2112        }
2113    }
2114    #[inline]
2115    #[allow(unnecessary_transmutes)]
2116    pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2117        unsafe {
2118            ::std::mem::transmute(
2119                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
2120                    ::std::ptr::addr_of!((*this)._bitfield_1),
2121                ) as u32,
2122            )
2123        }
2124    }
2125    #[inline]
2126    #[allow(unnecessary_transmutes)]
2127    pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2128        unsafe {
2129            let val: u32 = ::std::mem::transmute(val);
2130            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
2131                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2132                val as u64,
2133            )
2134        }
2135    }
2136    #[inline]
2137    #[allow(unnecessary_transmutes)]
2138    pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2139        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2140    }
2141    #[inline]
2142    #[allow(unnecessary_transmutes)]
2143    pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2144        unsafe {
2145            let val: u32 = ::std::mem::transmute(val);
2146            self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2147        }
2148    }
2149    #[inline]
2150    #[allow(unnecessary_transmutes)]
2151    pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2152        unsafe {
2153            ::std::mem::transmute(
2154                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2155                    ::std::ptr::addr_of!((*this)._bitfield_1),
2156                ) as u32,
2157            )
2158        }
2159    }
2160    #[inline]
2161    #[allow(unnecessary_transmutes)]
2162    pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2163        unsafe {
2164            let val: u32 = ::std::mem::transmute(val);
2165            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2166                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2167                val as u64,
2168            )
2169        }
2170    }
2171    #[inline]
2172    #[allow(unnecessary_transmutes)]
2173    pub fn new_bitfield_1(
2174        running: ::std::os::raw::c_uint,
2175        thread_abort_on_exception: ::std::os::raw::c_uint,
2176        thread_report_on_exception: ::std::os::raw::c_uint,
2177    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2178        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2179        __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2180            let running: u32 = unsafe { ::std::mem::transmute(running) };
2181            running as u64
2182        });
2183        __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2184            let thread_abort_on_exception: u32 =
2185                unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2186            thread_abort_on_exception as u64
2187        });
2188        __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2189            let thread_report_on_exception: u32 =
2190                unsafe { ::std::mem::transmute(thread_report_on_exception) };
2191            thread_report_on_exception as u64
2192        });
2193        __bindgen_bitfield_unit
2194    }
2195}
2196pub type rb_vm_t = rb_vm_struct;
2197#[repr(C)]
2198#[derive(Debug, Copy, Clone)]
2199pub struct rb_control_frame_struct {
2200    pub pc: *const VALUE,
2201    pub sp: *mut VALUE,
2202    pub iseq: *const rb_iseq_t,
2203    pub self_: VALUE,
2204    pub ep: *const VALUE,
2205    pub block_code: *const ::std::os::raw::c_void,
2206}
2207pub type rb_control_frame_t = rb_control_frame_struct;
2208pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2209pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2210pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2211pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2212pub type rb_thread_status = ::std::os::raw::c_uint;
2213pub type rb_jmpbuf_t = jmp_buf;
2214#[repr(C)]
2215#[derive(Debug, Copy, Clone)]
2216pub struct rb_vm_tag {
2217    pub tag: VALUE,
2218    pub retval: VALUE,
2219    pub buf: rb_jmpbuf_t,
2220    pub prev: *mut rb_vm_tag,
2221    pub state: ruby_tag_type,
2222}
2223#[repr(C)]
2224#[derive(Debug, Copy, Clone)]
2225pub struct rb_vm_protect_tag {
2226    pub prev: *mut rb_vm_protect_tag,
2227}
2228#[repr(C)]
2229#[derive(Debug, Copy, Clone)]
2230pub struct rb_unblock_callback {
2231    pub func: rb_unblock_function_t,
2232    pub arg: *mut ::std::os::raw::c_void,
2233}
2234#[repr(C)]
2235#[derive(Debug)]
2236pub struct rb_mutex_struct {
2237    _unused: [u8; 0],
2238}
2239#[repr(C)]
2240#[derive(Debug, Copy, Clone)]
2241pub struct rb_thread_list_struct {
2242    pub next: *mut rb_thread_list_struct,
2243    pub th: *mut rb_thread_struct,
2244}
2245pub type rb_thread_list_t = rb_thread_list_struct;
2246#[repr(C)]
2247#[derive(Debug, Copy, Clone)]
2248pub struct rb_ensure_entry {
2249    pub marker: VALUE,
2250    pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
2251    pub data2: VALUE,
2252}
2253#[repr(C)]
2254#[derive(Debug, Copy, Clone)]
2255pub struct rb_ensure_list {
2256    pub next: *mut rb_ensure_list,
2257    pub entry: rb_ensure_entry,
2258}
2259pub type rb_ensure_list_t = rb_ensure_list;
2260#[repr(C)]
2261#[derive(Debug)]
2262pub struct rb_fiber_struct {
2263    _unused: [u8; 0],
2264}
2265pub type rb_fiber_t = rb_fiber_struct;
2266#[repr(C)]
2267#[derive(Debug, Copy, Clone)]
2268pub struct rb_execution_context_struct {
2269    pub vm_stack: *mut VALUE,
2270    pub vm_stack_size: usize,
2271    pub cfp: *mut rb_control_frame_t,
2272    pub tag: *mut rb_vm_tag,
2273    pub protect_tag: *mut rb_vm_protect_tag,
2274    pub safe_level: ::std::os::raw::c_int,
2275    pub raised_flag: ::std::os::raw::c_int,
2276    pub interrupt_flag: rb_atomic_t,
2277    pub interrupt_mask: ::std::os::raw::c_ulong,
2278    pub fiber_ptr: *mut rb_fiber_t,
2279    pub thread_ptr: *mut rb_thread_struct,
2280    pub local_storage: *mut st_table,
2281    pub local_storage_recursive_hash: VALUE,
2282    pub local_storage_recursive_hash_for_trace: VALUE,
2283    pub root_lep: *const VALUE,
2284    pub root_svar: VALUE,
2285    pub ensure_list: *mut rb_ensure_list_t,
2286    pub trace_arg: *mut rb_trace_arg_struct,
2287    pub errinfo: VALUE,
2288    pub passed_block_handler: VALUE,
2289    pub passed_bmethod_me: *const rb_callable_method_entry_t,
2290    pub method_missing_reason: method_missing_reason,
2291    pub machine: rb_execution_context_struct__bindgen_ty_1,
2292}
2293#[repr(C)]
2294#[derive(Debug, Copy, Clone)]
2295pub struct rb_execution_context_struct__bindgen_ty_1 {
2296    pub stack_start: *mut VALUE,
2297    pub stack_end: *mut VALUE,
2298    pub stack_maxsize: usize,
2299    pub regs: jmp_buf,
2300}
2301pub type rb_execution_context_t = rb_execution_context_struct;
2302#[repr(C)]
2303#[derive(Copy, Clone)]
2304pub struct rb_thread_struct {
2305    pub vmlt_node: list_node,
2306    pub self_: VALUE,
2307    pub vm: *mut rb_vm_t,
2308    pub ec: *mut rb_execution_context_t,
2309    pub last_status: VALUE,
2310    pub calling: *mut rb_calling_info,
2311    pub top_self: VALUE,
2312    pub top_wrapper: VALUE,
2313    pub thread_id: rb_nativethread_id_t,
2314    pub status: rb_thread_status,
2315    pub to_kill: ::std::os::raw::c_int,
2316    pub priority: ::std::os::raw::c_int,
2317    pub native_thread_data: native_thread_data_t,
2318    pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2319    pub thgroup: VALUE,
2320    pub value: VALUE,
2321    pub pending_interrupt_queue: VALUE,
2322    pub pending_interrupt_mask_stack: VALUE,
2323    pub pending_interrupt_queue_checked: ::std::os::raw::c_int,
2324    pub interrupt_lock: rb_nativethread_lock_t,
2325    pub unblock: rb_unblock_callback,
2326    pub locking_mutex: VALUE,
2327    pub keeping_mutexes: *mut rb_mutex_struct,
2328    pub join_list: *mut rb_thread_list_t,
2329    pub first_proc: VALUE,
2330    pub first_args: VALUE,
2331    pub first_func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
2332    pub stat_insn_usage: VALUE,
2333    pub root_fiber: *mut rb_fiber_t,
2334    pub root_jmpbuf: rb_jmpbuf_t,
2335    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2336    pub altstack: *mut ::std::os::raw::c_void,
2337    pub running_time_us: u32,
2338    pub name: VALUE,
2339}
2340impl ::std::fmt::Debug for rb_thread_struct {
2341    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2342        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)
2343    }
2344}
2345impl rb_thread_struct {
2346    #[inline]
2347    #[allow(unnecessary_transmutes)]
2348    pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2349        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2350    }
2351    #[inline]
2352    #[allow(unnecessary_transmutes)]
2353    pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2354        unsafe {
2355            let val: u32 = ::std::mem::transmute(val);
2356            self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2357        }
2358    }
2359    #[inline]
2360    #[allow(unnecessary_transmutes)]
2361    pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2362        unsafe {
2363            ::std::mem::transmute(
2364                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
2365                    ::std::ptr::addr_of!((*this)._bitfield_1),
2366                ) as u32,
2367            )
2368        }
2369    }
2370    #[inline]
2371    #[allow(unnecessary_transmutes)]
2372    pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2373        unsafe {
2374            let val: u32 = ::std::mem::transmute(val);
2375            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
2376                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2377                val as u64,
2378            )
2379        }
2380    }
2381    #[inline]
2382    #[allow(unnecessary_transmutes)]
2383    pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2384        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2385    }
2386    #[inline]
2387    #[allow(unnecessary_transmutes)]
2388    pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2389        unsafe {
2390            let val: u32 = ::std::mem::transmute(val);
2391            self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2392        }
2393    }
2394    #[inline]
2395    #[allow(unnecessary_transmutes)]
2396    pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2397        unsafe {
2398            ::std::mem::transmute(
2399                <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
2400                    ::std::ptr::addr_of!((*this)._bitfield_1),
2401                ) as u32,
2402            )
2403        }
2404    }
2405    #[inline]
2406    #[allow(unnecessary_transmutes)]
2407    pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2408        unsafe {
2409            let val: u32 = ::std::mem::transmute(val);
2410            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
2411                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2412                val as u64,
2413            )
2414        }
2415    }
2416    #[inline]
2417    #[allow(unnecessary_transmutes)]
2418    pub fn new_bitfield_1(
2419        abort_on_exception: ::std::os::raw::c_uint,
2420        report_on_exception: ::std::os::raw::c_uint,
2421    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2422        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2423        __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2424            let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2425            abort_on_exception as u64
2426        });
2427        __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2428            let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2429            report_on_exception as u64
2430        });
2431        __bindgen_bitfield_unit
2432    }
2433}
2434pub type rb_thread_t = rb_thread_struct;
2435#[repr(C)]
2436#[derive(Debug, Copy, Clone)]
2437pub struct rb_trace_arg_struct {
2438    pub event: rb_event_flag_t,
2439    pub ec: *mut rb_execution_context_t,
2440    pub cfp: *const rb_control_frame_t,
2441    pub self_: VALUE,
2442    pub id: ID,
2443    pub called_id: ID,
2444    pub klass: VALUE,
2445    pub data: VALUE,
2446    pub klass_solved: ::std::os::raw::c_int,
2447    pub lineno: ::std::os::raw::c_int,
2448    pub path: VALUE,
2449}
2450#[repr(C)]
2451#[derive(Debug, Copy, Clone)]
2452pub struct iseq_compile_data {
2453    pub err_info: VALUE,
2454    pub mark_ary: VALUE,
2455    pub catch_table_ary: VALUE,
2456    pub start_label: *mut iseq_label_data,
2457    pub end_label: *mut iseq_label_data,
2458    pub redo_label: *mut iseq_label_data,
2459    pub current_block: *const rb_iseq_t,
2460    pub ensure_node: VALUE,
2461    pub for_iseq: VALUE,
2462    pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2463    pub loopval_popped: ::std::os::raw::c_int,
2464    pub cached_const: ::std::os::raw::c_int,
2465    pub storage_head: *mut iseq_compile_data_storage,
2466    pub storage_current: *mut iseq_compile_data_storage,
2467    pub last_line: ::std::os::raw::c_int,
2468    pub label_no: ::std::os::raw::c_int,
2469    pub node_level: ::std::os::raw::c_int,
2470    pub ci_index: ::std::os::raw::c_uint,
2471    pub ci_kw_index: ::std::os::raw::c_uint,
2472    pub option: *const rb_compile_option_t,
2473    pub ivar_cache_table: *mut rb_id_table,
2474}
2475#[repr(C)]
2476#[derive(Debug, Copy, Clone)]
2477pub struct rb_compile_option_struct {
2478    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2479    pub debug_level: ::std::os::raw::c_int,
2480}
2481impl rb_compile_option_struct {
2482    #[inline]
2483    #[allow(unnecessary_transmutes)]
2484    pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
2485        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2486    }
2487    #[inline]
2488    #[allow(unnecessary_transmutes)]
2489    pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
2490        unsafe {
2491            let val: u32 = ::std::mem::transmute(val);
2492            self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2493        }
2494    }
2495    #[inline]
2496    #[allow(unnecessary_transmutes)]
2497    pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
2498        unsafe {
2499            ::std::mem::transmute(
2500                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(
2501                    ::std::ptr::addr_of!((*this)._bitfield_1),
2502                ) as u32,
2503            )
2504        }
2505    }
2506    #[inline]
2507    #[allow(unnecessary_transmutes)]
2508    pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2509        unsafe {
2510            let val: u32 = ::std::mem::transmute(val);
2511            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(
2512                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2513                val as u64,
2514            )
2515        }
2516    }
2517    #[inline]
2518    #[allow(unnecessary_transmutes)]
2519    pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
2520        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2521    }
2522    #[inline]
2523    #[allow(unnecessary_transmutes)]
2524    pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
2525        unsafe {
2526            let val: u32 = ::std::mem::transmute(val);
2527            self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2528        }
2529    }
2530    #[inline]
2531    #[allow(unnecessary_transmutes)]
2532    pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2533        unsafe {
2534            ::std::mem::transmute(
2535                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(
2536                    ::std::ptr::addr_of!((*this)._bitfield_1),
2537                ) as u32,
2538            )
2539        }
2540    }
2541    #[inline]
2542    #[allow(unnecessary_transmutes)]
2543    pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2544        unsafe {
2545            let val: u32 = ::std::mem::transmute(val);
2546            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(
2547                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2548                val as u64,
2549            )
2550        }
2551    }
2552    #[inline]
2553    #[allow(unnecessary_transmutes)]
2554    pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
2555        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2556    }
2557    #[inline]
2558    #[allow(unnecessary_transmutes)]
2559    pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
2560        unsafe {
2561            let val: u32 = ::std::mem::transmute(val);
2562            self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2563        }
2564    }
2565    #[inline]
2566    #[allow(unnecessary_transmutes)]
2567    pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2568        unsafe {
2569            ::std::mem::transmute(
2570                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(
2571                    ::std::ptr::addr_of!((*this)._bitfield_1),
2572                ) as u32,
2573            )
2574        }
2575    }
2576    #[inline]
2577    #[allow(unnecessary_transmutes)]
2578    pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2579        unsafe {
2580            let val: u32 = ::std::mem::transmute(val);
2581            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(
2582                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2583                val as u64,
2584            )
2585        }
2586    }
2587    #[inline]
2588    #[allow(unnecessary_transmutes)]
2589    pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
2590        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2591    }
2592    #[inline]
2593    #[allow(unnecessary_transmutes)]
2594    pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
2595        unsafe {
2596            let val: u32 = ::std::mem::transmute(val);
2597            self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2598        }
2599    }
2600    #[inline]
2601    #[allow(unnecessary_transmutes)]
2602    pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
2603        unsafe {
2604            ::std::mem::transmute(
2605                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(
2606                    ::std::ptr::addr_of!((*this)._bitfield_1),
2607                ) as u32,
2608            )
2609        }
2610    }
2611    #[inline]
2612    #[allow(unnecessary_transmutes)]
2613    pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2614        unsafe {
2615            let val: u32 = ::std::mem::transmute(val);
2616            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(
2617                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2618                val as u64,
2619            )
2620        }
2621    }
2622    #[inline]
2623    #[allow(unnecessary_transmutes)]
2624    pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
2625        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
2626    }
2627    #[inline]
2628    #[allow(unnecessary_transmutes)]
2629    pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
2630        unsafe {
2631            let val: u32 = ::std::mem::transmute(val);
2632            self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
2633        }
2634    }
2635    #[inline]
2636    #[allow(unnecessary_transmutes)]
2637    pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2638        unsafe {
2639            ::std::mem::transmute(
2640                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(
2641                    ::std::ptr::addr_of!((*this)._bitfield_1),
2642                ) as u32,
2643            )
2644        }
2645    }
2646    #[inline]
2647    #[allow(unnecessary_transmutes)]
2648    pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2649        unsafe {
2650            let val: u32 = ::std::mem::transmute(val);
2651            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(
2652                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2653                val as u64,
2654            )
2655        }
2656    }
2657    #[inline]
2658    #[allow(unnecessary_transmutes)]
2659    pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
2660        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
2661    }
2662    #[inline]
2663    #[allow(unnecessary_transmutes)]
2664    pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
2665        unsafe {
2666            let val: u32 = ::std::mem::transmute(val);
2667            self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
2668        }
2669    }
2670    #[inline]
2671    #[allow(unnecessary_transmutes)]
2672    pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2673        unsafe {
2674            ::std::mem::transmute(
2675                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<5usize, 1u8>(
2676                    ::std::ptr::addr_of!((*this)._bitfield_1),
2677                ) as u32,
2678            )
2679        }
2680    }
2681    #[inline]
2682    #[allow(unnecessary_transmutes)]
2683    pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2684        unsafe {
2685            let val: u32 = ::std::mem::transmute(val);
2686            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<5usize, 1u8>(
2687                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2688                val as u64,
2689            )
2690        }
2691    }
2692    #[inline]
2693    #[allow(unnecessary_transmutes)]
2694    pub fn stack_caching(&self) -> ::std::os::raw::c_uint {
2695        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
2696    }
2697    #[inline]
2698    #[allow(unnecessary_transmutes)]
2699    pub fn set_stack_caching(&mut self, val: ::std::os::raw::c_uint) {
2700        unsafe {
2701            let val: u32 = ::std::mem::transmute(val);
2702            self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
2703        }
2704    }
2705    #[inline]
2706    #[allow(unnecessary_transmutes)]
2707    pub unsafe fn stack_caching_raw(this: *const Self) -> ::std::os::raw::c_uint {
2708        unsafe {
2709            ::std::mem::transmute(
2710                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<6usize, 1u8>(
2711                    ::std::ptr::addr_of!((*this)._bitfield_1),
2712                ) as u32,
2713            )
2714        }
2715    }
2716    #[inline]
2717    #[allow(unnecessary_transmutes)]
2718    pub unsafe fn set_stack_caching_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2719        unsafe {
2720            let val: u32 = ::std::mem::transmute(val);
2721            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<6usize, 1u8>(
2722                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2723                val as u64,
2724            )
2725        }
2726    }
2727    #[inline]
2728    #[allow(unnecessary_transmutes)]
2729    pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
2730        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
2731    }
2732    #[inline]
2733    #[allow(unnecessary_transmutes)]
2734    pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
2735        unsafe {
2736            let val: u32 = ::std::mem::transmute(val);
2737            self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
2738        }
2739    }
2740    #[inline]
2741    #[allow(unnecessary_transmutes)]
2742    pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
2743        unsafe {
2744            ::std::mem::transmute(
2745                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(
2746                    ::std::ptr::addr_of!((*this)._bitfield_1),
2747                ) as u32,
2748            )
2749        }
2750    }
2751    #[inline]
2752    #[allow(unnecessary_transmutes)]
2753    pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2754        unsafe {
2755            let val: u32 = ::std::mem::transmute(val);
2756            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(
2757                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2758                val as u64,
2759            )
2760        }
2761    }
2762    #[inline]
2763    #[allow(unnecessary_transmutes)]
2764    pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
2765        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) }
2766    }
2767    #[inline]
2768    #[allow(unnecessary_transmutes)]
2769    pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
2770        unsafe {
2771            let val: u32 = ::std::mem::transmute(val);
2772            self._bitfield_1.set_const::<8usize, 1u8>(val as u64)
2773        }
2774    }
2775    #[inline]
2776    #[allow(unnecessary_transmutes)]
2777    pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
2778        unsafe {
2779            ::std::mem::transmute(
2780                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(
2781                    ::std::ptr::addr_of!((*this)._bitfield_1),
2782                ) as u32,
2783            )
2784        }
2785    }
2786    #[inline]
2787    #[allow(unnecessary_transmutes)]
2788    pub unsafe fn set_debug_frozen_string_literal_raw(
2789        this: *mut Self,
2790        val: ::std::os::raw::c_uint,
2791    ) {
2792        unsafe {
2793            let val: u32 = ::std::mem::transmute(val);
2794            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(
2795                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2796                val as u64,
2797            )
2798        }
2799    }
2800    #[inline]
2801    #[allow(unnecessary_transmutes)]
2802    pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
2803        unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u32) }
2804    }
2805    #[inline]
2806    #[allow(unnecessary_transmutes)]
2807    pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
2808        unsafe {
2809            let val: u32 = ::std::mem::transmute(val);
2810            self._bitfield_1.set_const::<9usize, 1u8>(val as u64)
2811        }
2812    }
2813    #[inline]
2814    #[allow(unnecessary_transmutes)]
2815    pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
2816        unsafe {
2817            ::std::mem::transmute(
2818                <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(
2819                    ::std::ptr::addr_of!((*this)._bitfield_1),
2820                ) as u32,
2821            )
2822        }
2823    }
2824    #[inline]
2825    #[allow(unnecessary_transmutes)]
2826    pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2827        unsafe {
2828            let val: u32 = ::std::mem::transmute(val);
2829            <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(
2830                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2831                val as u64,
2832            )
2833        }
2834    }
2835    #[inline]
2836    #[allow(unnecessary_transmutes)]
2837    pub fn new_bitfield_1(
2838        inline_const_cache: ::std::os::raw::c_uint,
2839        peephole_optimization: ::std::os::raw::c_uint,
2840        tailcall_optimization: ::std::os::raw::c_uint,
2841        specialized_instruction: ::std::os::raw::c_uint,
2842        operands_unification: ::std::os::raw::c_uint,
2843        instructions_unification: ::std::os::raw::c_uint,
2844        stack_caching: ::std::os::raw::c_uint,
2845        frozen_string_literal: ::std::os::raw::c_uint,
2846        debug_frozen_string_literal: ::std::os::raw::c_uint,
2847        coverage_enabled: ::std::os::raw::c_uint,
2848    ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2849        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2850        __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2851            let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
2852            inline_const_cache as u64
2853        });
2854        __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2855            let peephole_optimization: u32 =
2856                unsafe { ::std::mem::transmute(peephole_optimization) };
2857            peephole_optimization as u64
2858        });
2859        __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2860            let tailcall_optimization: u32 =
2861                unsafe { ::std::mem::transmute(tailcall_optimization) };
2862            tailcall_optimization as u64
2863        });
2864        __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2865            let specialized_instruction: u32 =
2866                unsafe { ::std::mem::transmute(specialized_instruction) };
2867            specialized_instruction as u64
2868        });
2869        __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
2870            let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
2871            operands_unification as u64
2872        });
2873        __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
2874            let instructions_unification: u32 =
2875                unsafe { ::std::mem::transmute(instructions_unification) };
2876            instructions_unification as u64
2877        });
2878        __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
2879            let stack_caching: u32 = unsafe { ::std::mem::transmute(stack_caching) };
2880            stack_caching as u64
2881        });
2882        __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
2883            let frozen_string_literal: u32 =
2884                unsafe { ::std::mem::transmute(frozen_string_literal) };
2885            frozen_string_literal as u64
2886        });
2887        __bindgen_bitfield_unit.set_const::<8usize, 1u8>({
2888            let debug_frozen_string_literal: u32 =
2889                unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
2890            debug_frozen_string_literal as u64
2891        });
2892        __bindgen_bitfield_unit.set_const::<9usize, 1u8>({
2893            let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
2894            coverage_enabled as u64
2895        });
2896        __bindgen_bitfield_unit
2897    }
2898}
2899#[repr(C)]
2900#[derive(Debug, Copy, Clone)]
2901pub struct iseq_insn_info_entry {
2902    pub position: ::std::os::raw::c_uint,
2903    pub line_no: ::std::os::raw::c_int,
2904    pub events: rb_event_flag_t,
2905}
2906#[repr(C)]
2907#[derive(Debug, Copy, Clone)]
2908pub struct iseq_catch_table_entry {
2909    pub type_: iseq_catch_table_entry_catch_type,
2910    pub iseq: *const rb_iseq_t,
2911    pub start: ::std::os::raw::c_uint,
2912    pub end: ::std::os::raw::c_uint,
2913    pub cont: ::std::os::raw::c_uint,
2914    pub sp: ::std::os::raw::c_uint,
2915}
2916pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
2917    3;
2918pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
2919    5;
2920pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
2921pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
2922pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
2923pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
2924pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
2925#[repr(C, packed)]
2926#[derive(Copy, Clone)]
2927pub struct iseq_catch_table {
2928    pub size: ::std::os::raw::c_uint,
2929    pub entries: [iseq_catch_table_entry; 1usize],
2930}
2931#[repr(C)]
2932#[derive(Debug, Copy, Clone)]
2933pub struct iseq_compile_data_storage {
2934    pub next: *mut iseq_compile_data_storage,
2935    pub pos: ::std::os::raw::c_uint,
2936    pub size: ::std::os::raw::c_uint,
2937    pub buff: [::std::os::raw::c_char; 1usize],
2938}
2939#[repr(C)]
2940#[derive(Debug, Copy, Clone)]
2941pub struct rb_id_table {
2942    pub _address: u8,
2943}
2944#[repr(C)]
2945#[derive(Debug, Copy, Clone)]
2946pub struct rb_event_hook_struct {
2947    pub _address: u8,
2948}
2949#[repr(C)]
2950#[derive(Debug, Copy, Clone)]
2951pub struct rb_postponed_job_struct {
2952    pub _address: u8,
2953}
2954#[repr(C)]
2955#[derive(Debug, Copy, Clone)]
2956pub struct iseq_label_data {
2957    pub _address: u8,
2958}
2959#[repr(C)]
2960#[derive(Debug, Copy, Clone)]
2961pub struct iseq_compile_data_ensure_node_stack {
2962    pub _address: u8,
2963}