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