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