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(Copy, Clone)]
535pub union __atomic_wide_counter {
536 pub __value64: ::std::os::raw::c_ulonglong,
537 pub __value32: __atomic_wide_counter__bindgen_ty_1,
538}
539#[repr(C)]
540#[derive(Debug, Copy, Clone)]
541pub struct __atomic_wide_counter__bindgen_ty_1 {
542 pub __low: ::std::os::raw::c_uint,
543 pub __high: ::std::os::raw::c_uint,
544}
545impl ::std::fmt::Debug for __atomic_wide_counter {
546 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
547 write!(f, "__atomic_wide_counter {{ union }}")
548 }
549}
550#[repr(C)]
551#[derive(Debug, Copy, Clone)]
552pub struct __pthread_internal_list {
553 pub __prev: *mut __pthread_internal_list,
554 pub __next: *mut __pthread_internal_list,
555}
556pub type __pthread_list_t = __pthread_internal_list;
557#[repr(C)]
558#[derive(Debug, Copy, Clone)]
559pub struct __pthread_mutex_s {
560 pub __lock: ::std::os::raw::c_int,
561 pub __count: ::std::os::raw::c_uint,
562 pub __owner: ::std::os::raw::c_int,
563 pub __nusers: ::std::os::raw::c_uint,
564 pub __kind: ::std::os::raw::c_int,
565 pub __spins: ::std::os::raw::c_short,
566 pub __elision: ::std::os::raw::c_short,
567 pub __list: __pthread_list_t,
568}
569#[repr(C)]
570#[derive(Copy, Clone)]
571pub struct __pthread_cond_s {
572 pub __wseq: __atomic_wide_counter,
573 pub __g1_start: __atomic_wide_counter,
574 pub __g_refs: [::std::os::raw::c_uint; 2usize],
575 pub __g_size: [::std::os::raw::c_uint; 2usize],
576 pub __g1_orig_size: ::std::os::raw::c_uint,
577 pub __wrefs: ::std::os::raw::c_uint,
578 pub __g_signals: [::std::os::raw::c_uint; 2usize],
579}
580impl ::std::fmt::Debug for __pthread_cond_s {
581 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
582 write ! (f , "__pthread_cond_s {{ __wseq: {:?}, __g1_start: {:?}, __g_refs: {:?}, __g_size: {:?}, __g1_orig_size: {:?}, __wrefs: {:?}, __g_signals: {:?} }}" , self . __wseq , self . __g1_start , self . __g_refs , self . __g_size , self . __g1_orig_size , self . __wrefs , self . __g_signals)
583 }
584}
585pub type pthread_t = usize;
586#[repr(C)]
587#[derive(Copy, Clone)]
588pub union pthread_mutex_t {
589 pub __data: __pthread_mutex_s,
590 pub __size: [::std::os::raw::c_char; 40usize],
591 pub __align: ::std::os::raw::c_long,
592}
593impl ::std::fmt::Debug for pthread_mutex_t {
594 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
595 write!(f, "pthread_mutex_t {{ union }}")
596 }
597}
598#[repr(C)]
599#[derive(Copy, Clone)]
600pub union pthread_cond_t {
601 pub __data: __pthread_cond_s,
602 pub __size: [::std::os::raw::c_char; 48usize],
603 pub __align: ::std::os::raw::c_longlong,
604}
605impl ::std::fmt::Debug for pthread_cond_t {
606 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
607 write!(f, "pthread_cond_t {{ union }}")
608 }
609}
610pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
611#[repr(C)]
612#[derive(Debug, Copy, Clone)]
613pub struct __jmp_buf_tag {
614 pub __jmpbuf: __jmp_buf,
615 pub __mask_was_saved: ::std::os::raw::c_int,
616 pub __saved_mask: __sigset_t,
617}
618pub type jmp_buf = [__jmp_buf_tag; 1usize];
619pub type sigjmp_buf = [__jmp_buf_tag; 1usize];
620#[repr(C)]
621#[derive(Debug, Copy, Clone)]
622pub struct ccan_list_node {
623 pub next: *mut ccan_list_node,
624 pub prev: *mut ccan_list_node,
625}
626#[repr(C)]
627#[derive(Debug, Copy, Clone)]
628pub struct ccan_list_head {
629 pub n: ccan_list_node,
630}
631pub const ruby_id_types_RUBY_ID_LOCAL: ruby_id_types = 0;
632pub const ruby_id_types_RUBY_ID_STATIC_SYM: ruby_id_types = 1;
633pub const ruby_id_types_RUBY_ID_INSTANCE: ruby_id_types = 2;
634pub const ruby_id_types_RUBY_ID_GLOBAL: ruby_id_types = 6;
635pub const ruby_id_types_RUBY_ID_ATTRSET: ruby_id_types = 8;
636pub const ruby_id_types_RUBY_ID_CONST: ruby_id_types = 10;
637pub const ruby_id_types_RUBY_ID_CLASS: ruby_id_types = 12;
638pub const ruby_id_types_RUBY_ID_INTERNAL: ruby_id_types = 14;
639pub const ruby_id_types_RUBY_ID_SCOPE_SHIFT: ruby_id_types = 4;
640pub const ruby_id_types_RUBY_ID_SCOPE_MASK: ruby_id_types = 14;
641pub type ruby_id_types = ::std::os::raw::c_uint;
642pub const ruby_method_ids_idDot2: ruby_method_ids = 128;
643pub const ruby_method_ids_idDot3: ruby_method_ids = 129;
644pub const ruby_method_ids_idUPlus: ruby_method_ids = 132;
645pub const ruby_method_ids_idUMinus: ruby_method_ids = 133;
646pub const ruby_method_ids_idPow: ruby_method_ids = 134;
647pub const ruby_method_ids_idCmp: ruby_method_ids = 135;
648pub const ruby_method_ids_idPLUS: ruby_method_ids = 43;
649pub const ruby_method_ids_idMINUS: ruby_method_ids = 45;
650pub const ruby_method_ids_idMULT: ruby_method_ids = 42;
651pub const ruby_method_ids_idDIV: ruby_method_ids = 47;
652pub const ruby_method_ids_idMOD: ruby_method_ids = 37;
653pub const ruby_method_ids_idLTLT: ruby_method_ids = 136;
654pub const ruby_method_ids_idGTGT: ruby_method_ids = 137;
655pub const ruby_method_ids_idLT: ruby_method_ids = 60;
656pub const ruby_method_ids_idLE: ruby_method_ids = 138;
657pub const ruby_method_ids_idGT: ruby_method_ids = 62;
658pub const ruby_method_ids_idGE: ruby_method_ids = 139;
659pub const ruby_method_ids_idEq: ruby_method_ids = 140;
660pub const ruby_method_ids_idEqq: ruby_method_ids = 141;
661pub const ruby_method_ids_idNeq: ruby_method_ids = 142;
662pub const ruby_method_ids_idNot: ruby_method_ids = 33;
663pub const ruby_method_ids_idAnd: ruby_method_ids = 38;
664pub const ruby_method_ids_idOr: ruby_method_ids = 124;
665pub const ruby_method_ids_idBackquote: ruby_method_ids = 96;
666pub const ruby_method_ids_idEqTilde: ruby_method_ids = 143;
667pub const ruby_method_ids_idNeqTilde: ruby_method_ids = 144;
668pub const ruby_method_ids_idAREF: ruby_method_ids = 145;
669pub const ruby_method_ids_idASET: ruby_method_ids = 146;
670pub const ruby_method_ids_idCOLON2: ruby_method_ids = 147;
671pub const ruby_method_ids_idANDOP: ruby_method_ids = 148;
672pub const ruby_method_ids_idOROP: ruby_method_ids = 149;
673pub const ruby_method_ids_idANDDOT: ruby_method_ids = 150;
674pub const ruby_method_ids_tPRESERVED_ID_BEGIN: ruby_method_ids = 150;
675pub const ruby_method_ids_idNilP: ruby_method_ids = 151;
676pub const ruby_method_ids_idIncludeP: ruby_method_ids = 152;
677pub const ruby_method_ids_idItImplicit: ruby_method_ids = 153;
678pub const ruby_method_ids_idNULL: ruby_method_ids = 154;
679pub const ruby_method_ids_idEmptyP: ruby_method_ids = 155;
680pub const ruby_method_ids_idEqlP: ruby_method_ids = 156;
681pub const ruby_method_ids_idRespond_to: ruby_method_ids = 157;
682pub const ruby_method_ids_idRespond_to_missing: ruby_method_ids = 158;
683pub const ruby_method_ids_idIFUNC: ruby_method_ids = 159;
684pub const ruby_method_ids_idCFUNC: ruby_method_ids = 160;
685pub const ruby_method_ids_id_core_set_method_alias: ruby_method_ids = 161;
686pub const ruby_method_ids_id_core_set_variable_alias: ruby_method_ids = 162;
687pub const ruby_method_ids_id_core_undef_method: ruby_method_ids = 163;
688pub const ruby_method_ids_id_core_define_method: ruby_method_ids = 164;
689pub const ruby_method_ids_id_core_define_singleton_method: ruby_method_ids = 165;
690pub const ruby_method_ids_id_core_set_postexe: ruby_method_ids = 166;
691pub const ruby_method_ids_id_core_hash_merge_ptr: ruby_method_ids = 167;
692pub const ruby_method_ids_id_core_hash_merge_kwd: ruby_method_ids = 168;
693pub const ruby_method_ids_id_core_raise: ruby_method_ids = 169;
694pub const ruby_method_ids_id_core_sprintf: ruby_method_ids = 170;
695pub const ruby_method_ids_id_debug_created_info: ruby_method_ids = 171;
696pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 172;
697pub const ruby_method_ids_tTOKEN_LOCAL_BEGIN: ruby_method_ids = 171;
698pub const ruby_method_ids_tMax: ruby_method_ids = 172;
699pub const ruby_method_ids_tMin: ruby_method_ids = 173;
700pub const ruby_method_ids_tHash: ruby_method_ids = 174;
701pub const ruby_method_ids_tFreeze: ruby_method_ids = 175;
702pub const ruby_method_ids_tInspect: ruby_method_ids = 176;
703pub const ruby_method_ids_tIntern: ruby_method_ids = 177;
704pub const ruby_method_ids_tObject_id: ruby_method_ids = 178;
705pub const ruby_method_ids_t__id__: ruby_method_ids = 179;
706pub const ruby_method_ids_tConst_added: ruby_method_ids = 180;
707pub const ruby_method_ids_tConst_missing: ruby_method_ids = 181;
708pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 182;
709pub const ruby_method_ids_tMethod_added: ruby_method_ids = 183;
710pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 184;
711pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 185;
712pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 186;
713pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 187;
714pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 188;
715pub const ruby_method_ids_tLength: ruby_method_ids = 189;
716pub const ruby_method_ids_tSize: ruby_method_ids = 190;
717pub const ruby_method_ids_tGets: ruby_method_ids = 191;
718pub const ruby_method_ids_tSucc: ruby_method_ids = 192;
719pub const ruby_method_ids_tEach: ruby_method_ids = 193;
720pub const ruby_method_ids_tProc: ruby_method_ids = 194;
721pub const ruby_method_ids_tLambda: ruby_method_ids = 195;
722pub const ruby_method_ids_tSend: ruby_method_ids = 196;
723pub const ruby_method_ids_t__send__: ruby_method_ids = 197;
724pub const ruby_method_ids_t__recursive_key__: ruby_method_ids = 198;
725pub const ruby_method_ids_tInitialize: ruby_method_ids = 199;
726pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 200;
727pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 201;
728pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 202;
729pub const ruby_method_ids_tTo_int: ruby_method_ids = 203;
730pub const ruby_method_ids_tTo_ary: ruby_method_ids = 204;
731pub const ruby_method_ids_tTo_str: ruby_method_ids = 205;
732pub const ruby_method_ids_tTo_sym: ruby_method_ids = 206;
733pub const ruby_method_ids_tTo_hash: ruby_method_ids = 207;
734pub const ruby_method_ids_tTo_proc: ruby_method_ids = 208;
735pub const ruby_method_ids_tTo_io: ruby_method_ids = 209;
736pub const ruby_method_ids_tTo_a: ruby_method_ids = 210;
737pub const ruby_method_ids_tTo_s: ruby_method_ids = 211;
738pub const ruby_method_ids_tTo_i: ruby_method_ids = 212;
739pub const ruby_method_ids_tTo_f: ruby_method_ids = 213;
740pub const ruby_method_ids_tTo_r: ruby_method_ids = 214;
741pub const ruby_method_ids_tBt: ruby_method_ids = 215;
742pub const ruby_method_ids_tBt_locations: ruby_method_ids = 216;
743pub const ruby_method_ids_tCall: ruby_method_ids = 217;
744pub const ruby_method_ids_tMesg: ruby_method_ids = 218;
745pub const ruby_method_ids_tException: ruby_method_ids = 219;
746pub const ruby_method_ids_tLocals: ruby_method_ids = 220;
747pub const ruby_method_ids_tNOT: ruby_method_ids = 221;
748pub const ruby_method_ids_tAND: ruby_method_ids = 222;
749pub const ruby_method_ids_tOR: ruby_method_ids = 223;
750pub const ruby_method_ids_tDiv: ruby_method_ids = 224;
751pub const ruby_method_ids_tDivmod: ruby_method_ids = 225;
752pub const ruby_method_ids_tFdiv: ruby_method_ids = 226;
753pub const ruby_method_ids_tQuo: ruby_method_ids = 227;
754pub const ruby_method_ids_tName: ruby_method_ids = 228;
755pub const ruby_method_ids_tNil: ruby_method_ids = 229;
756pub const ruby_method_ids_tPath: ruby_method_ids = 230;
757pub const ruby_method_ids_tPack: ruby_method_ids = 231;
758pub const ruby_method_ids_tBuffer: ruby_method_ids = 232;
759pub const ruby_method_ids_tAborted: ruby_method_ids = 233;
760pub const ruby_method_ids_tExited: ruby_method_ids = 234;
761pub const ruby_method_ids_tUScore: ruby_method_ids = 235;
762pub const ruby_method_ids_tNUMPARAM_1: ruby_method_ids = 236;
763pub const ruby_method_ids_tNUMPARAM_2: ruby_method_ids = 237;
764pub const ruby_method_ids_tNUMPARAM_3: ruby_method_ids = 238;
765pub const ruby_method_ids_tNUMPARAM_4: ruby_method_ids = 239;
766pub const ruby_method_ids_tNUMPARAM_5: ruby_method_ids = 240;
767pub const ruby_method_ids_tNUMPARAM_6: ruby_method_ids = 241;
768pub const ruby_method_ids_tNUMPARAM_7: ruby_method_ids = 242;
769pub const ruby_method_ids_tNUMPARAM_8: ruby_method_ids = 243;
770pub const ruby_method_ids_tNUMPARAM_9: ruby_method_ids = 244;
771pub const ruby_method_ids_tIt: ruby_method_ids = 245;
772pub const ruby_method_ids_tDefault: ruby_method_ids = 246;
773pub const ruby_method_ids_tTOKEN_LOCAL_END: ruby_method_ids = 247;
774pub const ruby_method_ids_tTOKEN_INSTANCE_BEGIN: ruby_method_ids = 246;
775pub const ruby_method_ids_tTOKEN_INSTANCE_END: ruby_method_ids = 247;
776pub const ruby_method_ids_tTOKEN_GLOBAL_BEGIN: ruby_method_ids = 246;
777pub const ruby_method_ids_tLASTLINE: ruby_method_ids = 247;
778pub const ruby_method_ids_tBACKREF: ruby_method_ids = 248;
779pub const ruby_method_ids_tERROR_INFO: ruby_method_ids = 249;
780pub const ruby_method_ids_tTOKEN_GLOBAL_END: ruby_method_ids = 250;
781pub const ruby_method_ids_tTOKEN_CONST_BEGIN: ruby_method_ids = 249;
782pub const ruby_method_ids_tRuby: ruby_method_ids = 250;
783pub const ruby_method_ids_tTOKEN_CONST_END: ruby_method_ids = 251;
784pub const ruby_method_ids_tTOKEN_CLASS_BEGIN: ruby_method_ids = 250;
785pub const ruby_method_ids_tTOKEN_CLASS_END: ruby_method_ids = 251;
786pub const ruby_method_ids_tTOKEN_ATTRSET_BEGIN: ruby_method_ids = 250;
787pub const ruby_method_ids_tTOKEN_ATTRSET_END: ruby_method_ids = 251;
788pub const ruby_method_ids_tNEXT_ID: ruby_method_ids = 251;
789pub const ruby_method_ids_idMax: ruby_method_ids = 2753;
790pub const ruby_method_ids_idMin: ruby_method_ids = 2769;
791pub const ruby_method_ids_idHash: ruby_method_ids = 2785;
792pub const ruby_method_ids_idFreeze: ruby_method_ids = 2801;
793pub const ruby_method_ids_idInspect: ruby_method_ids = 2817;
794pub const ruby_method_ids_idIntern: ruby_method_ids = 2833;
795pub const ruby_method_ids_idObject_id: ruby_method_ids = 2849;
796pub const ruby_method_ids_id__id__: ruby_method_ids = 2865;
797pub const ruby_method_ids_idConst_added: ruby_method_ids = 2881;
798pub const ruby_method_ids_idConst_missing: ruby_method_ids = 2897;
799pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 2913;
800pub const ruby_method_ids_idMethod_added: ruby_method_ids = 2929;
801pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 2945;
802pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 2961;
803pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 2977;
804pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 2993;
805pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 3009;
806pub const ruby_method_ids_idLength: ruby_method_ids = 3025;
807pub const ruby_method_ids_idSize: ruby_method_ids = 3041;
808pub const ruby_method_ids_idGets: ruby_method_ids = 3057;
809pub const ruby_method_ids_idSucc: ruby_method_ids = 3073;
810pub const ruby_method_ids_idEach: ruby_method_ids = 3089;
811pub const ruby_method_ids_idProc: ruby_method_ids = 3105;
812pub const ruby_method_ids_idLambda: ruby_method_ids = 3121;
813pub const ruby_method_ids_idSend: ruby_method_ids = 3137;
814pub const ruby_method_ids_id__send__: ruby_method_ids = 3153;
815pub const ruby_method_ids_id__recursive_key__: ruby_method_ids = 3169;
816pub const ruby_method_ids_idInitialize: ruby_method_ids = 3185;
817pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 3201;
818pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 3217;
819pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 3233;
820pub const ruby_method_ids_idTo_int: ruby_method_ids = 3249;
821pub const ruby_method_ids_idTo_ary: ruby_method_ids = 3265;
822pub const ruby_method_ids_idTo_str: ruby_method_ids = 3281;
823pub const ruby_method_ids_idTo_sym: ruby_method_ids = 3297;
824pub const ruby_method_ids_idTo_hash: ruby_method_ids = 3313;
825pub const ruby_method_ids_idTo_proc: ruby_method_ids = 3329;
826pub const ruby_method_ids_idTo_io: ruby_method_ids = 3345;
827pub const ruby_method_ids_idTo_a: ruby_method_ids = 3361;
828pub const ruby_method_ids_idTo_s: ruby_method_ids = 3377;
829pub const ruby_method_ids_idTo_i: ruby_method_ids = 3393;
830pub const ruby_method_ids_idTo_f: ruby_method_ids = 3409;
831pub const ruby_method_ids_idTo_r: ruby_method_ids = 3425;
832pub const ruby_method_ids_idBt: ruby_method_ids = 3441;
833pub const ruby_method_ids_idBt_locations: ruby_method_ids = 3457;
834pub const ruby_method_ids_idCall: ruby_method_ids = 3473;
835pub const ruby_method_ids_idMesg: ruby_method_ids = 3489;
836pub const ruby_method_ids_idException: ruby_method_ids = 3505;
837pub const ruby_method_ids_idLocals: ruby_method_ids = 3521;
838pub const ruby_method_ids_idNOT: ruby_method_ids = 3537;
839pub const ruby_method_ids_idAND: ruby_method_ids = 3553;
840pub const ruby_method_ids_idOR: ruby_method_ids = 3569;
841pub const ruby_method_ids_idDiv: ruby_method_ids = 3585;
842pub const ruby_method_ids_idDivmod: ruby_method_ids = 3601;
843pub const ruby_method_ids_idFdiv: ruby_method_ids = 3617;
844pub const ruby_method_ids_idQuo: ruby_method_ids = 3633;
845pub const ruby_method_ids_idName: ruby_method_ids = 3649;
846pub const ruby_method_ids_idNil: ruby_method_ids = 3665;
847pub const ruby_method_ids_idPath: ruby_method_ids = 3681;
848pub const ruby_method_ids_idPack: ruby_method_ids = 3697;
849pub const ruby_method_ids_idBuffer: ruby_method_ids = 3713;
850pub const ruby_method_ids_idAborted: ruby_method_ids = 3729;
851pub const ruby_method_ids_idExited: ruby_method_ids = 3745;
852pub const ruby_method_ids_idUScore: ruby_method_ids = 3761;
853pub const ruby_method_ids_idNUMPARAM_1: ruby_method_ids = 3777;
854pub const ruby_method_ids_idNUMPARAM_2: ruby_method_ids = 3793;
855pub const ruby_method_ids_idNUMPARAM_3: ruby_method_ids = 3809;
856pub const ruby_method_ids_idNUMPARAM_4: ruby_method_ids = 3825;
857pub const ruby_method_ids_idNUMPARAM_5: ruby_method_ids = 3841;
858pub const ruby_method_ids_idNUMPARAM_6: ruby_method_ids = 3857;
859pub const ruby_method_ids_idNUMPARAM_7: ruby_method_ids = 3873;
860pub const ruby_method_ids_idNUMPARAM_8: ruby_method_ids = 3889;
861pub const ruby_method_ids_idNUMPARAM_9: ruby_method_ids = 3905;
862pub const ruby_method_ids_idIt: ruby_method_ids = 3921;
863pub const ruby_method_ids_idDefault: ruby_method_ids = 3937;
864pub const ruby_method_ids_idLASTLINE: ruby_method_ids = 3959;
865pub const ruby_method_ids_idBACKREF: ruby_method_ids = 3975;
866pub const ruby_method_ids_idERROR_INFO: ruby_method_ids = 3991;
867pub const ruby_method_ids_idRuby: ruby_method_ids = 4011;
868pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 171;
869pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 10;
870pub type ruby_method_ids = ::std::os::raw::c_uint;
871pub type VALUE = usize;
872pub type ID = usize;
873pub type rb_alloc_func_t = ::std::option::Option<unsafe extern "C" fn(klass: VALUE) -> VALUE>;
874#[repr(C)]
875#[derive(Debug, Copy, Clone)]
876pub struct RBasic {
877 pub flags: VALUE,
878 pub klass: VALUE,
879}
880pub const ruby_fl_ushift_RUBY_FL_USHIFT: ruby_fl_ushift = 12;
881pub type ruby_fl_ushift = ::std::os::raw::c_uint;
882pub const ruby_fl_type_RUBY_FL_WB_PROTECTED: ruby_fl_type = 32;
883pub const ruby_fl_type_RUBY_FL_PROMOTED: ruby_fl_type = 32;
884pub const ruby_fl_type_RUBY_FL_USERPRIV0: ruby_fl_type = 64;
885pub const ruby_fl_type_RUBY_FL_FINALIZE: ruby_fl_type = 128;
886pub const ruby_fl_type_RUBY_FL_TAINT: ruby_fl_type = 0;
887pub const ruby_fl_type_RUBY_FL_EXIVAR: ruby_fl_type = 0;
888pub const ruby_fl_type_RUBY_FL_SHAREABLE: ruby_fl_type = 256;
889pub const ruby_fl_type_RUBY_FL_UNTRUSTED: ruby_fl_type = 0;
890pub const ruby_fl_type_RUBY_FL_UNUSED9: ruby_fl_type = 512;
891pub const ruby_fl_type_RUBY_FL_UNUSED10: ruby_fl_type = 1024;
892pub const ruby_fl_type_RUBY_FL_FREEZE: ruby_fl_type = 2048;
893pub const ruby_fl_type_RUBY_FL_USER0: ruby_fl_type = 4096;
894pub const ruby_fl_type_RUBY_FL_USER1: ruby_fl_type = 8192;
895pub const ruby_fl_type_RUBY_FL_USER2: ruby_fl_type = 16384;
896pub const ruby_fl_type_RUBY_FL_USER3: ruby_fl_type = 32768;
897pub const ruby_fl_type_RUBY_FL_USER4: ruby_fl_type = 65536;
898pub const ruby_fl_type_RUBY_FL_USER5: ruby_fl_type = 131072;
899pub const ruby_fl_type_RUBY_FL_USER6: ruby_fl_type = 262144;
900pub const ruby_fl_type_RUBY_FL_USER7: ruby_fl_type = 524288;
901pub const ruby_fl_type_RUBY_FL_USER8: ruby_fl_type = 1048576;
902pub const ruby_fl_type_RUBY_FL_USER9: ruby_fl_type = 2097152;
903pub const ruby_fl_type_RUBY_FL_USER10: ruby_fl_type = 4194304;
904pub const ruby_fl_type_RUBY_FL_USER11: ruby_fl_type = 8388608;
905pub const ruby_fl_type_RUBY_FL_USER12: ruby_fl_type = 16777216;
906pub const ruby_fl_type_RUBY_FL_USER13: ruby_fl_type = 33554432;
907pub const ruby_fl_type_RUBY_FL_USER14: ruby_fl_type = 67108864;
908pub const ruby_fl_type_RUBY_FL_USER15: ruby_fl_type = 134217728;
909pub const ruby_fl_type_RUBY_FL_USER16: ruby_fl_type = 268435456;
910pub const ruby_fl_type_RUBY_FL_USER17: ruby_fl_type = 536870912;
911pub const ruby_fl_type_RUBY_FL_USER18: ruby_fl_type = 1073741824;
912pub const ruby_fl_type_RUBY_FL_USER19: ruby_fl_type = -2147483648;
913pub const ruby_fl_type_RUBY_ELTS_SHARED: ruby_fl_type = 4096;
914pub const ruby_fl_type_RUBY_FL_SINGLETON: ruby_fl_type = 8192;
915pub type ruby_fl_type = ::std::os::raw::c_int;
916#[repr(C)]
917#[derive(Copy, Clone)]
918pub struct RString {
919 pub basic: RBasic,
920 pub len: ::std::os::raw::c_long,
921 pub as_: RString__bindgen_ty_1,
922}
923#[repr(C)]
924#[derive(Copy, Clone)]
925pub union RString__bindgen_ty_1 {
926 pub heap: RString__bindgen_ty_1__bindgen_ty_1,
927 pub embed: RString__bindgen_ty_1__bindgen_ty_2,
928}
929#[repr(C)]
930#[derive(Copy, Clone)]
931pub struct RString__bindgen_ty_1__bindgen_ty_1 {
932 pub ptr: *mut ::std::os::raw::c_char,
933 pub aux: RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
934}
935#[repr(C)]
936#[derive(Copy, Clone)]
937pub union RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
938 pub capa: ::std::os::raw::c_long,
939 pub shared: VALUE,
940}
941impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
942 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
943 write!(
944 f,
945 "RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
946 )
947 }
948}
949impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1 {
950 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
951 write!(
952 f,
953 "RString__bindgen_ty_1__bindgen_ty_1 {{ ptr: {:?}, aux: {:?} }}",
954 self.ptr, self.aux
955 )
956 }
957}
958#[repr(C)]
959#[derive(Debug, Copy, Clone)]
960pub struct RString__bindgen_ty_1__bindgen_ty_2 {
961 pub ary: [::std::os::raw::c_char; 1usize],
962}
963impl ::std::fmt::Debug for RString__bindgen_ty_1 {
964 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
965 write!(f, "RString__bindgen_ty_1 {{ union }}")
966 }
967}
968impl ::std::fmt::Debug for RString {
969 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
970 write!(
971 f,
972 "RString {{ basic: {:?}, len: {:?}, as: {:?} }}",
973 self.basic, self.len, self.as_
974 )
975 }
976}
977pub type st_data_t = usize;
978pub type st_index_t = st_data_t;
979#[repr(C)]
980#[derive(Debug, Copy, Clone)]
981pub struct st_hash_type {
982 pub compare: ::std::option::Option<
983 unsafe extern "C" fn(arg1: st_data_t, arg2: st_data_t) -> ::std::os::raw::c_int,
984 >,
985 pub hash: ::std::option::Option<unsafe extern "C" fn(arg1: st_data_t) -> st_index_t>,
986}
987#[repr(C)]
988#[derive(Debug)]
989pub struct st_table_entry {
990 _unused: [u8; 0],
991}
992#[repr(C)]
993#[derive(Debug, Copy, Clone)]
994pub struct st_table {
995 pub entry_power: ::std::os::raw::c_uchar,
996 pub bin_power: ::std::os::raw::c_uchar,
997 pub size_ind: ::std::os::raw::c_uchar,
998 pub rebuilds_num: ::std::os::raw::c_uint,
999 pub type_: *const st_hash_type,
1000 pub num_entries: st_index_t,
1001 pub bins: *mut st_index_t,
1002 pub entries_start: st_index_t,
1003 pub entries_bound: st_index_t,
1004 pub entries: *mut st_table_entry,
1005}
1006#[repr(C)]
1007#[derive(Copy, Clone)]
1008pub struct RArray {
1009 pub basic: RBasic,
1010 pub as_: RArray__bindgen_ty_1,
1011}
1012#[repr(C)]
1013#[derive(Copy, Clone)]
1014pub union RArray__bindgen_ty_1 {
1015 pub heap: RArray__bindgen_ty_1__bindgen_ty_1,
1016 pub ary: [VALUE; 1usize],
1017}
1018#[repr(C)]
1019#[derive(Copy, Clone)]
1020pub struct RArray__bindgen_ty_1__bindgen_ty_1 {
1021 pub len: ::std::os::raw::c_long,
1022 pub aux: RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
1023 pub ptr: *const VALUE,
1024}
1025#[repr(C)]
1026#[derive(Copy, Clone)]
1027pub union RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
1028 pub capa: ::std::os::raw::c_long,
1029 pub shared_root: VALUE,
1030}
1031impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
1032 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1033 write!(
1034 f,
1035 "RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
1036 )
1037 }
1038}
1039impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1 {
1040 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1041 write!(
1042 f,
1043 "RArray__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, aux: {:?}, ptr: {:?} }}",
1044 self.len, self.aux, self.ptr
1045 )
1046 }
1047}
1048impl ::std::fmt::Debug for RArray__bindgen_ty_1 {
1049 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1050 write!(f, "RArray__bindgen_ty_1 {{ union }}")
1051 }
1052}
1053impl ::std::fmt::Debug for RArray {
1054 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1055 write!(
1056 f,
1057 "RArray {{ basic: {:?}, as: {:?} }}",
1058 self.basic, self.as_
1059 )
1060 }
1061}
1062pub type rb_event_flag_t = u32;
1063pub type rb_unblock_function_t =
1064 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
1065#[repr(C)]
1066#[derive(Debug, Copy, Clone)]
1067pub struct rb_box_struct {
1068 pub box_object: VALUE,
1069 pub box_id: ::std::os::raw::c_long,
1070 pub top_self: VALUE,
1071 pub load_path: VALUE,
1072 pub load_path_snapshot: VALUE,
1073 pub load_path_check_cache: VALUE,
1074 pub expanded_load_path: VALUE,
1075 pub loaded_features: VALUE,
1076 pub loaded_features_snapshot: VALUE,
1077 pub loaded_features_realpaths: VALUE,
1078 pub loaded_features_realpath_map: VALUE,
1079 pub loaded_features_index: *mut st_table,
1080 pub loading_table: *mut st_table,
1081 pub ruby_dln_libmap: VALUE,
1082 pub gvar_tbl: VALUE,
1083 pub classext_cow_classes: *mut st_table,
1084 pub is_user: u8,
1085 pub is_optional: u8,
1086}
1087pub type rb_box_t = rb_box_struct;
1088pub type rb_serial_t = ::std::os::raw::c_ulonglong;
1089#[repr(C)]
1090#[derive(Debug)]
1091pub struct set_table_entry {
1092 _unused: [u8; 0],
1093}
1094#[repr(C)]
1095#[derive(Debug, Copy, Clone)]
1096pub struct set_table {
1097 pub entry_power: ::std::os::raw::c_uchar,
1098 pub bin_power: ::std::os::raw::c_uchar,
1099 pub size_ind: ::std::os::raw::c_uchar,
1100 pub rebuilds_num: ::std::os::raw::c_uint,
1101 pub type_: *const st_hash_type,
1102 pub num_entries: st_index_t,
1103 pub entries_start: st_index_t,
1104 pub entries_bound: st_index_t,
1105 pub entries: *mut set_table_entry,
1106}
1107pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
1108pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
1109pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
1110pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
1111pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
1112pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
1113pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
1114pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
1115pub type method_missing_reason = ::std::os::raw::c_uint;
1116#[repr(C)]
1117#[derive(Debug)]
1118pub struct rb_callcache {
1119 _unused: [u8; 0],
1120}
1121#[repr(C)]
1122#[derive(Debug)]
1123pub struct rb_id_table {
1124 _unused: [u8; 0],
1125}
1126pub const imemo_type_imemo_env: imemo_type = 0;
1127pub const imemo_type_imemo_cref: imemo_type = 1;
1128pub const imemo_type_imemo_svar: imemo_type = 2;
1129pub const imemo_type_imemo_throw_data: imemo_type = 3;
1130pub const imemo_type_imemo_ifunc: imemo_type = 4;
1131pub const imemo_type_imemo_memo: imemo_type = 5;
1132pub const imemo_type_imemo_ment: imemo_type = 6;
1133pub const imemo_type_imemo_iseq: imemo_type = 7;
1134pub const imemo_type_imemo_tmpbuf: imemo_type = 8;
1135pub const imemo_type_imemo_cvar_entry: imemo_type = 9;
1136pub const imemo_type_imemo_callinfo: imemo_type = 10;
1137pub const imemo_type_imemo_callcache: imemo_type = 11;
1138pub const imemo_type_imemo_constcache: imemo_type = 12;
1139pub const imemo_type_imemo_fields: imemo_type = 13;
1140pub type imemo_type = ::std::os::raw::c_uint;
1141#[repr(C)]
1142#[derive(Debug, Copy, Clone)]
1143pub struct vm_svar {
1144 pub flags: VALUE,
1145 pub cref_or_me: VALUE,
1146 pub lastline: VALUE,
1147 pub backref: VALUE,
1148 pub others: VALUE,
1149}
1150pub type rb_atomic_t = ::std::os::raw::c_uint;
1151pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
1152pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
1153pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
1154pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
1155pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
1156pub type rb_method_visibility_t = ::std::os::raw::c_uint;
1157#[repr(C)]
1158#[derive(Debug, Copy, Clone)]
1159pub struct rb_scope_visi_struct {
1160 pub _bindgen_align: [u32; 0],
1161 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1162 pub __bindgen_padding_0: [u8; 3usize],
1163}
1164impl rb_scope_visi_struct {
1165 #[inline]
1166 #[allow(unnecessary_transmutes)]
1167 pub fn method_visi(&self) -> rb_method_visibility_t {
1168 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 3u8>() as u32) }
1169 }
1170 #[inline]
1171 #[allow(unnecessary_transmutes)]
1172 pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
1173 unsafe {
1174 let val: u32 = ::std::mem::transmute(val);
1175 self._bitfield_1.set_const::<0usize, 3u8>(val as u64)
1176 }
1177 }
1178 #[inline]
1179 #[allow(unnecessary_transmutes)]
1180 pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
1181 unsafe {
1182 ::std::mem::transmute(
1183 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 3u8>(
1184 ::std::ptr::addr_of!((*this)._bitfield_1),
1185 ) as u32,
1186 )
1187 }
1188 }
1189 #[inline]
1190 #[allow(unnecessary_transmutes)]
1191 pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
1192 unsafe {
1193 let val: u32 = ::std::mem::transmute(val);
1194 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 3u8>(
1195 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1196 val as u64,
1197 )
1198 }
1199 }
1200 #[inline]
1201 #[allow(unnecessary_transmutes)]
1202 pub fn module_func(&self) -> ::std::os::raw::c_uint {
1203 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1204 }
1205 #[inline]
1206 #[allow(unnecessary_transmutes)]
1207 pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
1208 unsafe {
1209 let val: u32 = ::std::mem::transmute(val);
1210 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1211 }
1212 }
1213 #[inline]
1214 #[allow(unnecessary_transmutes)]
1215 pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
1216 unsafe {
1217 ::std::mem::transmute(
1218 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
1219 ::std::ptr::addr_of!((*this)._bitfield_1),
1220 ) as u32,
1221 )
1222 }
1223 }
1224 #[inline]
1225 #[allow(unnecessary_transmutes)]
1226 pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1227 unsafe {
1228 let val: u32 = ::std::mem::transmute(val);
1229 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
1230 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1231 val as u64,
1232 )
1233 }
1234 }
1235 #[inline]
1236 #[allow(unnecessary_transmutes)]
1237 pub fn new_bitfield_1(
1238 method_visi: rb_method_visibility_t,
1239 module_func: ::std::os::raw::c_uint,
1240 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1241 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1242 __bindgen_bitfield_unit.set_const::<0usize, 3u8>({
1243 let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
1244 method_visi as u64
1245 });
1246 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
1247 let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
1248 module_func as u64
1249 });
1250 __bindgen_bitfield_unit
1251 }
1252}
1253pub type rb_scope_visibility_t = rb_scope_visi_struct;
1254#[repr(C)]
1255#[derive(Debug, Copy, Clone)]
1256pub struct rb_cref_struct {
1257 pub flags: VALUE,
1258 pub refinements: VALUE,
1259 pub klass_or_self: VALUE,
1260 pub next: *mut rb_cref_struct,
1261 pub scope_visi: rb_scope_visibility_t,
1262}
1263pub type rb_cref_t = rb_cref_struct;
1264#[repr(C)]
1265#[derive(Debug, Copy, Clone)]
1266pub struct rb_method_entry_struct {
1267 pub flags: VALUE,
1268 pub defined_class: VALUE,
1269 pub def: *mut rb_method_definition_struct,
1270 pub called_id: ID,
1271 pub owner: VALUE,
1272}
1273pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
1274pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
1275pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
1276pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
1277pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
1278pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
1279pub const rb_method_type_t_VM_METHOD_TYPE_ALIAS: rb_method_type_t = 6;
1280pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 7;
1281pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 8;
1282pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 9;
1283pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 10;
1284pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 11;
1285pub type rb_method_type_t = ::std::os::raw::c_uint;
1286pub type rb_iseq_t = rb_iseq_struct;
1287#[repr(C)]
1288#[derive(Debug, Copy, Clone)]
1289pub struct rb_method_iseq_struct {
1290 pub iseqptr: *const rb_iseq_t,
1291 pub cref: *mut rb_cref_t,
1292}
1293pub type rb_method_iseq_t = rb_method_iseq_struct;
1294pub type rb_cfunc_t = ::std::option::Option<unsafe extern "C" fn() -> VALUE>;
1295#[repr(C)]
1296#[derive(Debug, Copy, Clone)]
1297pub struct rb_method_cfunc_struct {
1298 pub func: rb_cfunc_t,
1299 pub invoker: ::std::option::Option<
1300 unsafe extern "C" fn(
1301 recv: VALUE,
1302 argc: ::std::os::raw::c_int,
1303 argv: *const VALUE,
1304 func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1305 ) -> VALUE,
1306 >,
1307 pub argc: ::std::os::raw::c_int,
1308}
1309pub type rb_method_cfunc_t = rb_method_cfunc_struct;
1310#[repr(C)]
1311#[derive(Debug, Copy, Clone)]
1312pub struct rb_method_attr_struct {
1313 pub id: ID,
1314 pub location: VALUE,
1315}
1316pub type rb_method_attr_t = rb_method_attr_struct;
1317#[repr(C)]
1318#[derive(Debug, Copy, Clone)]
1319pub struct rb_method_alias_struct {
1320 pub original_me: *mut rb_method_entry_struct,
1321}
1322pub type rb_method_alias_t = rb_method_alias_struct;
1323#[repr(C)]
1324#[derive(Debug, Copy, Clone)]
1325pub struct rb_method_refined_struct {
1326 pub orig_me: *mut rb_method_entry_struct,
1327}
1328pub type rb_method_refined_t = rb_method_refined_struct;
1329#[repr(C)]
1330#[derive(Debug, Copy, Clone)]
1331pub struct rb_method_bmethod_struct {
1332 pub proc_: VALUE,
1333 pub defined_ractor_id: rb_serial_t,
1334 pub local_hooks_cnt: ::std::os::raw::c_uint,
1335}
1336pub type rb_method_bmethod_t = rb_method_bmethod_struct;
1337pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND: method_optimized_type = 0;
1338pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL: method_optimized_type = 1;
1339pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_BLOCK_CALL: method_optimized_type = 2;
1340pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_STRUCT_AREF: method_optimized_type = 3;
1341pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_STRUCT_ASET: method_optimized_type = 4;
1342pub const method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX: method_optimized_type = 5;
1343pub type method_optimized_type = ::std::os::raw::c_uint;
1344#[repr(C)]
1345#[derive(Debug, Copy, Clone)]
1346pub struct rb_method_optimized {
1347 pub type_: method_optimized_type,
1348 pub index: ::std::os::raw::c_uint,
1349}
1350pub type rb_method_optimized_t = rb_method_optimized;
1351#[repr(C)]
1352#[derive(Copy, Clone)]
1353pub struct rb_method_definition_struct {
1354 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1355 pub reference_count: rb_atomic_t,
1356 pub body: rb_method_definition_struct__bindgen_ty_1,
1357 pub original_id: ID,
1358 pub method_serial: usize,
1359 pub box_: *const rb_box_t,
1360}
1361#[repr(C)]
1362#[derive(Copy, Clone)]
1363pub union rb_method_definition_struct__bindgen_ty_1 {
1364 pub iseq: rb_method_iseq_t,
1365 pub cfunc: rb_method_cfunc_t,
1366 pub attr: rb_method_attr_t,
1367 pub alias: rb_method_alias_t,
1368 pub refined: rb_method_refined_t,
1369 pub bmethod: rb_method_bmethod_t,
1370 pub optimized: rb_method_optimized_t,
1371}
1372impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
1373 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1374 write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
1375 }
1376}
1377impl rb_method_definition_struct {
1378 #[inline]
1379 #[allow(unnecessary_transmutes)]
1380 pub fn type_(&self) -> rb_method_type_t {
1381 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u32) }
1382 }
1383 #[inline]
1384 #[allow(unnecessary_transmutes)]
1385 pub fn set_type(&mut self, val: rb_method_type_t) {
1386 unsafe {
1387 let val: u32 = ::std::mem::transmute(val);
1388 self._bitfield_1.set_const::<0usize, 4u8>(val as u64)
1389 }
1390 }
1391 #[inline]
1392 #[allow(unnecessary_transmutes)]
1393 pub unsafe fn type__raw(this: *const Self) -> rb_method_type_t {
1394 unsafe {
1395 ::std::mem::transmute(
1396 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(
1397 ::std::ptr::addr_of!((*this)._bitfield_1),
1398 ) as u32,
1399 )
1400 }
1401 }
1402 #[inline]
1403 #[allow(unnecessary_transmutes)]
1404 pub unsafe fn set_type_raw(this: *mut Self, val: rb_method_type_t) {
1405 unsafe {
1406 let val: u32 = ::std::mem::transmute(val);
1407 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(
1408 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1409 val as u64,
1410 )
1411 }
1412 }
1413 #[inline]
1414 #[allow(unnecessary_transmutes)]
1415 pub fn iseq_overload(&self) -> ::std::os::raw::c_uint {
1416 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
1417 }
1418 #[inline]
1419 #[allow(unnecessary_transmutes)]
1420 pub fn set_iseq_overload(&mut self, val: ::std::os::raw::c_uint) {
1421 unsafe {
1422 let val: u32 = ::std::mem::transmute(val);
1423 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
1424 }
1425 }
1426 #[inline]
1427 #[allow(unnecessary_transmutes)]
1428 pub unsafe fn iseq_overload_raw(this: *const Self) -> ::std::os::raw::c_uint {
1429 unsafe {
1430 ::std::mem::transmute(
1431 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
1432 ::std::ptr::addr_of!((*this)._bitfield_1),
1433 ) as u32,
1434 )
1435 }
1436 }
1437 #[inline]
1438 #[allow(unnecessary_transmutes)]
1439 pub unsafe fn set_iseq_overload_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1440 unsafe {
1441 let val: u32 = ::std::mem::transmute(val);
1442 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
1443 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1444 val as u64,
1445 )
1446 }
1447 }
1448 #[inline]
1449 #[allow(unnecessary_transmutes)]
1450 pub fn no_redef_warning(&self) -> ::std::os::raw::c_uint {
1451 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
1452 }
1453 #[inline]
1454 #[allow(unnecessary_transmutes)]
1455 pub fn set_no_redef_warning(&mut self, val: ::std::os::raw::c_uint) {
1456 unsafe {
1457 let val: u32 = ::std::mem::transmute(val);
1458 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
1459 }
1460 }
1461 #[inline]
1462 #[allow(unnecessary_transmutes)]
1463 pub unsafe fn no_redef_warning_raw(this: *const Self) -> ::std::os::raw::c_uint {
1464 unsafe {
1465 ::std::mem::transmute(
1466 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
1467 ::std::ptr::addr_of!((*this)._bitfield_1),
1468 ) as u32,
1469 )
1470 }
1471 }
1472 #[inline]
1473 #[allow(unnecessary_transmutes)]
1474 pub unsafe fn set_no_redef_warning_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1475 unsafe {
1476 let val: u32 = ::std::mem::transmute(val);
1477 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
1478 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1479 val as u64,
1480 )
1481 }
1482 }
1483 #[inline]
1484 #[allow(unnecessary_transmutes)]
1485 pub fn aliased(&self) -> ::std::os::raw::c_uint {
1486 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
1487 }
1488 #[inline]
1489 #[allow(unnecessary_transmutes)]
1490 pub fn set_aliased(&mut self, val: ::std::os::raw::c_uint) {
1491 unsafe {
1492 let val: u32 = ::std::mem::transmute(val);
1493 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
1494 }
1495 }
1496 #[inline]
1497 #[allow(unnecessary_transmutes)]
1498 pub unsafe fn aliased_raw(this: *const Self) -> ::std::os::raw::c_uint {
1499 unsafe {
1500 ::std::mem::transmute(
1501 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(
1502 ::std::ptr::addr_of!((*this)._bitfield_1),
1503 ) as u32,
1504 )
1505 }
1506 }
1507 #[inline]
1508 #[allow(unnecessary_transmutes)]
1509 pub unsafe fn set_aliased_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1510 unsafe {
1511 let val: u32 = ::std::mem::transmute(val);
1512 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(
1513 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1514 val as u64,
1515 )
1516 }
1517 }
1518 #[inline]
1519 #[allow(unnecessary_transmutes)]
1520 pub fn new_bitfield_1(
1521 type_: rb_method_type_t,
1522 iseq_overload: ::std::os::raw::c_uint,
1523 no_redef_warning: ::std::os::raw::c_uint,
1524 aliased: ::std::os::raw::c_uint,
1525 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1526 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1527 __bindgen_bitfield_unit.set_const::<0usize, 4u8>({
1528 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1529 type_ as u64
1530 });
1531 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
1532 let iseq_overload: u32 = unsafe { ::std::mem::transmute(iseq_overload) };
1533 iseq_overload as u64
1534 });
1535 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
1536 let no_redef_warning: u32 = unsafe { ::std::mem::transmute(no_redef_warning) };
1537 no_redef_warning as u64
1538 });
1539 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
1540 let aliased: u32 = unsafe { ::std::mem::transmute(aliased) };
1541 aliased as u64
1542 });
1543 __bindgen_bitfield_unit
1544 }
1545}
1546#[repr(C)]
1547#[derive(Debug, Copy, Clone)]
1548pub struct rb_code_position_struct {
1549 pub lineno: ::std::os::raw::c_int,
1550 pub column: ::std::os::raw::c_int,
1551}
1552pub type rb_code_position_t = rb_code_position_struct;
1553#[repr(C)]
1554#[derive(Debug, Copy, Clone)]
1555pub struct rb_code_location_struct {
1556 pub beg_pos: rb_code_position_t,
1557 pub end_pos: rb_code_position_t,
1558}
1559pub type rb_code_location_t = rb_code_location_struct;
1560#[repr(C)]
1561#[derive(Debug, Copy, Clone)]
1562pub struct RNode {
1563 pub flags: VALUE,
1564 pub nd_loc: rb_code_location_t,
1565 pub node_id: ::std::os::raw::c_int,
1566}
1567pub type NODE = RNode;
1568pub type rb_nativethread_id_t = pthread_t;
1569pub type rb_nativethread_lock_t = pthread_mutex_t;
1570pub type rb_nativethread_cond_t = pthread_cond_t;
1571#[repr(C)]
1572#[derive(Debug, Copy, Clone)]
1573pub struct rb_thread_sched_waiting {
1574 pub flags: rb_thread_sched_waiting_thread_sched_waiting_flag,
1575 pub data: rb_thread_sched_waiting__bindgen_ty_1,
1576 pub node: ccan_list_node,
1577}
1578pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_none:
1579 rb_thread_sched_waiting_thread_sched_waiting_flag = 0;
1580pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_timeout:
1581 rb_thread_sched_waiting_thread_sched_waiting_flag = 1;
1582pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_io_read:
1583 rb_thread_sched_waiting_thread_sched_waiting_flag = 2;
1584pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_io_write:
1585 rb_thread_sched_waiting_thread_sched_waiting_flag = 8;
1586pub const rb_thread_sched_waiting_thread_sched_waiting_flag_thread_sched_waiting_io_force:
1587 rb_thread_sched_waiting_thread_sched_waiting_flag = 64;
1588pub type rb_thread_sched_waiting_thread_sched_waiting_flag = ::std::os::raw::c_uint;
1589#[repr(C)]
1590#[derive(Debug, Copy, Clone)]
1591pub struct rb_thread_sched_waiting__bindgen_ty_1 {
1592 pub timeout: u64,
1593 pub event_serial: u32,
1594 pub fd: ::std::os::raw::c_int,
1595 pub result: ::std::os::raw::c_int,
1596}
1597#[repr(C)]
1598#[derive(Debug, Copy, Clone)]
1599pub struct rb_thread_sched_item {
1600 pub node: rb_thread_sched_item__bindgen_ty_1,
1601 pub waiting_reason: rb_thread_sched_waiting,
1602 pub event_serial: u32,
1603 pub finished: u8,
1604 pub malloc_stack: u8,
1605 pub context_stack: *mut ::std::os::raw::c_void,
1606 pub context: *mut coroutine_context,
1607}
1608#[repr(C)]
1609#[derive(Debug, Copy, Clone)]
1610pub struct rb_thread_sched_item__bindgen_ty_1 {
1611 pub ubf: ccan_list_node,
1612 pub readyq: ccan_list_node,
1613 pub timeslice_threads: ccan_list_node,
1614 pub running_threads: ccan_list_node,
1615 pub zombie_threads: ccan_list_node,
1616}
1617#[repr(C)]
1618#[derive(Copy, Clone)]
1619pub struct rb_native_thread {
1620 pub serial: rb_atomic_t,
1621 pub vm: *mut rb_vm_struct,
1622 pub thread_id: rb_nativethread_id_t,
1623 pub tid: ::std::os::raw::c_int,
1624 pub running_thread: *mut rb_thread_struct,
1625 pub cond: rb_native_thread__bindgen_ty_1,
1626 pub altstack: *mut ::std::os::raw::c_void,
1627 pub nt_context: *mut coroutine_context,
1628 pub dedicated: ::std::os::raw::c_int,
1629 pub machine_stack_maxsize: usize,
1630}
1631#[repr(C)]
1632#[derive(Copy, Clone)]
1633pub union rb_native_thread__bindgen_ty_1 {
1634 pub intr: rb_nativethread_cond_t,
1635 pub readyq: rb_nativethread_cond_t,
1636}
1637impl ::std::fmt::Debug for rb_native_thread__bindgen_ty_1 {
1638 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1639 write!(f, "rb_native_thread__bindgen_ty_1 {{ union }}")
1640 }
1641}
1642impl ::std::fmt::Debug for rb_native_thread {
1643 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1644 write ! (f , "rb_native_thread {{ serial: {:?}, vm: {:?}, thread_id: {:?}, tid: {:?}, running_thread: {:?}, cond: {:?}, altstack: {:?}, nt_context: {:?}, dedicated: {:?} }}" , self . serial , self . vm , self . thread_id , self . tid , self . running_thread , self . cond , self . altstack , self . nt_context , self . dedicated)
1645 }
1646}
1647#[repr(C)]
1648#[derive(Copy, Clone)]
1649pub struct rb_thread_sched {
1650 pub lock_: rb_nativethread_lock_t,
1651 pub running: *mut rb_thread_struct,
1652 pub is_running: u8,
1653 pub is_running_timeslice: u8,
1654 pub enable_mn_threads: u8,
1655 pub readyq: ccan_list_head,
1656 pub readyq_cnt: ::std::os::raw::c_int,
1657 pub grq_node: ccan_list_node,
1658}
1659impl ::std::fmt::Debug for rb_thread_sched {
1660 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1661 write ! (f , "rb_thread_sched {{ lock_: {:?}, running: {:?}, is_running: {:?}, is_running_timeslice: {:?}, enable_mn_threads: {:?}, readyq: {:?}, readyq_cnt: {:?}, grq_node: {:?} }}" , self . lock_ , self . running , self . is_running , self . is_running_timeslice , self . enable_mn_threads , self . readyq , self . readyq_cnt , self . grq_node)
1662 }
1663}
1664pub type rb_snum_t = ::std::os::raw::c_long;
1665pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1666pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1667pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1668pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1669pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1670pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1671pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1672pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1673pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1674pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1675pub type ruby_tag_type = ::std::os::raw::c_uint;
1676pub type rb_compile_option_t = rb_compile_option_struct;
1677#[repr(C)]
1678#[derive(Debug, Copy, Clone)]
1679pub struct iseq_inline_constant_cache_entry {
1680 pub flags: VALUE,
1681 pub value: VALUE,
1682 pub ic_cref: *const rb_cref_t,
1683}
1684#[repr(C)]
1685#[derive(Debug, Copy, Clone)]
1686pub struct iseq_inline_constant_cache {
1687 pub entry: *mut iseq_inline_constant_cache_entry,
1688 pub segments: *const ID,
1689}
1690#[repr(C)]
1691#[derive(Debug, Copy, Clone)]
1692pub struct iseq_inline_iv_cache_entry {
1693 pub value: u64,
1694 pub iv_set_name: ID,
1695}
1696#[repr(C)]
1697#[derive(Copy, Clone)]
1698pub union iseq_inline_storage_entry {
1699 pub once: iseq_inline_storage_entry__bindgen_ty_1,
1700 pub ic_cache: iseq_inline_constant_cache,
1701 pub iv_cache: iseq_inline_iv_cache_entry,
1702}
1703#[repr(C)]
1704#[derive(Debug, Copy, Clone)]
1705pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1706 pub running_thread: *mut rb_thread_struct,
1707 pub value: VALUE,
1708}
1709impl ::std::fmt::Debug for iseq_inline_storage_entry {
1710 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1711 write!(f, "iseq_inline_storage_entry {{ union }}")
1712 }
1713}
1714#[repr(C)]
1715#[derive(Debug, Copy, Clone)]
1716pub struct rb_calling_info {
1717 pub cd: *mut rb_call_data,
1718 pub cc: *const rb_callcache,
1719 pub block_handler: VALUE,
1720 pub recv: VALUE,
1721 pub argc: ::std::os::raw::c_int,
1722 pub kw_splat: u8,
1723 pub heap_argv: VALUE,
1724}
1725#[repr(C)]
1726#[derive(Debug, Copy, Clone)]
1727pub struct rb_iseq_location_struct {
1728 pub pathobj: VALUE,
1729 pub base_label: VALUE,
1730 pub label: VALUE,
1731 pub first_lineno: ::std::os::raw::c_int,
1732 pub node_id: ::std::os::raw::c_int,
1733 pub code_location: rb_code_location_t,
1734}
1735pub type rb_iseq_location_t = rb_iseq_location_struct;
1736pub type iseq_bits_t = usize;
1737pub const rb_iseq_type_ISEQ_TYPE_TOP: rb_iseq_type = 0;
1738pub const rb_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_type = 1;
1739pub const rb_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_type = 2;
1740pub const rb_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_type = 3;
1741pub const rb_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_type = 4;
1742pub const rb_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_type = 5;
1743pub const rb_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_type = 6;
1744pub const rb_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_type = 7;
1745pub const rb_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_type = 8;
1746pub type rb_iseq_type = ::std::os::raw::c_uint;
1747pub type rb_jit_func_t = ::std::option::Option<
1748 unsafe extern "C" fn(
1749 arg1: *mut rb_execution_context_struct,
1750 arg2: *mut rb_control_frame_struct,
1751 ) -> VALUE,
1752>;
1753#[repr(C)]
1754#[derive(Copy, Clone)]
1755pub struct rb_iseq_constant_body {
1756 pub type_: rb_iseq_type,
1757 pub iseq_size: ::std::os::raw::c_uint,
1758 pub iseq_encoded: *mut VALUE,
1759 pub param: rb_iseq_constant_body_rb_iseq_parameters,
1760 pub location: rb_iseq_location_t,
1761 pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1762 pub local_table: *const ID,
1763 pub lvar_states: *mut rb_iseq_constant_body_lvar_state,
1764 pub catch_table: *mut iseq_catch_table,
1765 pub parent_iseq: *const rb_iseq_struct,
1766 pub local_iseq: *mut rb_iseq_struct,
1767 pub is_entries: *mut iseq_inline_storage_entry,
1768 pub call_data: *mut rb_call_data,
1769 pub variable: rb_iseq_constant_body__bindgen_ty_1,
1770 pub local_table_size: ::std::os::raw::c_uint,
1771 pub ic_size: ::std::os::raw::c_uint,
1772 pub ise_size: ::std::os::raw::c_uint,
1773 pub ivc_size: ::std::os::raw::c_uint,
1774 pub icvarc_size: ::std::os::raw::c_uint,
1775 pub ci_size: ::std::os::raw::c_uint,
1776 pub stack_max: ::std::os::raw::c_uint,
1777 pub builtin_attrs: ::std::os::raw::c_uint,
1778 pub prism: u8,
1779 pub mark_bits: rb_iseq_constant_body__bindgen_ty_2,
1780 pub outer_variables: *mut rb_id_table,
1781 pub mandatory_only_iseq: *const rb_iseq_t,
1782 pub jit_entry: rb_jit_func_t,
1783 pub jit_entry_calls: ::std::os::raw::c_ulong,
1784 pub jit_exception: rb_jit_func_t,
1785 pub jit_exception_calls: ::std::os::raw::c_ulong,
1786 pub yjit_payload: *mut ::std::os::raw::c_void,
1787 pub yjit_calls_at_interv: u64,
1788}
1789#[repr(C)]
1790#[derive(Debug, Copy, Clone)]
1791pub struct rb_iseq_constant_body_rb_iseq_parameters {
1792 pub flags: rb_iseq_constant_body_rb_iseq_parameters__bindgen_ty_1,
1793 pub size: ::std::os::raw::c_uint,
1794 pub lead_num: ::std::os::raw::c_int,
1795 pub opt_num: ::std::os::raw::c_int,
1796 pub rest_start: ::std::os::raw::c_int,
1797 pub post_start: ::std::os::raw::c_int,
1798 pub post_num: ::std::os::raw::c_int,
1799 pub block_start: ::std::os::raw::c_int,
1800 pub opt_table: *const VALUE,
1801 pub keyword: *const rb_iseq_constant_body_rb_iseq_parameters_rb_iseq_param_keyword,
1802}
1803#[repr(C)]
1804#[derive(Debug, Copy, Clone)]
1805pub struct rb_iseq_constant_body_rb_iseq_parameters__bindgen_ty_1 {
1806 pub _bindgen_align: [u32; 0],
1807 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
1808 pub __bindgen_padding_0: u16,
1809}
1810impl rb_iseq_constant_body_rb_iseq_parameters__bindgen_ty_1 {
1811 #[inline]
1812 #[allow(unnecessary_transmutes)]
1813 pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1814 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
1815 }
1816 #[inline]
1817 #[allow(unnecessary_transmutes)]
1818 pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1819 unsafe {
1820 let val: u32 = ::std::mem::transmute(val);
1821 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
1822 }
1823 }
1824 #[inline]
1825 #[allow(unnecessary_transmutes)]
1826 pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1827 unsafe {
1828 ::std::mem::transmute(
1829 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(
1830 ::std::ptr::addr_of!((*this)._bitfield_1),
1831 ) as u32,
1832 )
1833 }
1834 }
1835 #[inline]
1836 #[allow(unnecessary_transmutes)]
1837 pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1838 unsafe {
1839 let val: u32 = ::std::mem::transmute(val);
1840 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(
1841 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1842 val as u64,
1843 )
1844 }
1845 }
1846 #[inline]
1847 #[allow(unnecessary_transmutes)]
1848 pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1849 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
1850 }
1851 #[inline]
1852 #[allow(unnecessary_transmutes)]
1853 pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1854 unsafe {
1855 let val: u32 = ::std::mem::transmute(val);
1856 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
1857 }
1858 }
1859 #[inline]
1860 #[allow(unnecessary_transmutes)]
1861 pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1862 unsafe {
1863 ::std::mem::transmute(
1864 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(
1865 ::std::ptr::addr_of!((*this)._bitfield_1),
1866 ) as u32,
1867 )
1868 }
1869 }
1870 #[inline]
1871 #[allow(unnecessary_transmutes)]
1872 pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1873 unsafe {
1874 let val: u32 = ::std::mem::transmute(val);
1875 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(
1876 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1877 val as u64,
1878 )
1879 }
1880 }
1881 #[inline]
1882 #[allow(unnecessary_transmutes)]
1883 pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1884 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
1885 }
1886 #[inline]
1887 #[allow(unnecessary_transmutes)]
1888 pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1889 unsafe {
1890 let val: u32 = ::std::mem::transmute(val);
1891 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
1892 }
1893 }
1894 #[inline]
1895 #[allow(unnecessary_transmutes)]
1896 pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1897 unsafe {
1898 ::std::mem::transmute(
1899 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(
1900 ::std::ptr::addr_of!((*this)._bitfield_1),
1901 ) as u32,
1902 )
1903 }
1904 }
1905 #[inline]
1906 #[allow(unnecessary_transmutes)]
1907 pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1908 unsafe {
1909 let val: u32 = ::std::mem::transmute(val);
1910 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(
1911 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1912 val as u64,
1913 )
1914 }
1915 }
1916 #[inline]
1917 #[allow(unnecessary_transmutes)]
1918 pub fn has_post(&self) -> ::std::os::raw::c_uint {
1919 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1920 }
1921 #[inline]
1922 #[allow(unnecessary_transmutes)]
1923 pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1924 unsafe {
1925 let val: u32 = ::std::mem::transmute(val);
1926 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1927 }
1928 }
1929 #[inline]
1930 #[allow(unnecessary_transmutes)]
1931 pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1932 unsafe {
1933 ::std::mem::transmute(
1934 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(
1935 ::std::ptr::addr_of!((*this)._bitfield_1),
1936 ) as u32,
1937 )
1938 }
1939 }
1940 #[inline]
1941 #[allow(unnecessary_transmutes)]
1942 pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1943 unsafe {
1944 let val: u32 = ::std::mem::transmute(val);
1945 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(
1946 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1947 val as u64,
1948 )
1949 }
1950 }
1951 #[inline]
1952 #[allow(unnecessary_transmutes)]
1953 pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1954 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
1955 }
1956 #[inline]
1957 #[allow(unnecessary_transmutes)]
1958 pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1959 unsafe {
1960 let val: u32 = ::std::mem::transmute(val);
1961 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
1962 }
1963 }
1964 #[inline]
1965 #[allow(unnecessary_transmutes)]
1966 pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1967 unsafe {
1968 ::std::mem::transmute(
1969 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(
1970 ::std::ptr::addr_of!((*this)._bitfield_1),
1971 ) as u32,
1972 )
1973 }
1974 }
1975 #[inline]
1976 #[allow(unnecessary_transmutes)]
1977 pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1978 unsafe {
1979 let val: u32 = ::std::mem::transmute(val);
1980 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(
1981 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1982 val as u64,
1983 )
1984 }
1985 }
1986 #[inline]
1987 #[allow(unnecessary_transmutes)]
1988 pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1989 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
1990 }
1991 #[inline]
1992 #[allow(unnecessary_transmutes)]
1993 pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1994 unsafe {
1995 let val: u32 = ::std::mem::transmute(val);
1996 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
1997 }
1998 }
1999 #[inline]
2000 #[allow(unnecessary_transmutes)]
2001 pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
2002 unsafe {
2003 ::std::mem::transmute(
2004 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<5usize, 1u8>(
2005 ::std::ptr::addr_of!((*this)._bitfield_1),
2006 ) as u32,
2007 )
2008 }
2009 }
2010 #[inline]
2011 #[allow(unnecessary_transmutes)]
2012 pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2013 unsafe {
2014 let val: u32 = ::std::mem::transmute(val);
2015 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<5usize, 1u8>(
2016 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2017 val as u64,
2018 )
2019 }
2020 }
2021 #[inline]
2022 #[allow(unnecessary_transmutes)]
2023 pub fn has_block(&self) -> ::std::os::raw::c_uint {
2024 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
2025 }
2026 #[inline]
2027 #[allow(unnecessary_transmutes)]
2028 pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
2029 unsafe {
2030 let val: u32 = ::std::mem::transmute(val);
2031 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
2032 }
2033 }
2034 #[inline]
2035 #[allow(unnecessary_transmutes)]
2036 pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
2037 unsafe {
2038 ::std::mem::transmute(
2039 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<6usize, 1u8>(
2040 ::std::ptr::addr_of!((*this)._bitfield_1),
2041 ) as u32,
2042 )
2043 }
2044 }
2045 #[inline]
2046 #[allow(unnecessary_transmutes)]
2047 pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2048 unsafe {
2049 let val: u32 = ::std::mem::transmute(val);
2050 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<6usize, 1u8>(
2051 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2052 val as u64,
2053 )
2054 }
2055 }
2056 #[inline]
2057 #[allow(unnecessary_transmutes)]
2058 pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
2059 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
2060 }
2061 #[inline]
2062 #[allow(unnecessary_transmutes)]
2063 pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
2064 unsafe {
2065 let val: u32 = ::std::mem::transmute(val);
2066 self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
2067 }
2068 }
2069 #[inline]
2070 #[allow(unnecessary_transmutes)]
2071 pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
2072 unsafe {
2073 ::std::mem::transmute(
2074 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(
2075 ::std::ptr::addr_of!((*this)._bitfield_1),
2076 ) as u32,
2077 )
2078 }
2079 }
2080 #[inline]
2081 #[allow(unnecessary_transmutes)]
2082 pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2083 unsafe {
2084 let val: u32 = ::std::mem::transmute(val);
2085 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(
2086 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2087 val as u64,
2088 )
2089 }
2090 }
2091 #[inline]
2092 #[allow(unnecessary_transmutes)]
2093 pub fn accepts_no_kwarg(&self) -> ::std::os::raw::c_uint {
2094 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) }
2095 }
2096 #[inline]
2097 #[allow(unnecessary_transmutes)]
2098 pub fn set_accepts_no_kwarg(&mut self, val: ::std::os::raw::c_uint) {
2099 unsafe {
2100 let val: u32 = ::std::mem::transmute(val);
2101 self._bitfield_1.set_const::<8usize, 1u8>(val as u64)
2102 }
2103 }
2104 #[inline]
2105 #[allow(unnecessary_transmutes)]
2106 pub unsafe fn accepts_no_kwarg_raw(this: *const Self) -> ::std::os::raw::c_uint {
2107 unsafe {
2108 ::std::mem::transmute(
2109 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(
2110 ::std::ptr::addr_of!((*this)._bitfield_1),
2111 ) as u32,
2112 )
2113 }
2114 }
2115 #[inline]
2116 #[allow(unnecessary_transmutes)]
2117 pub unsafe fn set_accepts_no_kwarg_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2118 unsafe {
2119 let val: u32 = ::std::mem::transmute(val);
2120 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(
2121 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2122 val as u64,
2123 )
2124 }
2125 }
2126 #[inline]
2127 #[allow(unnecessary_transmutes)]
2128 pub fn ruby2_keywords(&self) -> ::std::os::raw::c_uint {
2129 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u32) }
2130 }
2131 #[inline]
2132 #[allow(unnecessary_transmutes)]
2133 pub fn set_ruby2_keywords(&mut self, val: ::std::os::raw::c_uint) {
2134 unsafe {
2135 let val: u32 = ::std::mem::transmute(val);
2136 self._bitfield_1.set_const::<9usize, 1u8>(val as u64)
2137 }
2138 }
2139 #[inline]
2140 #[allow(unnecessary_transmutes)]
2141 pub unsafe fn ruby2_keywords_raw(this: *const Self) -> ::std::os::raw::c_uint {
2142 unsafe {
2143 ::std::mem::transmute(
2144 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(
2145 ::std::ptr::addr_of!((*this)._bitfield_1),
2146 ) as u32,
2147 )
2148 }
2149 }
2150 #[inline]
2151 #[allow(unnecessary_transmutes)]
2152 pub unsafe fn set_ruby2_keywords_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2153 unsafe {
2154 let val: u32 = ::std::mem::transmute(val);
2155 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(
2156 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2157 val as u64,
2158 )
2159 }
2160 }
2161 #[inline]
2162 #[allow(unnecessary_transmutes)]
2163 pub fn anon_rest(&self) -> ::std::os::raw::c_uint {
2164 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u32) }
2165 }
2166 #[inline]
2167 #[allow(unnecessary_transmutes)]
2168 pub fn set_anon_rest(&mut self, val: ::std::os::raw::c_uint) {
2169 unsafe {
2170 let val: u32 = ::std::mem::transmute(val);
2171 self._bitfield_1.set_const::<10usize, 1u8>(val as u64)
2172 }
2173 }
2174 #[inline]
2175 #[allow(unnecessary_transmutes)]
2176 pub unsafe fn anon_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
2177 unsafe {
2178 ::std::mem::transmute(
2179 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(
2180 ::std::ptr::addr_of!((*this)._bitfield_1),
2181 ) as u32,
2182 )
2183 }
2184 }
2185 #[inline]
2186 #[allow(unnecessary_transmutes)]
2187 pub unsafe fn set_anon_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2188 unsafe {
2189 let val: u32 = ::std::mem::transmute(val);
2190 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(
2191 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2192 val as u64,
2193 )
2194 }
2195 }
2196 #[inline]
2197 #[allow(unnecessary_transmutes)]
2198 pub fn anon_kwrest(&self) -> ::std::os::raw::c_uint {
2199 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u32) }
2200 }
2201 #[inline]
2202 #[allow(unnecessary_transmutes)]
2203 pub fn set_anon_kwrest(&mut self, val: ::std::os::raw::c_uint) {
2204 unsafe {
2205 let val: u32 = ::std::mem::transmute(val);
2206 self._bitfield_1.set_const::<11usize, 1u8>(val as u64)
2207 }
2208 }
2209 #[inline]
2210 #[allow(unnecessary_transmutes)]
2211 pub unsafe fn anon_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
2212 unsafe {
2213 ::std::mem::transmute(
2214 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(
2215 ::std::ptr::addr_of!((*this)._bitfield_1),
2216 ) as u32,
2217 )
2218 }
2219 }
2220 #[inline]
2221 #[allow(unnecessary_transmutes)]
2222 pub unsafe fn set_anon_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2223 unsafe {
2224 let val: u32 = ::std::mem::transmute(val);
2225 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(
2226 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2227 val as u64,
2228 )
2229 }
2230 }
2231 #[inline]
2232 #[allow(unnecessary_transmutes)]
2233 pub fn use_block(&self) -> ::std::os::raw::c_uint {
2234 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u32) }
2235 }
2236 #[inline]
2237 #[allow(unnecessary_transmutes)]
2238 pub fn set_use_block(&mut self, val: ::std::os::raw::c_uint) {
2239 unsafe {
2240 let val: u32 = ::std::mem::transmute(val);
2241 self._bitfield_1.set_const::<12usize, 1u8>(val as u64)
2242 }
2243 }
2244 #[inline]
2245 #[allow(unnecessary_transmutes)]
2246 pub unsafe fn use_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
2247 unsafe {
2248 ::std::mem::transmute(
2249 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(
2250 ::std::ptr::addr_of!((*this)._bitfield_1),
2251 ) as u32,
2252 )
2253 }
2254 }
2255 #[inline]
2256 #[allow(unnecessary_transmutes)]
2257 pub unsafe fn set_use_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2258 unsafe {
2259 let val: u32 = ::std::mem::transmute(val);
2260 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(
2261 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2262 val as u64,
2263 )
2264 }
2265 }
2266 #[inline]
2267 #[allow(unnecessary_transmutes)]
2268 pub fn forwardable(&self) -> ::std::os::raw::c_uint {
2269 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u32) }
2270 }
2271 #[inline]
2272 #[allow(unnecessary_transmutes)]
2273 pub fn set_forwardable(&mut self, val: ::std::os::raw::c_uint) {
2274 unsafe {
2275 let val: u32 = ::std::mem::transmute(val);
2276 self._bitfield_1.set_const::<13usize, 1u8>(val as u64)
2277 }
2278 }
2279 #[inline]
2280 #[allow(unnecessary_transmutes)]
2281 pub unsafe fn forwardable_raw(this: *const Self) -> ::std::os::raw::c_uint {
2282 unsafe {
2283 ::std::mem::transmute(
2284 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(
2285 ::std::ptr::addr_of!((*this)._bitfield_1),
2286 ) as u32,
2287 )
2288 }
2289 }
2290 #[inline]
2291 #[allow(unnecessary_transmutes)]
2292 pub unsafe fn set_forwardable_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2293 unsafe {
2294 let val: u32 = ::std::mem::transmute(val);
2295 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(
2296 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2297 val as u64,
2298 )
2299 }
2300 }
2301 #[inline]
2302 #[allow(unnecessary_transmutes)]
2303 pub fn new_bitfield_1(
2304 has_lead: ::std::os::raw::c_uint,
2305 has_opt: ::std::os::raw::c_uint,
2306 has_rest: ::std::os::raw::c_uint,
2307 has_post: ::std::os::raw::c_uint,
2308 has_kw: ::std::os::raw::c_uint,
2309 has_kwrest: ::std::os::raw::c_uint,
2310 has_block: ::std::os::raw::c_uint,
2311 ambiguous_param0: ::std::os::raw::c_uint,
2312 accepts_no_kwarg: ::std::os::raw::c_uint,
2313 ruby2_keywords: ::std::os::raw::c_uint,
2314 anon_rest: ::std::os::raw::c_uint,
2315 anon_kwrest: ::std::os::raw::c_uint,
2316 use_block: ::std::os::raw::c_uint,
2317 forwardable: ::std::os::raw::c_uint,
2318 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2319 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2320 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2321 let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
2322 has_lead as u64
2323 });
2324 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2325 let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
2326 has_opt as u64
2327 });
2328 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2329 let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
2330 has_rest as u64
2331 });
2332 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2333 let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
2334 has_post as u64
2335 });
2336 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
2337 let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
2338 has_kw as u64
2339 });
2340 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
2341 let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
2342 has_kwrest as u64
2343 });
2344 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
2345 let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
2346 has_block as u64
2347 });
2348 __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
2349 let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
2350 ambiguous_param0 as u64
2351 });
2352 __bindgen_bitfield_unit.set_const::<8usize, 1u8>({
2353 let accepts_no_kwarg: u32 = unsafe { ::std::mem::transmute(accepts_no_kwarg) };
2354 accepts_no_kwarg as u64
2355 });
2356 __bindgen_bitfield_unit.set_const::<9usize, 1u8>({
2357 let ruby2_keywords: u32 = unsafe { ::std::mem::transmute(ruby2_keywords) };
2358 ruby2_keywords as u64
2359 });
2360 __bindgen_bitfield_unit.set_const::<10usize, 1u8>({
2361 let anon_rest: u32 = unsafe { ::std::mem::transmute(anon_rest) };
2362 anon_rest as u64
2363 });
2364 __bindgen_bitfield_unit.set_const::<11usize, 1u8>({
2365 let anon_kwrest: u32 = unsafe { ::std::mem::transmute(anon_kwrest) };
2366 anon_kwrest as u64
2367 });
2368 __bindgen_bitfield_unit.set_const::<12usize, 1u8>({
2369 let use_block: u32 = unsafe { ::std::mem::transmute(use_block) };
2370 use_block as u64
2371 });
2372 __bindgen_bitfield_unit.set_const::<13usize, 1u8>({
2373 let forwardable: u32 = unsafe { ::std::mem::transmute(forwardable) };
2374 forwardable as u64
2375 });
2376 __bindgen_bitfield_unit
2377 }
2378}
2379#[repr(C)]
2380#[derive(Debug, Copy, Clone)]
2381pub struct rb_iseq_constant_body_rb_iseq_parameters_rb_iseq_param_keyword {
2382 pub num: ::std::os::raw::c_int,
2383 pub required_num: ::std::os::raw::c_int,
2384 pub bits_start: ::std::os::raw::c_int,
2385 pub rest_start: ::std::os::raw::c_int,
2386 pub table: *const ID,
2387 pub default_values: *mut VALUE,
2388}
2389#[repr(C)]
2390#[derive(Debug, Copy, Clone)]
2391pub struct rb_iseq_constant_body_iseq_insn_info {
2392 pub body: *const iseq_insn_info_entry,
2393 pub positions: *mut ::std::os::raw::c_uint,
2394 pub size: ::std::os::raw::c_uint,
2395 pub succ_index_table: *mut succ_index_table,
2396}
2397pub const rb_iseq_constant_body_lvar_state_lvar_uninitialized: rb_iseq_constant_body_lvar_state = 0;
2398pub const rb_iseq_constant_body_lvar_state_lvar_initialized: rb_iseq_constant_body_lvar_state = 1;
2399pub const rb_iseq_constant_body_lvar_state_lvar_reassigned: rb_iseq_constant_body_lvar_state = 2;
2400pub type rb_iseq_constant_body_lvar_state = ::std::os::raw::c_uint;
2401#[repr(C)]
2402#[derive(Debug, Copy, Clone)]
2403pub struct rb_iseq_constant_body__bindgen_ty_1 {
2404 pub flip_count: rb_snum_t,
2405 pub script_lines: VALUE,
2406 pub coverage: VALUE,
2407 pub pc2branchindex: VALUE,
2408 pub original_iseq: *mut VALUE,
2409}
2410#[repr(C)]
2411#[derive(Copy, Clone)]
2412pub union rb_iseq_constant_body__bindgen_ty_2 {
2413 pub list: *mut iseq_bits_t,
2414 pub single: iseq_bits_t,
2415}
2416impl ::std::fmt::Debug for rb_iseq_constant_body__bindgen_ty_2 {
2417 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2418 write!(f, "rb_iseq_constant_body__bindgen_ty_2 {{ union }}")
2419 }
2420}
2421impl ::std::fmt::Debug for rb_iseq_constant_body {
2422 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2423 write ! (f , "rb_iseq_constant_body {{ type: {:?}, iseq_size: {:?}, iseq_encoded: {:?}, param: {:?}, location: {:?}, insns_info: {:?}, local_table: {:?}, lvar_states: {:?}, catch_table: {:?}, parent_iseq: {:?}, local_iseq: {:?}, is_entries: {:?}, call_data: {:?}, variable: {:?}, local_table_size: {:?}, ic_size: {:?}, ise_size: {:?}, ivc_size: {:?}, icvarc_size: {:?}, ci_size: {:?}, stack_max: {:?}, builtin_attrs: {:?}, prism: {:?}, mark_bits: {:?}, outer_variables: {:?}, mandatory_only_iseq: {:?}, jit_entry: {:?}, jit_entry_calls: {:?}, jit_exception: {:?}, jit_exception_calls: {:?}, yjit_payload: {:?} }}" , self . type_ , self . iseq_size , self . iseq_encoded , self . param , self . location , self . insns_info , self . local_table , self . lvar_states , self . catch_table , self . parent_iseq , self . local_iseq , self . is_entries , self . call_data , self . variable , self . local_table_size , self . ic_size , self . ise_size , self . ivc_size , self . icvarc_size , self . ci_size , self . stack_max , self . builtin_attrs , self . prism , self . mark_bits , self . outer_variables , self . mandatory_only_iseq , self . jit_entry , self . jit_entry_calls , self . jit_exception , self . jit_exception_calls , self . yjit_payload)
2424 }
2425}
2426#[repr(C)]
2427#[derive(Copy, Clone)]
2428pub struct rb_iseq_struct {
2429 pub flags: VALUE,
2430 pub wrapper: VALUE,
2431 pub body: *mut rb_iseq_constant_body,
2432 pub aux: rb_iseq_struct__bindgen_ty_1,
2433}
2434#[repr(C)]
2435#[derive(Copy, Clone)]
2436pub union rb_iseq_struct__bindgen_ty_1 {
2437 pub compile_data: *mut iseq_compile_data,
2438 pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
2439 pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
2440}
2441#[repr(C)]
2442#[derive(Debug, Copy, Clone)]
2443pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
2444 pub obj: VALUE,
2445 pub index: ::std::os::raw::c_int,
2446}
2447#[repr(C)]
2448#[derive(Debug, Copy, Clone)]
2449pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
2450 pub local_hooks_cnt: ::std::os::raw::c_uint,
2451 pub global_trace_events: rb_event_flag_t,
2452}
2453impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
2454 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2455 write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
2456 }
2457}
2458impl ::std::fmt::Debug for rb_iseq_struct {
2459 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2460 write!(
2461 f,
2462 "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
2463 self.flags, self.wrapper, self.body, self.aux
2464 )
2465 }
2466}
2467pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
2468#[repr(C)]
2469#[derive(Debug, Copy, Clone)]
2470pub struct rb_at_exit_list {
2471 pub func: rb_vm_at_exit_func,
2472 pub next: *mut rb_at_exit_list,
2473}
2474pub const rb_hook_list_type_hook_list_type_ractor_local: rb_hook_list_type = 0;
2475pub const rb_hook_list_type_hook_list_type_targeted_iseq: rb_hook_list_type = 1;
2476pub const rb_hook_list_type_hook_list_type_targeted_def: rb_hook_list_type = 2;
2477pub const rb_hook_list_type_hook_list_type_global: rb_hook_list_type = 3;
2478pub type rb_hook_list_type = ::std::os::raw::c_uint;
2479#[repr(C)]
2480#[derive(Debug, Copy, Clone)]
2481pub struct rb_hook_list_struct {
2482 pub hooks: *mut rb_event_hook_struct,
2483 pub events: rb_event_flag_t,
2484 pub running: ::std::os::raw::c_uint,
2485 pub type_: rb_hook_list_type,
2486 pub need_clean: u8,
2487}
2488pub type rb_hook_list_t = rb_hook_list_struct;
2489#[repr(C)]
2490#[derive(Debug)]
2491pub struct rb_builtin_function {
2492 _unused: [u8; 0],
2493}
2494#[repr(C)]
2495#[derive(Debug, Copy, Clone)]
2496pub struct global_object_list {
2497 pub varptr: *mut VALUE,
2498 pub next: *mut global_object_list,
2499}
2500#[repr(C)]
2501#[derive(Copy, Clone)]
2502pub struct rb_vm_struct {
2503 pub self_: VALUE,
2504 pub ractor: rb_vm_struct__bindgen_ty_1,
2505 pub main_altstack: *mut ::std::os::raw::c_void,
2506 pub fork_gen: rb_serial_t,
2507 pub ubf_async_safe: ::std::os::raw::c_int,
2508 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2509 pub mark_object_ary: VALUE,
2510 pub global_object_list: *mut global_object_list,
2511 pub special_exceptions: [VALUE; 5usize],
2512 pub root_box: *mut rb_box_t,
2513 pub main_box: *mut rb_box_t,
2514 pub static_ext_inits: *mut st_table,
2515 pub trap_list: rb_vm_struct__bindgen_ty_2,
2516 pub global_hooks: rb_hook_list_t,
2517 pub postponed_job_queue: *mut rb_postponed_job_queue,
2518 pub src_encoding_index: ::std::os::raw::c_int,
2519 pub workqueue: ccan_list_head,
2520 pub workqueue_lock: rb_nativethread_lock_t,
2521 pub orig_progname: VALUE,
2522 pub progname: VALUE,
2523 pub coverages: VALUE,
2524 pub me2counter: VALUE,
2525 pub coverage_mode: ::std::os::raw::c_int,
2526 pub gc: rb_vm_struct__bindgen_ty_3,
2527 pub at_exit: *mut rb_at_exit_list,
2528 pub builtin_function_table: *const rb_builtin_function,
2529 pub ci_table: *mut st_table,
2530 pub negative_cme_table: *mut rb_id_table,
2531 pub overloaded_cme_table: *mut st_table,
2532 pub unused_block_warning_table: *mut set_table,
2533 pub cc_refinement_table: *mut set_table,
2534 pub constant_cache: *mut rb_id_table,
2535 pub inserting_constant_cache_id: ID,
2536 pub global_cc_cache_table: [*const rb_callcache; 1023usize],
2537 pub default_params: rb_vm_struct__bindgen_ty_4,
2538}
2539#[repr(C)]
2540#[derive(Copy, Clone)]
2541pub struct rb_vm_struct__bindgen_ty_1 {
2542 pub set: ccan_list_head,
2543 pub cnt: ::std::os::raw::c_uint,
2544 pub blocking_cnt: ::std::os::raw::c_uint,
2545 pub main_ractor: *mut rb_ractor_struct,
2546 pub main_thread: *mut rb_thread_struct,
2547 pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
2548 pub sched: rb_vm_struct__bindgen_ty_1__bindgen_ty_2,
2549}
2550#[repr(C)]
2551#[derive(Copy, Clone)]
2552pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2553 pub lock: rb_nativethread_lock_t,
2554 pub lock_owner: *mut rb_ractor_struct,
2555 pub lock_rec: ::std::os::raw::c_uint,
2556 pub terminate_cond: rb_nativethread_cond_t,
2557 pub terminate_waiting: u8,
2558}
2559impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2560 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2561 write ! (f , "rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {{ lock: {:?}, lock_owner: {:?}, lock_rec: {:?}, terminate_cond: {:?}, terminate_waiting: {:?} }}" , self . lock , self . lock_owner , self . lock_rec , self . terminate_cond , self . terminate_waiting)
2562 }
2563}
2564#[repr(C)]
2565#[derive(Copy, Clone)]
2566pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2567 pub lock: rb_nativethread_lock_t,
2568 pub lock_owner: *mut rb_ractor_struct,
2569 pub locked: u8,
2570 pub cond: rb_nativethread_cond_t,
2571 pub snt_cnt: ::std::os::raw::c_uint,
2572 pub dnt_cnt: ::std::os::raw::c_uint,
2573 pub running_cnt: ::std::os::raw::c_uint,
2574 pub max_cpu: ::std::os::raw::c_uint,
2575 pub grq: ccan_list_head,
2576 pub grq_cnt: ::std::os::raw::c_uint,
2577 pub running_threads: ccan_list_head,
2578 pub timeslice_threads: ccan_list_head,
2579 pub zombie_threads: ccan_list_head,
2580 pub timeslice_wait_inf: u8,
2581 pub barrier_complete_cond: rb_nativethread_cond_t,
2582 pub barrier_release_cond: rb_nativethread_cond_t,
2583 pub barrier_waiting: u8,
2584 pub barrier_waiting_cnt: ::std::os::raw::c_uint,
2585 pub barrier_serial: ::std::os::raw::c_uint,
2586 pub barrier_ractor: *mut rb_ractor_struct,
2587 pub barrier_lock_rec: ::std::os::raw::c_uint,
2588}
2589impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2590 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2591 write ! (f , "rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {{ lock: {:?}, lock_owner: {:?}, locked: {:?}, cond: {:?}, snt_cnt: {:?}, dnt_cnt: {:?}, running_cnt: {:?}, max_cpu: {:?}, grq: {:?}, grq_cnt: {:?}, running_threads: {:?}, timeslice_threads: {:?}, zombie_threads: {:?}, timeslice_wait_inf: {:?}, barrier_complete_cond: {:?}, barrier_release_cond: {:?}, barrier_waiting: {:?}, barrier_waiting_cnt: {:?}, barrier_serial: {:?}, barrier_ractor: {:?}, barrier_lock_rec: {:?} }}" , self . lock , self . lock_owner , self . locked , self . cond , self . snt_cnt , self . dnt_cnt , self . running_cnt , self . max_cpu , self . grq , self . grq_cnt , self . running_threads , self . timeslice_threads , self . zombie_threads , self . timeslice_wait_inf , self . barrier_complete_cond , self . barrier_release_cond , self . barrier_waiting , self . barrier_waiting_cnt , self . barrier_serial , self . barrier_ractor , self . barrier_lock_rec)
2592 }
2593}
2594impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2595 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2596 write ! (f , "rb_vm_struct__bindgen_ty_1 {{ set: {:?}, cnt: {:?}, blocking_cnt: {:?}, main_ractor: {:?}, main_thread: {:?}, sync: {:?}, sched: {:?} }}" , self . set , self . cnt , self . blocking_cnt , self . main_ractor , self . main_thread , self . sync , self . sched)
2597 }
2598}
2599#[repr(C)]
2600#[derive(Debug, Copy, Clone)]
2601pub struct rb_vm_struct__bindgen_ty_2 {
2602 pub cmd: [VALUE; 65usize],
2603}
2604#[repr(C)]
2605#[derive(Debug, Copy, Clone)]
2606pub struct rb_vm_struct__bindgen_ty_3 {
2607 pub objspace: *mut rb_objspace,
2608 pub mark_func_data: *mut rb_vm_struct__bindgen_ty_3_gc_mark_func_data_struct,
2609}
2610#[repr(C)]
2611#[derive(Debug, Copy, Clone)]
2612pub struct rb_vm_struct__bindgen_ty_3_gc_mark_func_data_struct {
2613 pub data: *mut ::std::os::raw::c_void,
2614 pub mark_func:
2615 ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
2616}
2617#[repr(C)]
2618#[derive(Debug, Copy, Clone)]
2619pub struct rb_vm_struct__bindgen_ty_4 {
2620 pub thread_vm_stack_size: usize,
2621 pub thread_machine_stack_size: usize,
2622 pub fiber_vm_stack_size: usize,
2623 pub fiber_machine_stack_size: usize,
2624}
2625impl ::std::fmt::Debug for rb_vm_struct {
2626 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2627 write ! (f , "rb_vm_struct {{ self: {:?}, ractor: {:?}, main_altstack: {:?}, fork_gen: {:?}, ubf_async_safe: {:?}, running : {:?}, thread_abort_on_exception : {:?}, thread_report_on_exception : {:?}, thread_ignore_deadlock : {:?}, mark_object_ary: {:?}, global_object_list: {:?}, special_exceptions: {:?}, root_box: {:?}, main_box: {:?}, static_ext_inits: {:?}, trap_list: {:?}, global_hooks: {:?}, postponed_job_queue: {:?}, src_encoding_index: {:?}, workqueue: {:?}, workqueue_lock: {:?}, orig_progname: {:?}, progname: {:?}, coverages: {:?}, me2counter: {:?}, coverage_mode: {:?}, gc: {:?}, at_exit: {:?}, builtin_function_table: {:?}, ci_table: {:?}, negative_cme_table: {:?}, overloaded_cme_table: {:?}, unused_block_warning_table: {:?}, cc_refinement_table: {:?}, constant_cache: {:?}, inserting_constant_cache_id: {:?}, global_cc_cache_table: {:?}, default_params: {:?} }}" , self . self_ , self . ractor , self . main_altstack , self . fork_gen , self . ubf_async_safe , self . running () , self . thread_abort_on_exception () , self . thread_report_on_exception () , self . thread_ignore_deadlock () , self . mark_object_ary , self . global_object_list , self . special_exceptions , self . root_box , self . main_box , self . static_ext_inits , self . trap_list , self . global_hooks , self . postponed_job_queue , self . src_encoding_index , self . workqueue , self . workqueue_lock , self . orig_progname , self . progname , self . coverages , self . me2counter , self . coverage_mode , self . gc , self . at_exit , self . builtin_function_table , self . ci_table , self . negative_cme_table , self . overloaded_cme_table , self . unused_block_warning_table , self . cc_refinement_table , self . constant_cache , self . inserting_constant_cache_id , self . global_cc_cache_table , self . default_params)
2628 }
2629}
2630impl rb_vm_struct {
2631 #[inline]
2632 #[allow(unnecessary_transmutes)]
2633 pub fn running(&self) -> ::std::os::raw::c_uint {
2634 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2635 }
2636 #[inline]
2637 #[allow(unnecessary_transmutes)]
2638 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2639 unsafe {
2640 let val: u32 = ::std::mem::transmute(val);
2641 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2642 }
2643 }
2644 #[inline]
2645 #[allow(unnecessary_transmutes)]
2646 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2647 unsafe {
2648 ::std::mem::transmute(
2649 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
2650 ::std::ptr::addr_of!((*this)._bitfield_1),
2651 ) as u32,
2652 )
2653 }
2654 }
2655 #[inline]
2656 #[allow(unnecessary_transmutes)]
2657 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2658 unsafe {
2659 let val: u32 = ::std::mem::transmute(val);
2660 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
2661 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2662 val as u64,
2663 )
2664 }
2665 }
2666 #[inline]
2667 #[allow(unnecessary_transmutes)]
2668 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2669 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2670 }
2671 #[inline]
2672 #[allow(unnecessary_transmutes)]
2673 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2674 unsafe {
2675 let val: u32 = ::std::mem::transmute(val);
2676 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2677 }
2678 }
2679 #[inline]
2680 #[allow(unnecessary_transmutes)]
2681 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2682 unsafe {
2683 ::std::mem::transmute(
2684 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
2685 ::std::ptr::addr_of!((*this)._bitfield_1),
2686 ) as u32,
2687 )
2688 }
2689 }
2690 #[inline]
2691 #[allow(unnecessary_transmutes)]
2692 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2693 unsafe {
2694 let val: u32 = ::std::mem::transmute(val);
2695 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
2696 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2697 val as u64,
2698 )
2699 }
2700 }
2701 #[inline]
2702 #[allow(unnecessary_transmutes)]
2703 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2704 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2705 }
2706 #[inline]
2707 #[allow(unnecessary_transmutes)]
2708 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2709 unsafe {
2710 let val: u32 = ::std::mem::transmute(val);
2711 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2712 }
2713 }
2714 #[inline]
2715 #[allow(unnecessary_transmutes)]
2716 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2717 unsafe {
2718 ::std::mem::transmute(
2719 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2720 ::std::ptr::addr_of!((*this)._bitfield_1),
2721 ) as u32,
2722 )
2723 }
2724 }
2725 #[inline]
2726 #[allow(unnecessary_transmutes)]
2727 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2728 unsafe {
2729 let val: u32 = ::std::mem::transmute(val);
2730 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2731 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2732 val as u64,
2733 )
2734 }
2735 }
2736 #[inline]
2737 #[allow(unnecessary_transmutes)]
2738 pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2739 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2740 }
2741 #[inline]
2742 #[allow(unnecessary_transmutes)]
2743 pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2744 unsafe {
2745 let val: u32 = ::std::mem::transmute(val);
2746 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2747 }
2748 }
2749 #[inline]
2750 #[allow(unnecessary_transmutes)]
2751 pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2752 unsafe {
2753 ::std::mem::transmute(
2754 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
2755 ::std::ptr::addr_of!((*this)._bitfield_1),
2756 ) as u32,
2757 )
2758 }
2759 }
2760 #[inline]
2761 #[allow(unnecessary_transmutes)]
2762 pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2763 unsafe {
2764 let val: u32 = ::std::mem::transmute(val);
2765 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
2766 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2767 val as u64,
2768 )
2769 }
2770 }
2771 #[inline]
2772 #[allow(unnecessary_transmutes)]
2773 pub fn new_bitfield_1(
2774 running: ::std::os::raw::c_uint,
2775 thread_abort_on_exception: ::std::os::raw::c_uint,
2776 thread_report_on_exception: ::std::os::raw::c_uint,
2777 thread_ignore_deadlock: ::std::os::raw::c_uint,
2778 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2779 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2780 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2781 let running: u32 = unsafe { ::std::mem::transmute(running) };
2782 running as u64
2783 });
2784 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2785 let thread_abort_on_exception: u32 =
2786 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2787 thread_abort_on_exception as u64
2788 });
2789 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2790 let thread_report_on_exception: u32 =
2791 unsafe { ::std::mem::transmute(thread_report_on_exception) };
2792 thread_report_on_exception as u64
2793 });
2794 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2795 let thread_ignore_deadlock: u32 =
2796 unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2797 thread_ignore_deadlock as u64
2798 });
2799 __bindgen_bitfield_unit
2800 }
2801}
2802pub type rb_vm_t = rb_vm_struct;
2803#[repr(C)]
2804#[derive(Debug, Copy, Clone)]
2805pub struct rb_control_frame_struct {
2806 pub pc: *const VALUE,
2807 pub sp: *mut VALUE,
2808 pub iseq: *const rb_iseq_t,
2809 pub self_: VALUE,
2810 pub ep: *const VALUE,
2811 pub block_code: *const ::std::os::raw::c_void,
2812 pub jit_return: *mut ::std::os::raw::c_void,
2813}
2814pub type rb_control_frame_t = rb_control_frame_struct;
2815pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2816pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2817pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2818pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2819pub type rb_thread_status = ::std::os::raw::c_uint;
2820pub type rb_jmpbuf_t = sigjmp_buf;
2821pub type rb_vm_tag_jmpbuf_t = rb_jmpbuf_t;
2822#[repr(C)]
2823#[derive(Debug, Copy, Clone)]
2824pub struct rb_vm_tag {
2825 pub tag: VALUE,
2826 pub retval: VALUE,
2827 pub buf: rb_vm_tag_jmpbuf_t,
2828 pub prev: *mut rb_vm_tag,
2829 pub state: ruby_tag_type,
2830 pub lock_rec: ::std::os::raw::c_uint,
2831}
2832#[repr(C)]
2833#[derive(Debug, Copy, Clone)]
2834pub struct rb_unblock_callback {
2835 pub func: rb_unblock_function_t,
2836 pub arg: *mut ::std::os::raw::c_void,
2837}
2838#[repr(C)]
2839#[derive(Debug)]
2840pub struct rb_mutex_struct {
2841 _unused: [u8; 0],
2842}
2843#[repr(C)]
2844#[derive(Debug)]
2845pub struct rb_fiber_struct {
2846 _unused: [u8; 0],
2847}
2848pub type rb_fiber_t = rb_fiber_struct;
2849#[repr(C)]
2850#[derive(Debug, Copy, Clone)]
2851pub struct rb_waiting_list {
2852 pub next: *mut rb_waiting_list,
2853 pub thread: *mut rb_thread_struct,
2854 pub fiber: *mut rb_fiber_struct,
2855}
2856#[repr(C)]
2857#[derive(Debug, Copy, Clone)]
2858pub struct rb_execution_context_struct {
2859 pub vm_stack: *mut VALUE,
2860 pub vm_stack_size: usize,
2861 pub cfp: *mut rb_control_frame_t,
2862 pub tag: *mut rb_vm_tag,
2863 pub interrupt_flag: rb_atomic_t,
2864 pub interrupt_mask: rb_atomic_t,
2865 pub fiber_ptr: *mut rb_fiber_t,
2866 pub thread_ptr: *mut rb_thread_struct,
2867 pub serial: rb_serial_t,
2868 pub ractor_id: rb_serial_t,
2869 pub local_storage: *mut rb_id_table,
2870 pub local_storage_recursive_hash: VALUE,
2871 pub local_storage_recursive_hash_for_trace: VALUE,
2872 pub storage: VALUE,
2873 pub root_lep: *const VALUE,
2874 pub root_svar: VALUE,
2875 pub trace_arg: *mut rb_trace_arg_struct,
2876 pub errinfo: VALUE,
2877 pub passed_block_handler: VALUE,
2878 pub raised_flag: u8,
2879 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2880 pub private_const_reference: VALUE,
2881 pub gen_fields_cache: rb_execution_context_struct__bindgen_ty_1,
2882 pub machine: rb_execution_context_struct__bindgen_ty_2,
2883}
2884#[repr(C)]
2885#[derive(Debug, Copy, Clone)]
2886pub struct rb_execution_context_struct__bindgen_ty_1 {
2887 pub obj: VALUE,
2888 pub fields_obj: VALUE,
2889}
2890#[repr(C)]
2891#[derive(Debug, Copy, Clone)]
2892pub struct rb_execution_context_struct__bindgen_ty_2 {
2893 pub stack_start: *mut VALUE,
2894 pub stack_end: *mut VALUE,
2895 pub stack_maxsize: usize,
2896 pub regs: jmp_buf,
2897}
2898impl rb_execution_context_struct {
2899 #[inline]
2900 #[allow(unnecessary_transmutes)]
2901 pub fn method_missing_reason(&self) -> method_missing_reason {
2902 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 8u8>() as u32) }
2903 }
2904 #[inline]
2905 #[allow(unnecessary_transmutes)]
2906 pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2907 unsafe {
2908 let val: u32 = ::std::mem::transmute(val);
2909 self._bitfield_1.set_const::<0usize, 8u8>(val as u64)
2910 }
2911 }
2912 #[inline]
2913 #[allow(unnecessary_transmutes)]
2914 pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2915 unsafe {
2916 ::std::mem::transmute(
2917 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 8u8>(
2918 ::std::ptr::addr_of!((*this)._bitfield_1),
2919 ) as u32,
2920 )
2921 }
2922 }
2923 #[inline]
2924 #[allow(unnecessary_transmutes)]
2925 pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2926 unsafe {
2927 let val: u32 = ::std::mem::transmute(val);
2928 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 8u8>(
2929 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2930 val as u64,
2931 )
2932 }
2933 }
2934 #[inline]
2935 #[allow(unnecessary_transmutes)]
2936 pub fn new_bitfield_1(
2937 method_missing_reason: method_missing_reason,
2938 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2939 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2940 __bindgen_bitfield_unit.set_const::<0usize, 8u8>({
2941 let method_missing_reason: u32 =
2942 unsafe { ::std::mem::transmute(method_missing_reason) };
2943 method_missing_reason as u64
2944 });
2945 __bindgen_bitfield_unit
2946 }
2947}
2948pub type rb_execution_context_t = rb_execution_context_struct;
2949#[repr(C)]
2950#[derive(Debug, Copy, Clone)]
2951pub struct rb_ext_config {
2952 pub ractor_safe: u8,
2953}
2954pub type rb_ractor_t = rb_ractor_struct;
2955#[repr(C)]
2956#[derive(Copy, Clone)]
2957pub struct rb_thread_struct {
2958 pub lt_node: ccan_list_node,
2959 pub self_: VALUE,
2960 pub ractor: *mut rb_ractor_t,
2961 pub vm: *mut rb_vm_t,
2962 pub nt: *mut rb_native_thread,
2963 pub ec: *mut rb_execution_context_t,
2964 pub sched: rb_thread_sched_item,
2965 pub mn_schedulable: u8,
2966 pub serial: rb_atomic_t,
2967 pub last_status: VALUE,
2968 pub calling: *mut rb_calling_info,
2969 pub top_self: VALUE,
2970 pub top_wrapper: VALUE,
2971 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2972 pub priority: i8,
2973 pub running_time_us: u32,
2974 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2975 pub thgroup: VALUE,
2976 pub value: VALUE,
2977 pub pending_interrupt_queue: VALUE,
2978 pub pending_interrupt_mask_stack: VALUE,
2979 pub interrupt_lock: rb_nativethread_lock_t,
2980 pub unblock: rb_unblock_callback,
2981 pub locking_mutex: VALUE,
2982 pub keeping_mutexes: *mut rb_mutex_struct,
2983 pub interrupt_exec_tasks: ccan_list_head,
2984 pub join_list: *mut rb_waiting_list,
2985 pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2986 pub invoke_type: rb_thread_struct_thread_invoke_type,
2987 pub root_fiber: *mut rb_fiber_t,
2988 pub scheduler: VALUE,
2989 pub blocking: ::std::os::raw::c_uint,
2990 pub name: VALUE,
2991 pub specific_storage: *mut *mut ::std::os::raw::c_void,
2992 pub ext_config: rb_ext_config,
2993}
2994#[repr(C)]
2995#[derive(Copy, Clone)]
2996pub union rb_thread_struct__bindgen_ty_1 {
2997 pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2998 pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2999}
3000#[repr(C)]
3001#[derive(Debug, Copy, Clone)]
3002pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
3003 pub proc_: VALUE,
3004 pub args: VALUE,
3005 pub kw_splat: ::std::os::raw::c_int,
3006}
3007#[repr(C)]
3008#[derive(Debug, Copy, Clone)]
3009pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
3010 pub func:
3011 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
3012 pub arg: *mut ::std::os::raw::c_void,
3013}
3014impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
3015 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3016 write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
3017 }
3018}
3019pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
3020 rb_thread_struct_thread_invoke_type = 0;
3021pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
3022 rb_thread_struct_thread_invoke_type = 1;
3023pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
3024 rb_thread_struct_thread_invoke_type = 2;
3025pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
3026 rb_thread_struct_thread_invoke_type = 3;
3027pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
3028impl ::std::fmt::Debug for rb_thread_struct {
3029 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3030 write ! (f , "rb_thread_struct {{ lt_node: {:?}, self: {:?}, ractor: {:?}, vm: {:?}, nt: {:?}, ec: {:?}, sched: {:?}, mn_schedulable: {:?}, serial: {:?}, last_status: {:?}, calling: {:?}, top_self: {:?}, top_wrapper: {:?}, status : {:?}, has_dedicated_nt : {:?}, to_kill : {:?}, abort_on_exception : {:?}, report_on_exception : {:?}, pending_interrupt_queue_checked : {:?}, blocking_region_buffer: {:?}, thgroup: {:?}, value: {:?}, pending_interrupt_queue: {:?}, pending_interrupt_mask_stack: {:?}, interrupt_lock: {:?}, unblock: {:?}, locking_mutex: {:?}, keeping_mutexes: {:?}, interrupt_exec_tasks: {:?}, join_list: {:?}, invoke_arg: {:?}, invoke_type: {:?}, root_fiber: {:?}, scheduler: {:?}, blocking: {:?}, name: {:?}, specific_storage: {:?}, ext_config: {:?} }}" , self . lt_node , self . self_ , self . ractor , self . vm , self . nt , self . ec , self . sched , self . mn_schedulable , self . serial , self . last_status , self . calling , self . top_self , self . top_wrapper , self . status () , self . has_dedicated_nt () , self . to_kill () , self . abort_on_exception () , self . report_on_exception () , self . pending_interrupt_queue_checked () , 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 . interrupt_exec_tasks , self . join_list , self . invoke_arg , self . invoke_type , self . root_fiber , self . scheduler , self . blocking , self . name , self . specific_storage , self . ext_config)
3031 }
3032}
3033impl rb_thread_struct {
3034 #[inline]
3035 #[allow(unnecessary_transmutes)]
3036 pub fn status(&self) -> rb_thread_status {
3037 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 2u8>() as u32) }
3038 }
3039 #[inline]
3040 #[allow(unnecessary_transmutes)]
3041 pub fn set_status(&mut self, val: rb_thread_status) {
3042 unsafe {
3043 let val: u32 = ::std::mem::transmute(val);
3044 self._bitfield_1.set_const::<0usize, 2u8>(val as u64)
3045 }
3046 }
3047 #[inline]
3048 #[allow(unnecessary_transmutes)]
3049 pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
3050 unsafe {
3051 ::std::mem::transmute(
3052 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 2u8>(
3053 ::std::ptr::addr_of!((*this)._bitfield_1),
3054 ) as u32,
3055 )
3056 }
3057 }
3058 #[inline]
3059 #[allow(unnecessary_transmutes)]
3060 pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
3061 unsafe {
3062 let val: u32 = ::std::mem::transmute(val);
3063 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 2u8>(
3064 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3065 val as u64,
3066 )
3067 }
3068 }
3069 #[inline]
3070 #[allow(unnecessary_transmutes)]
3071 pub fn has_dedicated_nt(&self) -> ::std::os::raw::c_uint {
3072 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
3073 }
3074 #[inline]
3075 #[allow(unnecessary_transmutes)]
3076 pub fn set_has_dedicated_nt(&mut self, val: ::std::os::raw::c_uint) {
3077 unsafe {
3078 let val: u32 = ::std::mem::transmute(val);
3079 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
3080 }
3081 }
3082 #[inline]
3083 #[allow(unnecessary_transmutes)]
3084 pub unsafe fn has_dedicated_nt_raw(this: *const Self) -> ::std::os::raw::c_uint {
3085 unsafe {
3086 ::std::mem::transmute(
3087 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
3088 ::std::ptr::addr_of!((*this)._bitfield_1),
3089 ) as u32,
3090 )
3091 }
3092 }
3093 #[inline]
3094 #[allow(unnecessary_transmutes)]
3095 pub unsafe fn set_has_dedicated_nt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3096 unsafe {
3097 let val: u32 = ::std::mem::transmute(val);
3098 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
3099 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3100 val as u64,
3101 )
3102 }
3103 }
3104 #[inline]
3105 #[allow(unnecessary_transmutes)]
3106 pub fn to_kill(&self) -> ::std::os::raw::c_uint {
3107 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
3108 }
3109 #[inline]
3110 #[allow(unnecessary_transmutes)]
3111 pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
3112 unsafe {
3113 let val: u32 = ::std::mem::transmute(val);
3114 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
3115 }
3116 }
3117 #[inline]
3118 #[allow(unnecessary_transmutes)]
3119 pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
3120 unsafe {
3121 ::std::mem::transmute(
3122 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
3123 ::std::ptr::addr_of!((*this)._bitfield_1),
3124 ) as u32,
3125 )
3126 }
3127 }
3128 #[inline]
3129 #[allow(unnecessary_transmutes)]
3130 pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3131 unsafe {
3132 let val: u32 = ::std::mem::transmute(val);
3133 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
3134 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3135 val as u64,
3136 )
3137 }
3138 }
3139 #[inline]
3140 #[allow(unnecessary_transmutes)]
3141 pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
3142 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
3143 }
3144 #[inline]
3145 #[allow(unnecessary_transmutes)]
3146 pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
3147 unsafe {
3148 let val: u32 = ::std::mem::transmute(val);
3149 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
3150 }
3151 }
3152 #[inline]
3153 #[allow(unnecessary_transmutes)]
3154 pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
3155 unsafe {
3156 ::std::mem::transmute(
3157 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
3158 ::std::ptr::addr_of!((*this)._bitfield_1),
3159 ) as u32,
3160 )
3161 }
3162 }
3163 #[inline]
3164 #[allow(unnecessary_transmutes)]
3165 pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3166 unsafe {
3167 let val: u32 = ::std::mem::transmute(val);
3168 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
3169 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3170 val as u64,
3171 )
3172 }
3173 }
3174 #[inline]
3175 #[allow(unnecessary_transmutes)]
3176 pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
3177 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
3178 }
3179 #[inline]
3180 #[allow(unnecessary_transmutes)]
3181 pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
3182 unsafe {
3183 let val: u32 = ::std::mem::transmute(val);
3184 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
3185 }
3186 }
3187 #[inline]
3188 #[allow(unnecessary_transmutes)]
3189 pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
3190 unsafe {
3191 ::std::mem::transmute(
3192 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
3193 ::std::ptr::addr_of!((*this)._bitfield_1),
3194 ) as u32,
3195 )
3196 }
3197 }
3198 #[inline]
3199 #[allow(unnecessary_transmutes)]
3200 pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3201 unsafe {
3202 let val: u32 = ::std::mem::transmute(val);
3203 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
3204 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3205 val as u64,
3206 )
3207 }
3208 }
3209 #[inline]
3210 #[allow(unnecessary_transmutes)]
3211 pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
3212 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
3213 }
3214 #[inline]
3215 #[allow(unnecessary_transmutes)]
3216 pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
3217 unsafe {
3218 let val: u32 = ::std::mem::transmute(val);
3219 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
3220 }
3221 }
3222 #[inline]
3223 #[allow(unnecessary_transmutes)]
3224 pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
3225 unsafe {
3226 ::std::mem::transmute(
3227 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(
3228 ::std::ptr::addr_of!((*this)._bitfield_1),
3229 ) as u32,
3230 )
3231 }
3232 }
3233 #[inline]
3234 #[allow(unnecessary_transmutes)]
3235 pub unsafe fn set_pending_interrupt_queue_checked_raw(
3236 this: *mut Self,
3237 val: ::std::os::raw::c_uint,
3238 ) {
3239 unsafe {
3240 let val: u32 = ::std::mem::transmute(val);
3241 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(
3242 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3243 val as u64,
3244 )
3245 }
3246 }
3247 #[inline]
3248 #[allow(unnecessary_transmutes)]
3249 pub fn new_bitfield_1(
3250 status: rb_thread_status,
3251 has_dedicated_nt: ::std::os::raw::c_uint,
3252 to_kill: ::std::os::raw::c_uint,
3253 abort_on_exception: ::std::os::raw::c_uint,
3254 report_on_exception: ::std::os::raw::c_uint,
3255 pending_interrupt_queue_checked: ::std::os::raw::c_uint,
3256 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
3257 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
3258 __bindgen_bitfield_unit.set_const::<0usize, 2u8>({
3259 let status: u32 = unsafe { ::std::mem::transmute(status) };
3260 status as u64
3261 });
3262 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
3263 let has_dedicated_nt: u32 = unsafe { ::std::mem::transmute(has_dedicated_nt) };
3264 has_dedicated_nt as u64
3265 });
3266 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
3267 let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
3268 to_kill as u64
3269 });
3270 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
3271 let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
3272 abort_on_exception as u64
3273 });
3274 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
3275 let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
3276 report_on_exception as u64
3277 });
3278 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
3279 let pending_interrupt_queue_checked: u32 =
3280 unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
3281 pending_interrupt_queue_checked as u64
3282 });
3283 __bindgen_bitfield_unit
3284 }
3285}
3286pub type rb_thread_t = rb_thread_struct;
3287#[repr(C)]
3288#[derive(Debug, Copy, Clone)]
3289pub struct rb_trace_arg_struct {
3290 pub event: rb_event_flag_t,
3291 pub ec: *mut rb_execution_context_t,
3292 pub cfp: *const rb_control_frame_t,
3293 pub self_: VALUE,
3294 pub id: ID,
3295 pub called_id: ID,
3296 pub klass: VALUE,
3297 pub data: VALUE,
3298 pub klass_solved: ::std::os::raw::c_int,
3299 pub lineno: ::std::os::raw::c_int,
3300 pub path: VALUE,
3301}
3302#[repr(C)]
3303#[derive(Debug, Copy, Clone)]
3304pub struct rb_ractor_pub {
3305 pub self_: VALUE,
3306 pub id: u32,
3307 pub hooks: rb_hook_list_t,
3308 pub targeted_hooks: *mut st_table,
3309 pub targeted_hooks_cnt: ::std::os::raw::c_uint,
3310}
3311#[repr(C)]
3312#[derive(Debug)]
3313pub struct rb_objspace {
3314 _unused: [u8; 0],
3315}
3316#[repr(C)]
3317#[derive(Copy, Clone)]
3318pub struct rb_ractor_sync {
3319 pub lock: rb_nativethread_lock_t,
3320 pub recv_queue: *mut ractor_queue,
3321 pub waiters: ccan_list_head,
3322 pub default_port_value: VALUE,
3323 pub ports: *mut st_table,
3324 pub next_port_id: usize,
3325 pub monitors: ccan_list_head,
3326 pub successor: *mut rb_ractor_t,
3327 pub legacy: VALUE,
3328 pub legacy_exc: u8,
3329}
3330impl ::std::fmt::Debug for rb_ractor_sync {
3331 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3332 write ! (f , "rb_ractor_sync {{ lock: {:?}, recv_queue: {:?}, waiters: {:?}, default_port_value: {:?}, ports: {:?}, monitors: {:?}, successor: {:?}, legacy: {:?}, legacy_exc: {:?} }}" , self . lock , self . recv_queue , self . waiters , self . default_port_value , self . ports , self . monitors , self . successor , self . legacy , self . legacy_exc)
3333 }
3334}
3335pub const ractor_status_ractor_created: ractor_status = 0;
3336pub const ractor_status_ractor_running: ractor_status = 1;
3337pub const ractor_status_ractor_blocking: ractor_status = 2;
3338pub const ractor_status_ractor_terminated: ractor_status = 3;
3339pub type ractor_status = ::std::os::raw::c_uint;
3340#[repr(C)]
3341#[derive(Copy, Clone)]
3342pub struct rb_ractor_struct {
3343 pub pub_: rb_ractor_pub,
3344 pub sync: rb_ractor_sync,
3345 pub threads: rb_ractor_struct__bindgen_ty_1,
3346 pub thgroup_default: VALUE,
3347 pub name: VALUE,
3348 pub loc: VALUE,
3349 pub status_: ractor_status,
3350 pub vmlr_node: ccan_list_node,
3351 pub next_ec_serial: rb_serial_t,
3352 pub local_storage: *mut st_table,
3353 pub idkey_local_storage: *mut rb_id_table,
3354 pub local_storage_store_lock: VALUE,
3355 pub r_stdin: VALUE,
3356 pub r_stdout: VALUE,
3357 pub r_stderr: VALUE,
3358 pub verbose: VALUE,
3359 pub debug: VALUE,
3360 pub malloc_gc_disabled: u8,
3361 pub newobj_cache: *mut ::std::os::raw::c_void,
3362}
3363#[repr(C)]
3364#[derive(Copy, Clone)]
3365pub struct rb_ractor_struct__bindgen_ty_1 {
3366 pub set: ccan_list_head,
3367 pub cnt: ::std::os::raw::c_uint,
3368 pub blocking_cnt: ::std::os::raw::c_uint,
3369 pub sleeper: ::std::os::raw::c_uint,
3370 pub sched: rb_thread_sched,
3371 pub running_ec: *mut rb_execution_context_t,
3372 pub main: *mut rb_thread_t,
3373}
3374impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
3375 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3376 write ! (f , "rb_ractor_struct__bindgen_ty_1 {{ set: {:?}, cnt: {:?}, blocking_cnt: {:?}, sleeper: {:?}, sched: {:?}, running_ec: {:?}, main: {:?} }}" , self . set , self . cnt , self . blocking_cnt , self . sleeper , self . sched , self . running_ec , self . main)
3377 }
3378}
3379impl ::std::fmt::Debug for rb_ractor_struct {
3380 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3381 write ! (f , "rb_ractor_struct {{ pub: {:?}, sync: {:?}, threads: {:?}, thgroup_default: {:?}, name: {:?}, loc: {:?}, status_: {:?}, vmlr_node: {:?}, next_ec_serial: {:?}, local_storage: {:?}, idkey_local_storage: {:?}, local_storage_store_lock: {:?}, r_stdin: {:?}, r_stdout: {:?}, r_stderr: {:?}, verbose: {:?}, debug: {:?}, malloc_gc_disabled: {:?}, newobj_cache: {:?} }}" , self . pub_ , self . sync , self . threads , self . thgroup_default , self . name , self . loc , self . status_ , self . vmlr_node , self . next_ec_serial , self . local_storage , self . idkey_local_storage , self . local_storage_store_lock , self . r_stdin , self . r_stdout , self . r_stderr , self . verbose , self . debug , self . malloc_gc_disabled , self . newobj_cache)
3382 }
3383}
3384pub type attr_index_t = u16;
3385#[repr(C)]
3386#[derive(Debug, Copy, Clone)]
3387pub struct rb_subclass_entry {
3388 pub klass: VALUE,
3389 pub next: *mut rb_subclass_entry,
3390 pub prev: *mut rb_subclass_entry,
3391}
3392#[repr(C)]
3393#[derive(Copy, Clone)]
3394pub struct rb_classext_struct {
3395 pub box_: *const rb_box_t,
3396 pub super_: VALUE,
3397 pub fields_obj: VALUE,
3398 pub m_tbl: *mut rb_id_table,
3399 pub const_tbl: *mut rb_id_table,
3400 pub callable_m_tbl: *mut rb_id_table,
3401 pub cc_tbl: VALUE,
3402 pub cvc_tbl: VALUE,
3403 pub superclasses: *mut VALUE,
3404 pub subclasses: *mut rb_subclass_entry,
3405 pub subclass_entry: *mut rb_subclass_entry,
3406 pub module_subclass_entry: *mut rb_subclass_entry,
3407 pub origin_: VALUE,
3408 pub refined_class: VALUE,
3409 pub as_: rb_classext_struct__bindgen_ty_1,
3410 pub max_iv_count: attr_index_t,
3411 pub superclass_depth: u16,
3412 pub variation_count: ::std::os::raw::c_uchar,
3413 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
3414 pub classpath: VALUE,
3415}
3416#[repr(C)]
3417#[derive(Copy, Clone)]
3418pub union rb_classext_struct__bindgen_ty_1 {
3419 pub class: rb_classext_struct__bindgen_ty_1__bindgen_ty_1,
3420 pub singleton_class: rb_classext_struct__bindgen_ty_1__bindgen_ty_2,
3421 pub iclass: rb_classext_struct__bindgen_ty_1__bindgen_ty_3,
3422}
3423#[repr(C)]
3424#[derive(Debug, Copy, Clone)]
3425pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_1 {
3426 pub allocator: rb_alloc_func_t,
3427}
3428#[repr(C)]
3429#[derive(Debug, Copy, Clone)]
3430pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_2 {
3431 pub attached_object: VALUE,
3432}
3433#[repr(C)]
3434#[derive(Debug, Copy, Clone)]
3435pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_3 {
3436 pub includer: VALUE,
3437}
3438impl ::std::fmt::Debug for rb_classext_struct__bindgen_ty_1 {
3439 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3440 write!(f, "rb_classext_struct__bindgen_ty_1 {{ union }}")
3441 }
3442}
3443impl ::std::fmt::Debug for rb_classext_struct {
3444 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3445 write ! (f , "rb_classext_struct {{ box: {:?}, super: {:?}, fields_obj: {:?}, m_tbl: {:?}, const_tbl: {:?}, callable_m_tbl: {:?}, cc_tbl: {:?}, cvc_tbl: {:?}, superclasses: {:?}, subclasses: {:?}, subclass_entry: {:?}, module_subclass_entry: {:?}, origin_: {:?}, refined_class: {:?}, as: {:?}, variation_count: {:?}, permanent_classpath : {:?}, cloned : {:?}, shared_const_tbl : {:?}, iclass_is_origin : {:?}, iclass_origin_shared_mtbl : {:?}, superclasses_with_self : {:?}, classpath: {:?} }}" , self . box_ , self . super_ , self . fields_obj , self . m_tbl , self . const_tbl , self . callable_m_tbl , self . cc_tbl , self . cvc_tbl , self . superclasses , self . subclasses , self . subclass_entry , self . module_subclass_entry , self . origin_ , self . refined_class , self . as_ , self . variation_count , self . permanent_classpath () , self . cloned () , self . shared_const_tbl () , self . iclass_is_origin () , self . iclass_origin_shared_mtbl () , self . superclasses_with_self () , self . classpath)
3446 }
3447}
3448impl rb_classext_struct {
3449 #[inline]
3450 #[allow(unnecessary_transmutes)]
3451 pub fn permanent_classpath(&self) -> bool {
3452 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u8) }
3453 }
3454 #[inline]
3455 #[allow(unnecessary_transmutes)]
3456 pub fn set_permanent_classpath(&mut self, val: bool) {
3457 unsafe {
3458 let val: u8 = ::std::mem::transmute(val);
3459 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
3460 }
3461 }
3462 #[inline]
3463 #[allow(unnecessary_transmutes)]
3464 pub unsafe fn permanent_classpath_raw(this: *const Self) -> bool {
3465 unsafe {
3466 ::std::mem::transmute(
3467 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
3468 ::std::ptr::addr_of!((*this)._bitfield_1),
3469 ) as u8,
3470 )
3471 }
3472 }
3473 #[inline]
3474 #[allow(unnecessary_transmutes)]
3475 pub unsafe fn set_permanent_classpath_raw(this: *mut Self, val: bool) {
3476 unsafe {
3477 let val: u8 = ::std::mem::transmute(val);
3478 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
3479 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3480 val as u64,
3481 )
3482 }
3483 }
3484 #[inline]
3485 #[allow(unnecessary_transmutes)]
3486 pub fn cloned(&self) -> bool {
3487 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u8) }
3488 }
3489 #[inline]
3490 #[allow(unnecessary_transmutes)]
3491 pub fn set_cloned(&mut self, val: bool) {
3492 unsafe {
3493 let val: u8 = ::std::mem::transmute(val);
3494 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
3495 }
3496 }
3497 #[inline]
3498 #[allow(unnecessary_transmutes)]
3499 pub unsafe fn cloned_raw(this: *const Self) -> bool {
3500 unsafe {
3501 ::std::mem::transmute(
3502 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
3503 ::std::ptr::addr_of!((*this)._bitfield_1),
3504 ) as u8,
3505 )
3506 }
3507 }
3508 #[inline]
3509 #[allow(unnecessary_transmutes)]
3510 pub unsafe fn set_cloned_raw(this: *mut Self, val: bool) {
3511 unsafe {
3512 let val: u8 = ::std::mem::transmute(val);
3513 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
3514 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3515 val as u64,
3516 )
3517 }
3518 }
3519 #[inline]
3520 #[allow(unnecessary_transmutes)]
3521 pub fn shared_const_tbl(&self) -> bool {
3522 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u8) }
3523 }
3524 #[inline]
3525 #[allow(unnecessary_transmutes)]
3526 pub fn set_shared_const_tbl(&mut self, val: bool) {
3527 unsafe {
3528 let val: u8 = ::std::mem::transmute(val);
3529 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
3530 }
3531 }
3532 #[inline]
3533 #[allow(unnecessary_transmutes)]
3534 pub unsafe fn shared_const_tbl_raw(this: *const Self) -> bool {
3535 unsafe {
3536 ::std::mem::transmute(
3537 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
3538 ::std::ptr::addr_of!((*this)._bitfield_1),
3539 ) as u8,
3540 )
3541 }
3542 }
3543 #[inline]
3544 #[allow(unnecessary_transmutes)]
3545 pub unsafe fn set_shared_const_tbl_raw(this: *mut Self, val: bool) {
3546 unsafe {
3547 let val: u8 = ::std::mem::transmute(val);
3548 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
3549 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3550 val as u64,
3551 )
3552 }
3553 }
3554 #[inline]
3555 #[allow(unnecessary_transmutes)]
3556 pub fn iclass_is_origin(&self) -> bool {
3557 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u8) }
3558 }
3559 #[inline]
3560 #[allow(unnecessary_transmutes)]
3561 pub fn set_iclass_is_origin(&mut self, val: bool) {
3562 unsafe {
3563 let val: u8 = ::std::mem::transmute(val);
3564 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
3565 }
3566 }
3567 #[inline]
3568 #[allow(unnecessary_transmutes)]
3569 pub unsafe fn iclass_is_origin_raw(this: *const Self) -> bool {
3570 unsafe {
3571 ::std::mem::transmute(
3572 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
3573 ::std::ptr::addr_of!((*this)._bitfield_1),
3574 ) as u8,
3575 )
3576 }
3577 }
3578 #[inline]
3579 #[allow(unnecessary_transmutes)]
3580 pub unsafe fn set_iclass_is_origin_raw(this: *mut Self, val: bool) {
3581 unsafe {
3582 let val: u8 = ::std::mem::transmute(val);
3583 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
3584 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3585 val as u64,
3586 )
3587 }
3588 }
3589 #[inline]
3590 #[allow(unnecessary_transmutes)]
3591 pub fn iclass_origin_shared_mtbl(&self) -> bool {
3592 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u8) }
3593 }
3594 #[inline]
3595 #[allow(unnecessary_transmutes)]
3596 pub fn set_iclass_origin_shared_mtbl(&mut self, val: bool) {
3597 unsafe {
3598 let val: u8 = ::std::mem::transmute(val);
3599 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
3600 }
3601 }
3602 #[inline]
3603 #[allow(unnecessary_transmutes)]
3604 pub unsafe fn iclass_origin_shared_mtbl_raw(this: *const Self) -> bool {
3605 unsafe {
3606 ::std::mem::transmute(
3607 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
3608 ::std::ptr::addr_of!((*this)._bitfield_1),
3609 ) as u8,
3610 )
3611 }
3612 }
3613 #[inline]
3614 #[allow(unnecessary_transmutes)]
3615 pub unsafe fn set_iclass_origin_shared_mtbl_raw(this: *mut Self, val: bool) {
3616 unsafe {
3617 let val: u8 = ::std::mem::transmute(val);
3618 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
3619 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3620 val as u64,
3621 )
3622 }
3623 }
3624 #[inline]
3625 #[allow(unnecessary_transmutes)]
3626 pub fn superclasses_with_self(&self) -> bool {
3627 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u8) }
3628 }
3629 #[inline]
3630 #[allow(unnecessary_transmutes)]
3631 pub fn set_superclasses_with_self(&mut self, val: bool) {
3632 unsafe {
3633 let val: u8 = ::std::mem::transmute(val);
3634 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
3635 }
3636 }
3637 #[inline]
3638 #[allow(unnecessary_transmutes)]
3639 pub unsafe fn superclasses_with_self_raw(this: *const Self) -> bool {
3640 unsafe {
3641 ::std::mem::transmute(
3642 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
3643 ::std::ptr::addr_of!((*this)._bitfield_1),
3644 ) as u8,
3645 )
3646 }
3647 }
3648 #[inline]
3649 #[allow(unnecessary_transmutes)]
3650 pub unsafe fn set_superclasses_with_self_raw(this: *mut Self, val: bool) {
3651 unsafe {
3652 let val: u8 = ::std::mem::transmute(val);
3653 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
3654 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3655 val as u64,
3656 )
3657 }
3658 }
3659 #[inline]
3660 #[allow(unnecessary_transmutes)]
3661 pub fn new_bitfield_1(
3662 permanent_classpath: bool,
3663 cloned: bool,
3664 shared_const_tbl: bool,
3665 iclass_is_origin: bool,
3666 iclass_origin_shared_mtbl: bool,
3667 superclasses_with_self: bool,
3668 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
3669 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
3670 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
3671 let permanent_classpath: u8 = unsafe { ::std::mem::transmute(permanent_classpath) };
3672 permanent_classpath as u64
3673 });
3674 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
3675 let cloned: u8 = unsafe { ::std::mem::transmute(cloned) };
3676 cloned as u64
3677 });
3678 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
3679 let shared_const_tbl: u8 = unsafe { ::std::mem::transmute(shared_const_tbl) };
3680 shared_const_tbl as u64
3681 });
3682 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
3683 let iclass_is_origin: u8 = unsafe { ::std::mem::transmute(iclass_is_origin) };
3684 iclass_is_origin as u64
3685 });
3686 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
3687 let iclass_origin_shared_mtbl: u8 =
3688 unsafe { ::std::mem::transmute(iclass_origin_shared_mtbl) };
3689 iclass_origin_shared_mtbl as u64
3690 });
3691 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
3692 let superclasses_with_self: u8 =
3693 unsafe { ::std::mem::transmute(superclasses_with_self) };
3694 superclasses_with_self as u64
3695 });
3696 __bindgen_bitfield_unit
3697 }
3698}
3699pub type rb_classext_t = rb_classext_struct;
3700#[repr(C)]
3701#[derive(Debug, Copy, Clone)]
3702pub struct RClass {
3703 pub basic: RBasic,
3704 pub object_id: VALUE,
3705}
3706#[repr(C)]
3707#[derive(Copy, Clone)]
3708pub struct RClass_and_rb_classext_t {
3709 pub rclass: RClass,
3710 pub classext: rb_classext_t,
3711}
3712impl ::std::fmt::Debug for RClass_and_rb_classext_t {
3713 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3714 write!(
3715 f,
3716 "RClass_and_rb_classext_t {{ rclass: {:?}, classext: {:?} }}",
3717 self.rclass, self.classext
3718 )
3719 }
3720}
3721#[repr(C)]
3722#[derive(Copy, Clone)]
3723pub struct iseq_compile_data {
3724 pub err_info: VALUE,
3725 pub catch_table_ary: VALUE,
3726 pub iseq_size: ::std::os::raw::c_uint,
3727 pub iseq_encoded: *mut VALUE,
3728 pub is_single_mark_bit: u8,
3729 pub mark_bits: iseq_compile_data__bindgen_ty_1,
3730 pub start_label: *mut iseq_label_data,
3731 pub end_label: *mut iseq_label_data,
3732 pub redo_label: *mut iseq_label_data,
3733 pub current_block: *const rb_iseq_t,
3734 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
3735 pub node: iseq_compile_data__bindgen_ty_2,
3736 pub insn: iseq_compile_data__bindgen_ty_3,
3737 pub in_rescue: u8,
3738 pub in_masgn: u8,
3739 pub loopval_popped: ::std::os::raw::c_int,
3740 pub last_line: ::std::os::raw::c_int,
3741 pub label_no: ::std::os::raw::c_int,
3742 pub node_level: ::std::os::raw::c_int,
3743 pub isolated_depth: ::std::os::raw::c_int,
3744 pub ci_index: ::std::os::raw::c_uint,
3745 pub ic_index: ::std::os::raw::c_uint,
3746 pub option: *const rb_compile_option_t,
3747 pub ivar_cache_table: *mut rb_id_table,
3748 pub builtin_function_table: *const rb_builtin_function,
3749 pub root_node: *const NODE,
3750 pub catch_except_p: u8,
3751}
3752#[repr(C)]
3753#[derive(Copy, Clone)]
3754pub union iseq_compile_data__bindgen_ty_1 {
3755 pub list: *mut iseq_bits_t,
3756 pub single: iseq_bits_t,
3757}
3758impl ::std::fmt::Debug for iseq_compile_data__bindgen_ty_1 {
3759 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3760 write!(f, "iseq_compile_data__bindgen_ty_1 {{ union }}")
3761 }
3762}
3763#[repr(C)]
3764#[derive(Debug, Copy, Clone)]
3765pub struct iseq_compile_data__bindgen_ty_2 {
3766 pub storage_head: *mut iseq_compile_data_storage,
3767 pub storage_current: *mut iseq_compile_data_storage,
3768}
3769#[repr(C)]
3770#[derive(Debug, Copy, Clone)]
3771pub struct iseq_compile_data__bindgen_ty_3 {
3772 pub storage_head: *mut iseq_compile_data_storage,
3773 pub storage_current: *mut iseq_compile_data_storage,
3774}
3775impl ::std::fmt::Debug for iseq_compile_data {
3776 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3777 write ! (f , "iseq_compile_data {{ err_info: {:?}, catch_table_ary: {:?}, iseq_size: {:?}, iseq_encoded: {:?}, is_single_mark_bit: {:?}, mark_bits: {:?}, start_label: {:?}, end_label: {:?}, redo_label: {:?}, current_block: {:?}, ensure_node_stack: {:?}, node: {:?}, insn: {:?}, in_rescue: {:?}, in_masgn: {:?}, loopval_popped: {:?}, last_line: {:?}, label_no: {:?}, node_level: {:?}, isolated_depth: {:?}, ci_index: {:?}, ic_index: {:?}, option: {:?}, ivar_cache_table: {:?}, builtin_function_table: {:?}, root_node: {:?}, catch_except_p: {:?} }}" , self . err_info , self . catch_table_ary , self . iseq_size , self . iseq_encoded , self . is_single_mark_bit , self . mark_bits , self . start_label , self . end_label , self . redo_label , self . current_block , self . ensure_node_stack , self . node , self . insn , self . in_rescue , self . in_masgn , self . loopval_popped , self . last_line , self . label_no , self . node_level , self . isolated_depth , self . ci_index , self . ic_index , self . option , self . ivar_cache_table , self . builtin_function_table , self . root_node , self . catch_except_p)
3778 }
3779}
3780#[repr(C)]
3781#[derive(Debug, Copy, Clone)]
3782pub struct rb_compile_option_struct {
3783 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
3784 pub debug_level: ::std::os::raw::c_int,
3785}
3786impl rb_compile_option_struct {
3787 #[inline]
3788 #[allow(unnecessary_transmutes)]
3789 pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
3790 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
3791 }
3792 #[inline]
3793 #[allow(unnecessary_transmutes)]
3794 pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
3795 unsafe {
3796 let val: u32 = ::std::mem::transmute(val);
3797 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
3798 }
3799 }
3800 #[inline]
3801 #[allow(unnecessary_transmutes)]
3802 pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
3803 unsafe {
3804 ::std::mem::transmute(
3805 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(
3806 ::std::ptr::addr_of!((*this)._bitfield_1),
3807 ) as u32,
3808 )
3809 }
3810 }
3811 #[inline]
3812 #[allow(unnecessary_transmutes)]
3813 pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3814 unsafe {
3815 let val: u32 = ::std::mem::transmute(val);
3816 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(
3817 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3818 val as u64,
3819 )
3820 }
3821 }
3822 #[inline]
3823 #[allow(unnecessary_transmutes)]
3824 pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
3825 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
3826 }
3827 #[inline]
3828 #[allow(unnecessary_transmutes)]
3829 pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
3830 unsafe {
3831 let val: u32 = ::std::mem::transmute(val);
3832 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
3833 }
3834 }
3835 #[inline]
3836 #[allow(unnecessary_transmutes)]
3837 pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3838 unsafe {
3839 ::std::mem::transmute(
3840 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(
3841 ::std::ptr::addr_of!((*this)._bitfield_1),
3842 ) as u32,
3843 )
3844 }
3845 }
3846 #[inline]
3847 #[allow(unnecessary_transmutes)]
3848 pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3849 unsafe {
3850 let val: u32 = ::std::mem::transmute(val);
3851 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(
3852 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3853 val as u64,
3854 )
3855 }
3856 }
3857 #[inline]
3858 #[allow(unnecessary_transmutes)]
3859 pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3860 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
3861 }
3862 #[inline]
3863 #[allow(unnecessary_transmutes)]
3864 pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3865 unsafe {
3866 let val: u32 = ::std::mem::transmute(val);
3867 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
3868 }
3869 }
3870 #[inline]
3871 #[allow(unnecessary_transmutes)]
3872 pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3873 unsafe {
3874 ::std::mem::transmute(
3875 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(
3876 ::std::ptr::addr_of!((*this)._bitfield_1),
3877 ) as u32,
3878 )
3879 }
3880 }
3881 #[inline]
3882 #[allow(unnecessary_transmutes)]
3883 pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3884 unsafe {
3885 let val: u32 = ::std::mem::transmute(val);
3886 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(
3887 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3888 val as u64,
3889 )
3890 }
3891 }
3892 #[inline]
3893 #[allow(unnecessary_transmutes)]
3894 pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3895 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
3896 }
3897 #[inline]
3898 #[allow(unnecessary_transmutes)]
3899 pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3900 unsafe {
3901 let val: u32 = ::std::mem::transmute(val);
3902 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
3903 }
3904 }
3905 #[inline]
3906 #[allow(unnecessary_transmutes)]
3907 pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3908 unsafe {
3909 ::std::mem::transmute(
3910 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(
3911 ::std::ptr::addr_of!((*this)._bitfield_1),
3912 ) as u32,
3913 )
3914 }
3915 }
3916 #[inline]
3917 #[allow(unnecessary_transmutes)]
3918 pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3919 unsafe {
3920 let val: u32 = ::std::mem::transmute(val);
3921 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(
3922 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3923 val as u64,
3924 )
3925 }
3926 }
3927 #[inline]
3928 #[allow(unnecessary_transmutes)]
3929 pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3930 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
3931 }
3932 #[inline]
3933 #[allow(unnecessary_transmutes)]
3934 pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3935 unsafe {
3936 let val: u32 = ::std::mem::transmute(val);
3937 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
3938 }
3939 }
3940 #[inline]
3941 #[allow(unnecessary_transmutes)]
3942 pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3943 unsafe {
3944 ::std::mem::transmute(
3945 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(
3946 ::std::ptr::addr_of!((*this)._bitfield_1),
3947 ) as u32,
3948 )
3949 }
3950 }
3951 #[inline]
3952 #[allow(unnecessary_transmutes)]
3953 pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3954 unsafe {
3955 let val: u32 = ::std::mem::transmute(val);
3956 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(
3957 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3958 val as u64,
3959 )
3960 }
3961 }
3962 #[inline]
3963 #[allow(unnecessary_transmutes)]
3964 pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3965 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
3966 }
3967 #[inline]
3968 #[allow(unnecessary_transmutes)]
3969 pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3970 unsafe {
3971 let val: u32 = ::std::mem::transmute(val);
3972 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
3973 }
3974 }
3975 #[inline]
3976 #[allow(unnecessary_transmutes)]
3977 pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3978 unsafe {
3979 ::std::mem::transmute(
3980 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<5usize, 1u8>(
3981 ::std::ptr::addr_of!((*this)._bitfield_1),
3982 ) as u32,
3983 )
3984 }
3985 }
3986 #[inline]
3987 #[allow(unnecessary_transmutes)]
3988 pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3989 unsafe {
3990 let val: u32 = ::std::mem::transmute(val);
3991 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<5usize, 1u8>(
3992 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3993 val as u64,
3994 )
3995 }
3996 }
3997 #[inline]
3998 #[allow(unnecessary_transmutes)]
3999 pub fn frozen_string_literal(&self) -> ::std::os::raw::c_int {
4000 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 2u8>() as u32) }
4001 }
4002 #[inline]
4003 #[allow(unnecessary_transmutes)]
4004 pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_int) {
4005 unsafe {
4006 let val: u32 = ::std::mem::transmute(val);
4007 self._bitfield_1.set_const::<6usize, 2u8>(val as u64)
4008 }
4009 }
4010 #[inline]
4011 #[allow(unnecessary_transmutes)]
4012 pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_int {
4013 unsafe {
4014 ::std::mem::transmute(
4015 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<6usize, 2u8>(
4016 ::std::ptr::addr_of!((*this)._bitfield_1),
4017 ) as u32,
4018 )
4019 }
4020 }
4021 #[inline]
4022 #[allow(unnecessary_transmutes)]
4023 pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_int) {
4024 unsafe {
4025 let val: u32 = ::std::mem::transmute(val);
4026 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<6usize, 2u8>(
4027 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4028 val as u64,
4029 )
4030 }
4031 }
4032 #[inline]
4033 #[allow(unnecessary_transmutes)]
4034 pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
4035 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) }
4036 }
4037 #[inline]
4038 #[allow(unnecessary_transmutes)]
4039 pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
4040 unsafe {
4041 let val: u32 = ::std::mem::transmute(val);
4042 self._bitfield_1.set_const::<8usize, 1u8>(val as u64)
4043 }
4044 }
4045 #[inline]
4046 #[allow(unnecessary_transmutes)]
4047 pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
4048 unsafe {
4049 ::std::mem::transmute(
4050 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(
4051 ::std::ptr::addr_of!((*this)._bitfield_1),
4052 ) as u32,
4053 )
4054 }
4055 }
4056 #[inline]
4057 #[allow(unnecessary_transmutes)]
4058 pub unsafe fn set_debug_frozen_string_literal_raw(
4059 this: *mut Self,
4060 val: ::std::os::raw::c_uint,
4061 ) {
4062 unsafe {
4063 let val: u32 = ::std::mem::transmute(val);
4064 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(
4065 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4066 val as u64,
4067 )
4068 }
4069 }
4070 #[inline]
4071 #[allow(unnecessary_transmutes)]
4072 pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
4073 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u32) }
4074 }
4075 #[inline]
4076 #[allow(unnecessary_transmutes)]
4077 pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
4078 unsafe {
4079 let val: u32 = ::std::mem::transmute(val);
4080 self._bitfield_1.set_const::<9usize, 1u8>(val as u64)
4081 }
4082 }
4083 #[inline]
4084 #[allow(unnecessary_transmutes)]
4085 pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
4086 unsafe {
4087 ::std::mem::transmute(
4088 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(
4089 ::std::ptr::addr_of!((*this)._bitfield_1),
4090 ) as u32,
4091 )
4092 }
4093 }
4094 #[inline]
4095 #[allow(unnecessary_transmutes)]
4096 pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
4097 unsafe {
4098 let val: u32 = ::std::mem::transmute(val);
4099 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(
4100 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4101 val as u64,
4102 )
4103 }
4104 }
4105 #[inline]
4106 #[allow(unnecessary_transmutes)]
4107 pub fn new_bitfield_1(
4108 inline_const_cache: ::std::os::raw::c_uint,
4109 peephole_optimization: ::std::os::raw::c_uint,
4110 tailcall_optimization: ::std::os::raw::c_uint,
4111 specialized_instruction: ::std::os::raw::c_uint,
4112 operands_unification: ::std::os::raw::c_uint,
4113 instructions_unification: ::std::os::raw::c_uint,
4114 frozen_string_literal: ::std::os::raw::c_int,
4115 debug_frozen_string_literal: ::std::os::raw::c_uint,
4116 coverage_enabled: ::std::os::raw::c_uint,
4117 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
4118 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
4119 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
4120 let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
4121 inline_const_cache as u64
4122 });
4123 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
4124 let peephole_optimization: u32 =
4125 unsafe { ::std::mem::transmute(peephole_optimization) };
4126 peephole_optimization as u64
4127 });
4128 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
4129 let tailcall_optimization: u32 =
4130 unsafe { ::std::mem::transmute(tailcall_optimization) };
4131 tailcall_optimization as u64
4132 });
4133 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
4134 let specialized_instruction: u32 =
4135 unsafe { ::std::mem::transmute(specialized_instruction) };
4136 specialized_instruction as u64
4137 });
4138 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
4139 let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
4140 operands_unification as u64
4141 });
4142 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
4143 let instructions_unification: u32 =
4144 unsafe { ::std::mem::transmute(instructions_unification) };
4145 instructions_unification as u64
4146 });
4147 __bindgen_bitfield_unit.set_const::<6usize, 2u8>({
4148 let frozen_string_literal: u32 =
4149 unsafe { ::std::mem::transmute(frozen_string_literal) };
4150 frozen_string_literal as u64
4151 });
4152 __bindgen_bitfield_unit.set_const::<8usize, 1u8>({
4153 let debug_frozen_string_literal: u32 =
4154 unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
4155 debug_frozen_string_literal as u64
4156 });
4157 __bindgen_bitfield_unit.set_const::<9usize, 1u8>({
4158 let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
4159 coverage_enabled as u64
4160 });
4161 __bindgen_bitfield_unit
4162 }
4163}
4164#[repr(C)]
4165#[derive(Debug, Copy, Clone)]
4166pub struct iseq_insn_info_entry {
4167 pub line_no: ::std::os::raw::c_int,
4168 pub node_id: ::std::os::raw::c_int,
4169 pub events: rb_event_flag_t,
4170}
4171pub const rb_catch_type_CATCH_TYPE_RESCUE: rb_catch_type = 3;
4172pub const rb_catch_type_CATCH_TYPE_ENSURE: rb_catch_type = 5;
4173pub const rb_catch_type_CATCH_TYPE_RETRY: rb_catch_type = 7;
4174pub const rb_catch_type_CATCH_TYPE_BREAK: rb_catch_type = 9;
4175pub const rb_catch_type_CATCH_TYPE_REDO: rb_catch_type = 11;
4176pub const rb_catch_type_CATCH_TYPE_NEXT: rb_catch_type = 13;
4177pub type rb_catch_type = ::std::os::raw::c_uint;
4178#[repr(C)]
4179#[derive(Debug, Copy, Clone)]
4180pub struct iseq_catch_table_entry {
4181 pub type_: rb_catch_type,
4182 pub iseq: *mut rb_iseq_t,
4183 pub start: ::std::os::raw::c_uint,
4184 pub end: ::std::os::raw::c_uint,
4185 pub cont: ::std::os::raw::c_uint,
4186 pub sp: ::std::os::raw::c_uint,
4187}
4188#[repr(C, packed)]
4189pub struct iseq_catch_table {
4190 pub size: ::std::os::raw::c_uint,
4191 pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
4192}
4193#[repr(C)]
4194#[derive(Debug)]
4195pub struct iseq_compile_data_storage {
4196 pub next: *mut iseq_compile_data_storage,
4197 pub pos: ::std::os::raw::c_uint,
4198 pub size: ::std::os::raw::c_uint,
4199 pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
4200}
4201#[repr(C)]
4202#[derive(Debug, Copy, Clone)]
4203pub struct coroutine_context {
4204 pub _address: u8,
4205}
4206#[repr(C)]
4207#[derive(Debug, Copy, Clone)]
4208pub struct rb_call_data {
4209 pub _address: u8,
4210}
4211#[repr(C)]
4212#[derive(Debug, Copy, Clone)]
4213pub struct succ_index_table {
4214 pub _address: u8,
4215}
4216#[repr(C)]
4217#[derive(Debug, Copy, Clone)]
4218pub struct rb_event_hook_struct {
4219 pub _address: u8,
4220}
4221#[repr(C)]
4222#[derive(Debug, Copy, Clone)]
4223pub struct rb_postponed_job_queue {
4224 pub _address: u8,
4225}
4226#[repr(C)]
4227#[derive(Debug, Copy, Clone)]
4228pub struct ractor_queue {
4229 pub _address: u8,
4230}
4231#[repr(C)]
4232#[derive(Debug, Copy, Clone)]
4233pub struct iseq_label_data {
4234 pub _address: u8,
4235}
4236#[repr(C)]
4237#[derive(Debug, Copy, Clone)]
4238pub struct iseq_compile_data_ensure_node_stack {
4239 pub _address: u8,
4240}