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_item {
1571 pub node: rb_thread_sched_item__bindgen_ty_1,
1572 pub waiting_reason: rb_thread_sched_item__bindgen_ty_2,
1573 pub finished: bool,
1574 pub malloc_stack: bool,
1575 pub context_stack: *mut ::std::os::raw::c_void,
1576 pub context: *mut coroutine_context,
1577}
1578#[repr(C)]
1579#[derive(Debug, Copy, Clone)]
1580pub struct rb_thread_sched_item__bindgen_ty_1 {
1581 pub ubf: ccan_list_node,
1582 pub readyq: ccan_list_node,
1583 pub timeslice_threads: ccan_list_node,
1584 pub running_threads: ccan_list_node,
1585 pub zombie_threads: ccan_list_node,
1586}
1587#[repr(C)]
1588#[derive(Debug, Copy, Clone)]
1589pub struct rb_thread_sched_item__bindgen_ty_2 {
1590 pub flags: rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag,
1591 pub data: rb_thread_sched_item__bindgen_ty_2__bindgen_ty_1,
1592 pub node: ccan_list_node,
1593}
1594pub const rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag_thread_sched_waiting_none:
1595 rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = 0;
1596pub const rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag_thread_sched_waiting_timeout : rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = 1 ;
1597pub const rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag_thread_sched_waiting_io_read : rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = 2 ;
1598pub const rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag_thread_sched_waiting_io_write : rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = 8 ;
1599pub const rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag_thread_sched_waiting_io_force : rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = 64 ;
1600pub type rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = ::std::os::raw::c_uint;
1601#[repr(C)]
1602#[derive(Debug, Copy, Clone)]
1603pub struct rb_thread_sched_item__bindgen_ty_2__bindgen_ty_1 {
1604 pub timeout: u64,
1605 pub fd: ::std::os::raw::c_int,
1606 pub result: ::std::os::raw::c_int,
1607}
1608#[repr(C)]
1609#[derive(Copy, Clone)]
1610pub struct rb_native_thread {
1611 pub serial: rb_atomic_t,
1612 pub vm: *mut rb_vm_struct,
1613 pub thread_id: rb_nativethread_id_t,
1614 pub tid: ::std::os::raw::c_int,
1615 pub running_thread: *mut rb_thread_struct,
1616 pub cond: rb_native_thread__bindgen_ty_1,
1617 pub altstack: *mut ::std::os::raw::c_void,
1618 pub nt_context: *mut coroutine_context,
1619 pub dedicated: ::std::os::raw::c_int,
1620 pub machine_stack_maxsize: usize,
1621}
1622#[repr(C)]
1623#[derive(Copy, Clone)]
1624pub union rb_native_thread__bindgen_ty_1 {
1625 pub intr: rb_nativethread_cond_t,
1626 pub readyq: rb_nativethread_cond_t,
1627}
1628impl ::std::fmt::Debug for rb_native_thread__bindgen_ty_1 {
1629 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1630 write!(f, "rb_native_thread__bindgen_ty_1 {{ union }}")
1631 }
1632}
1633impl ::std::fmt::Debug for rb_native_thread {
1634 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1635 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)
1636 }
1637}
1638#[repr(C)]
1639#[derive(Copy, Clone)]
1640pub struct rb_thread_sched {
1641 pub lock_: rb_nativethread_lock_t,
1642 pub running: *mut rb_thread_struct,
1643 pub is_running: bool,
1644 pub is_running_timeslice: bool,
1645 pub enable_mn_threads: bool,
1646 pub readyq: ccan_list_head,
1647 pub readyq_cnt: ::std::os::raw::c_int,
1648 pub grq_node: ccan_list_node,
1649}
1650impl ::std::fmt::Debug for rb_thread_sched {
1651 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1652 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)
1653 }
1654}
1655pub type rb_snum_t = ::std::os::raw::c_long;
1656pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1657pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1658pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1659pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1660pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1661pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1662pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1663pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1664pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1665pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1666pub type ruby_tag_type = ::std::os::raw::c_uint;
1667pub type rb_compile_option_t = rb_compile_option_struct;
1668#[repr(C)]
1669#[derive(Debug, Copy, Clone)]
1670pub struct iseq_inline_constant_cache_entry {
1671 pub flags: VALUE,
1672 pub value: VALUE,
1673 pub _unused1: VALUE,
1674 pub _unused2: VALUE,
1675 pub ic_cref: *const rb_cref_t,
1676}
1677#[repr(C)]
1678#[derive(Debug, Copy, Clone)]
1679pub struct iseq_inline_constant_cache {
1680 pub entry: *mut iseq_inline_constant_cache_entry,
1681 pub segments: *const ID,
1682}
1683#[repr(C)]
1684#[derive(Debug, Copy, Clone)]
1685pub struct iseq_inline_iv_cache_entry {
1686 pub value: usize,
1687 pub iv_set_name: ID,
1688}
1689#[repr(C)]
1690#[derive(Copy, Clone)]
1691pub union iseq_inline_storage_entry {
1692 pub once: iseq_inline_storage_entry__bindgen_ty_1,
1693 pub ic_cache: iseq_inline_constant_cache,
1694 pub iv_cache: iseq_inline_iv_cache_entry,
1695}
1696#[repr(C)]
1697#[derive(Debug, Copy, Clone)]
1698pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1699 pub running_thread: *mut rb_thread_struct,
1700 pub value: VALUE,
1701}
1702impl ::std::fmt::Debug for iseq_inline_storage_entry {
1703 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1704 write!(f, "iseq_inline_storage_entry {{ union }}")
1705 }
1706}
1707#[repr(C)]
1708#[derive(Debug, Copy, Clone)]
1709pub struct rb_calling_info {
1710 pub cd: *mut rb_call_data,
1711 pub cc: *const rb_callcache,
1712 pub block_handler: VALUE,
1713 pub recv: VALUE,
1714 pub argc: ::std::os::raw::c_int,
1715 pub kw_splat: bool,
1716 pub heap_argv: VALUE,
1717}
1718#[repr(C)]
1719#[derive(Debug, Copy, Clone)]
1720pub struct rb_iseq_location_struct {
1721 pub pathobj: VALUE,
1722 pub base_label: VALUE,
1723 pub label: VALUE,
1724 pub first_lineno: ::std::os::raw::c_int,
1725 pub node_id: ::std::os::raw::c_int,
1726 pub code_location: rb_code_location_t,
1727}
1728pub type rb_iseq_location_t = rb_iseq_location_struct;
1729pub type iseq_bits_t = usize;
1730pub const rb_iseq_type_ISEQ_TYPE_TOP: rb_iseq_type = 0;
1731pub const rb_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_type = 1;
1732pub const rb_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_type = 2;
1733pub const rb_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_type = 3;
1734pub const rb_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_type = 4;
1735pub const rb_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_type = 5;
1736pub const rb_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_type = 6;
1737pub const rb_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_type = 7;
1738pub const rb_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_type = 8;
1739pub type rb_iseq_type = ::std::os::raw::c_uint;
1740pub type rb_jit_func_t = ::std::option::Option<
1741 unsafe extern "C" fn(
1742 arg1: *mut rb_execution_context_struct,
1743 arg2: *mut rb_control_frame_struct,
1744 ) -> VALUE,
1745>;
1746#[repr(C)]
1747#[derive(Copy, Clone)]
1748pub struct rb_iseq_constant_body {
1749 pub type_: rb_iseq_type,
1750 pub iseq_size: ::std::os::raw::c_uint,
1751 pub iseq_encoded: *mut VALUE,
1752 pub param: rb_iseq_constant_body__bindgen_ty_1,
1753 pub location: rb_iseq_location_t,
1754 pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1755 pub local_table: *const ID,
1756 pub catch_table: *mut iseq_catch_table,
1757 pub parent_iseq: *const rb_iseq_struct,
1758 pub local_iseq: *mut rb_iseq_struct,
1759 pub is_entries: *mut iseq_inline_storage_entry,
1760 pub call_data: *mut rb_call_data,
1761 pub variable: rb_iseq_constant_body__bindgen_ty_2,
1762 pub local_table_size: ::std::os::raw::c_uint,
1763 pub ic_size: ::std::os::raw::c_uint,
1764 pub ise_size: ::std::os::raw::c_uint,
1765 pub ivc_size: ::std::os::raw::c_uint,
1766 pub icvarc_size: ::std::os::raw::c_uint,
1767 pub ci_size: ::std::os::raw::c_uint,
1768 pub stack_max: ::std::os::raw::c_uint,
1769 pub builtin_attrs: ::std::os::raw::c_uint,
1770 pub mark_bits: rb_iseq_constant_body__bindgen_ty_3,
1771 pub outer_variables: *mut rb_id_table,
1772 pub mandatory_only_iseq: *const rb_iseq_t,
1773 pub jit_entry: rb_jit_func_t,
1774 pub jit_entry_calls: ::std::os::raw::c_ulong,
1775 pub jit_exception: rb_jit_func_t,
1776 pub jit_exception_calls: ::std::os::raw::c_ulong,
1777 pub rjit_blocks: VALUE,
1778 pub yjit_payload: *mut ::std::os::raw::c_void,
1779 pub yjit_calls_at_interv: u64,
1780}
1781#[repr(C)]
1782#[derive(Debug, Copy, Clone)]
1783pub struct rb_iseq_constant_body__bindgen_ty_1 {
1784 pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1785 pub size: ::std::os::raw::c_uint,
1786 pub lead_num: ::std::os::raw::c_int,
1787 pub opt_num: ::std::os::raw::c_int,
1788 pub rest_start: ::std::os::raw::c_int,
1789 pub post_start: ::std::os::raw::c_int,
1790 pub post_num: ::std::os::raw::c_int,
1791 pub block_start: ::std::os::raw::c_int,
1792 pub opt_table: *const VALUE,
1793 pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1794}
1795#[repr(C)]
1796#[derive(Debug, Copy, Clone)]
1797pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1798 pub _bindgen_align: [u32; 0],
1799 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
1800 pub __bindgen_padding_0: u16,
1801}
1802impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1803 #[inline]
1804 #[allow(unnecessary_transmutes)]
1805 pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1806 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
1807 }
1808 #[inline]
1809 #[allow(unnecessary_transmutes)]
1810 pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1811 unsafe {
1812 let val: u32 = ::std::mem::transmute(val);
1813 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
1814 }
1815 }
1816 #[inline]
1817 #[allow(unnecessary_transmutes)]
1818 pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1819 unsafe {
1820 ::std::mem::transmute(
1821 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(
1822 ::std::ptr::addr_of!((*this)._bitfield_1),
1823 ) as u32,
1824 )
1825 }
1826 }
1827 #[inline]
1828 #[allow(unnecessary_transmutes)]
1829 pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1830 unsafe {
1831 let val: u32 = ::std::mem::transmute(val);
1832 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(
1833 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1834 val as u64,
1835 )
1836 }
1837 }
1838 #[inline]
1839 #[allow(unnecessary_transmutes)]
1840 pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1841 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
1842 }
1843 #[inline]
1844 #[allow(unnecessary_transmutes)]
1845 pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1846 unsafe {
1847 let val: u32 = ::std::mem::transmute(val);
1848 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
1849 }
1850 }
1851 #[inline]
1852 #[allow(unnecessary_transmutes)]
1853 pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1854 unsafe {
1855 ::std::mem::transmute(
1856 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(
1857 ::std::ptr::addr_of!((*this)._bitfield_1),
1858 ) as u32,
1859 )
1860 }
1861 }
1862 #[inline]
1863 #[allow(unnecessary_transmutes)]
1864 pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1865 unsafe {
1866 let val: u32 = ::std::mem::transmute(val);
1867 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(
1868 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1869 val as u64,
1870 )
1871 }
1872 }
1873 #[inline]
1874 #[allow(unnecessary_transmutes)]
1875 pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1876 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
1877 }
1878 #[inline]
1879 #[allow(unnecessary_transmutes)]
1880 pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1881 unsafe {
1882 let val: u32 = ::std::mem::transmute(val);
1883 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
1884 }
1885 }
1886 #[inline]
1887 #[allow(unnecessary_transmutes)]
1888 pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1889 unsafe {
1890 ::std::mem::transmute(
1891 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(
1892 ::std::ptr::addr_of!((*this)._bitfield_1),
1893 ) as u32,
1894 )
1895 }
1896 }
1897 #[inline]
1898 #[allow(unnecessary_transmutes)]
1899 pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1900 unsafe {
1901 let val: u32 = ::std::mem::transmute(val);
1902 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(
1903 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1904 val as u64,
1905 )
1906 }
1907 }
1908 #[inline]
1909 #[allow(unnecessary_transmutes)]
1910 pub fn has_post(&self) -> ::std::os::raw::c_uint {
1911 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1912 }
1913 #[inline]
1914 #[allow(unnecessary_transmutes)]
1915 pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1916 unsafe {
1917 let val: u32 = ::std::mem::transmute(val);
1918 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1919 }
1920 }
1921 #[inline]
1922 #[allow(unnecessary_transmutes)]
1923 pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1924 unsafe {
1925 ::std::mem::transmute(
1926 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(
1927 ::std::ptr::addr_of!((*this)._bitfield_1),
1928 ) as u32,
1929 )
1930 }
1931 }
1932 #[inline]
1933 #[allow(unnecessary_transmutes)]
1934 pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1935 unsafe {
1936 let val: u32 = ::std::mem::transmute(val);
1937 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(
1938 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1939 val as u64,
1940 )
1941 }
1942 }
1943 #[inline]
1944 #[allow(unnecessary_transmutes)]
1945 pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1946 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
1947 }
1948 #[inline]
1949 #[allow(unnecessary_transmutes)]
1950 pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1951 unsafe {
1952 let val: u32 = ::std::mem::transmute(val);
1953 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
1954 }
1955 }
1956 #[inline]
1957 #[allow(unnecessary_transmutes)]
1958 pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1959 unsafe {
1960 ::std::mem::transmute(
1961 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(
1962 ::std::ptr::addr_of!((*this)._bitfield_1),
1963 ) as u32,
1964 )
1965 }
1966 }
1967 #[inline]
1968 #[allow(unnecessary_transmutes)]
1969 pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1970 unsafe {
1971 let val: u32 = ::std::mem::transmute(val);
1972 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(
1973 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1974 val as u64,
1975 )
1976 }
1977 }
1978 #[inline]
1979 #[allow(unnecessary_transmutes)]
1980 pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1981 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
1982 }
1983 #[inline]
1984 #[allow(unnecessary_transmutes)]
1985 pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1986 unsafe {
1987 let val: u32 = ::std::mem::transmute(val);
1988 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
1989 }
1990 }
1991 #[inline]
1992 #[allow(unnecessary_transmutes)]
1993 pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1994 unsafe {
1995 ::std::mem::transmute(
1996 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<5usize, 1u8>(
1997 ::std::ptr::addr_of!((*this)._bitfield_1),
1998 ) as u32,
1999 )
2000 }
2001 }
2002 #[inline]
2003 #[allow(unnecessary_transmutes)]
2004 pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2005 unsafe {
2006 let val: u32 = ::std::mem::transmute(val);
2007 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<5usize, 1u8>(
2008 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2009 val as u64,
2010 )
2011 }
2012 }
2013 #[inline]
2014 #[allow(unnecessary_transmutes)]
2015 pub fn has_block(&self) -> ::std::os::raw::c_uint {
2016 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
2017 }
2018 #[inline]
2019 #[allow(unnecessary_transmutes)]
2020 pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
2021 unsafe {
2022 let val: u32 = ::std::mem::transmute(val);
2023 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
2024 }
2025 }
2026 #[inline]
2027 #[allow(unnecessary_transmutes)]
2028 pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
2029 unsafe {
2030 ::std::mem::transmute(
2031 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<6usize, 1u8>(
2032 ::std::ptr::addr_of!((*this)._bitfield_1),
2033 ) as u32,
2034 )
2035 }
2036 }
2037 #[inline]
2038 #[allow(unnecessary_transmutes)]
2039 pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2040 unsafe {
2041 let val: u32 = ::std::mem::transmute(val);
2042 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<6usize, 1u8>(
2043 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2044 val as u64,
2045 )
2046 }
2047 }
2048 #[inline]
2049 #[allow(unnecessary_transmutes)]
2050 pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
2051 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
2052 }
2053 #[inline]
2054 #[allow(unnecessary_transmutes)]
2055 pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
2056 unsafe {
2057 let val: u32 = ::std::mem::transmute(val);
2058 self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
2059 }
2060 }
2061 #[inline]
2062 #[allow(unnecessary_transmutes)]
2063 pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
2064 unsafe {
2065 ::std::mem::transmute(
2066 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(
2067 ::std::ptr::addr_of!((*this)._bitfield_1),
2068 ) as u32,
2069 )
2070 }
2071 }
2072 #[inline]
2073 #[allow(unnecessary_transmutes)]
2074 pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2075 unsafe {
2076 let val: u32 = ::std::mem::transmute(val);
2077 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(
2078 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2079 val as u64,
2080 )
2081 }
2082 }
2083 #[inline]
2084 #[allow(unnecessary_transmutes)]
2085 pub fn accepts_no_kwarg(&self) -> ::std::os::raw::c_uint {
2086 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) }
2087 }
2088 #[inline]
2089 #[allow(unnecessary_transmutes)]
2090 pub fn set_accepts_no_kwarg(&mut self, val: ::std::os::raw::c_uint) {
2091 unsafe {
2092 let val: u32 = ::std::mem::transmute(val);
2093 self._bitfield_1.set_const::<8usize, 1u8>(val as u64)
2094 }
2095 }
2096 #[inline]
2097 #[allow(unnecessary_transmutes)]
2098 pub unsafe fn accepts_no_kwarg_raw(this: *const Self) -> ::std::os::raw::c_uint {
2099 unsafe {
2100 ::std::mem::transmute(
2101 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(
2102 ::std::ptr::addr_of!((*this)._bitfield_1),
2103 ) as u32,
2104 )
2105 }
2106 }
2107 #[inline]
2108 #[allow(unnecessary_transmutes)]
2109 pub unsafe fn set_accepts_no_kwarg_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2110 unsafe {
2111 let val: u32 = ::std::mem::transmute(val);
2112 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(
2113 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2114 val as u64,
2115 )
2116 }
2117 }
2118 #[inline]
2119 #[allow(unnecessary_transmutes)]
2120 pub fn ruby2_keywords(&self) -> ::std::os::raw::c_uint {
2121 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u32) }
2122 }
2123 #[inline]
2124 #[allow(unnecessary_transmutes)]
2125 pub fn set_ruby2_keywords(&mut self, val: ::std::os::raw::c_uint) {
2126 unsafe {
2127 let val: u32 = ::std::mem::transmute(val);
2128 self._bitfield_1.set_const::<9usize, 1u8>(val as u64)
2129 }
2130 }
2131 #[inline]
2132 #[allow(unnecessary_transmutes)]
2133 pub unsafe fn ruby2_keywords_raw(this: *const Self) -> ::std::os::raw::c_uint {
2134 unsafe {
2135 ::std::mem::transmute(
2136 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(
2137 ::std::ptr::addr_of!((*this)._bitfield_1),
2138 ) as u32,
2139 )
2140 }
2141 }
2142 #[inline]
2143 #[allow(unnecessary_transmutes)]
2144 pub unsafe fn set_ruby2_keywords_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2145 unsafe {
2146 let val: u32 = ::std::mem::transmute(val);
2147 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(
2148 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2149 val as u64,
2150 )
2151 }
2152 }
2153 #[inline]
2154 #[allow(unnecessary_transmutes)]
2155 pub fn new_bitfield_1(
2156 has_lead: ::std::os::raw::c_uint,
2157 has_opt: ::std::os::raw::c_uint,
2158 has_rest: ::std::os::raw::c_uint,
2159 has_post: ::std::os::raw::c_uint,
2160 has_kw: ::std::os::raw::c_uint,
2161 has_kwrest: ::std::os::raw::c_uint,
2162 has_block: ::std::os::raw::c_uint,
2163 ambiguous_param0: ::std::os::raw::c_uint,
2164 accepts_no_kwarg: ::std::os::raw::c_uint,
2165 ruby2_keywords: ::std::os::raw::c_uint,
2166 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2167 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2168 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2169 let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
2170 has_lead as u64
2171 });
2172 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2173 let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
2174 has_opt as u64
2175 });
2176 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2177 let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
2178 has_rest as u64
2179 });
2180 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2181 let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
2182 has_post as u64
2183 });
2184 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
2185 let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
2186 has_kw as u64
2187 });
2188 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
2189 let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
2190 has_kwrest as u64
2191 });
2192 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
2193 let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
2194 has_block as u64
2195 });
2196 __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
2197 let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
2198 ambiguous_param0 as u64
2199 });
2200 __bindgen_bitfield_unit.set_const::<8usize, 1u8>({
2201 let accepts_no_kwarg: u32 = unsafe { ::std::mem::transmute(accepts_no_kwarg) };
2202 accepts_no_kwarg as u64
2203 });
2204 __bindgen_bitfield_unit.set_const::<9usize, 1u8>({
2205 let ruby2_keywords: u32 = unsafe { ::std::mem::transmute(ruby2_keywords) };
2206 ruby2_keywords as u64
2207 });
2208 __bindgen_bitfield_unit
2209 }
2210}
2211#[repr(C)]
2212#[derive(Debug, Copy, Clone)]
2213pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
2214 pub num: ::std::os::raw::c_int,
2215 pub required_num: ::std::os::raw::c_int,
2216 pub bits_start: ::std::os::raw::c_int,
2217 pub rest_start: ::std::os::raw::c_int,
2218 pub table: *const ID,
2219 pub default_values: *mut VALUE,
2220}
2221#[repr(C)]
2222#[derive(Debug, Copy, Clone)]
2223pub struct rb_iseq_constant_body_iseq_insn_info {
2224 pub body: *const iseq_insn_info_entry,
2225 pub positions: *mut ::std::os::raw::c_uint,
2226 pub size: ::std::os::raw::c_uint,
2227 pub succ_index_table: *mut succ_index_table,
2228}
2229#[repr(C)]
2230#[derive(Debug, Copy, Clone)]
2231pub struct rb_iseq_constant_body__bindgen_ty_2 {
2232 pub flip_count: rb_snum_t,
2233 pub script_lines: VALUE,
2234 pub coverage: VALUE,
2235 pub pc2branchindex: VALUE,
2236 pub original_iseq: *mut VALUE,
2237}
2238#[repr(C)]
2239#[derive(Copy, Clone)]
2240pub union rb_iseq_constant_body__bindgen_ty_3 {
2241 pub list: *mut iseq_bits_t,
2242 pub single: iseq_bits_t,
2243}
2244impl ::std::fmt::Debug for rb_iseq_constant_body__bindgen_ty_3 {
2245 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2246 write!(f, "rb_iseq_constant_body__bindgen_ty_3 {{ union }}")
2247 }
2248}
2249impl ::std::fmt::Debug for rb_iseq_constant_body {
2250 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2251 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)
2252 }
2253}
2254#[repr(C)]
2255#[derive(Copy, Clone)]
2256pub struct rb_iseq_struct {
2257 pub flags: VALUE,
2258 pub wrapper: VALUE,
2259 pub body: *mut rb_iseq_constant_body,
2260 pub aux: rb_iseq_struct__bindgen_ty_1,
2261}
2262#[repr(C)]
2263#[derive(Copy, Clone)]
2264pub union rb_iseq_struct__bindgen_ty_1 {
2265 pub compile_data: *mut iseq_compile_data,
2266 pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
2267 pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
2268}
2269#[repr(C)]
2270#[derive(Debug, Copy, Clone)]
2271pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
2272 pub obj: VALUE,
2273 pub index: ::std::os::raw::c_int,
2274}
2275#[repr(C)]
2276#[derive(Debug, Copy, Clone)]
2277pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
2278 pub local_hooks: *mut rb_hook_list_struct,
2279 pub global_trace_events: rb_event_flag_t,
2280}
2281impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
2282 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2283 write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
2284 }
2285}
2286impl ::std::fmt::Debug for rb_iseq_struct {
2287 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2288 write!(
2289 f,
2290 "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
2291 self.flags, self.wrapper, self.body, self.aux
2292 )
2293 }
2294}
2295pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
2296#[repr(C)]
2297#[derive(Debug, Copy, Clone)]
2298pub struct rb_at_exit_list {
2299 pub func: rb_vm_at_exit_func,
2300 pub next: *mut rb_at_exit_list,
2301}
2302#[repr(C)]
2303#[derive(Debug)]
2304pub struct rb_objspace {
2305 _unused: [u8; 0],
2306}
2307#[repr(C)]
2308#[derive(Debug, Copy, Clone)]
2309pub struct rb_hook_list_struct {
2310 pub hooks: *mut rb_event_hook_struct,
2311 pub events: rb_event_flag_t,
2312 pub running: ::std::os::raw::c_uint,
2313 pub need_clean: bool,
2314 pub is_local: bool,
2315}
2316pub type rb_hook_list_t = rb_hook_list_struct;
2317#[repr(C)]
2318#[derive(Debug)]
2319pub struct rb_builtin_function {
2320 _unused: [u8; 0],
2321}
2322#[repr(C)]
2323#[derive(Copy, Clone)]
2324pub struct rb_vm_struct {
2325 pub self_: VALUE,
2326 pub ractor: rb_vm_struct__bindgen_ty_1,
2327 pub main_altstack: *mut ::std::os::raw::c_void,
2328 pub fork_gen: rb_serial_t,
2329 pub waiting_fds: ccan_list_head,
2330 pub ubf_async_safe: ::std::os::raw::c_int,
2331 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2332 pub mark_object_ary: VALUE,
2333 pub special_exceptions: [VALUE; 5usize],
2334 pub top_self: VALUE,
2335 pub load_path: VALUE,
2336 pub load_path_snapshot: VALUE,
2337 pub load_path_check_cache: VALUE,
2338 pub expanded_load_path: VALUE,
2339 pub loaded_features: VALUE,
2340 pub loaded_features_snapshot: VALUE,
2341 pub loaded_features_realpaths: VALUE,
2342 pub loaded_features_realpath_map: VALUE,
2343 pub loaded_features_index: *mut st_table,
2344 pub loading_table: *mut st_table,
2345 pub static_ext_inits: *mut st_table,
2346 pub trap_list: rb_vm_struct__bindgen_ty_2,
2347 pub ensure_rollback_table: *mut st_table,
2348 pub postponed_job_queue: *mut rb_postponed_job_queue,
2349 pub src_encoding_index: ::std::os::raw::c_int,
2350 pub workqueue: ccan_list_head,
2351 pub workqueue_lock: rb_nativethread_lock_t,
2352 pub orig_progname: VALUE,
2353 pub progname: VALUE,
2354 pub coverages: VALUE,
2355 pub me2counter: VALUE,
2356 pub coverage_mode: ::std::os::raw::c_int,
2357 pub defined_module_hash: *mut st_table,
2358 pub objspace: *mut rb_objspace,
2359 pub at_exit: *mut rb_at_exit_list,
2360 pub frozen_strings: *mut st_table,
2361 pub builtin_function_table: *const rb_builtin_function,
2362 pub builtin_inline_index: ::std::os::raw::c_int,
2363 pub negative_cme_table: *mut rb_id_table,
2364 pub overloaded_cme_table: *mut st_table,
2365 pub constant_cache: *mut rb_id_table,
2366 pub global_cc_cache_table: [*const rb_callcache; 1023usize],
2367 pub default_params: rb_vm_struct__bindgen_ty_3,
2368}
2369#[repr(C)]
2370#[derive(Copy, Clone)]
2371pub struct rb_vm_struct__bindgen_ty_1 {
2372 pub set: ccan_list_head,
2373 pub cnt: ::std::os::raw::c_uint,
2374 pub blocking_cnt: ::std::os::raw::c_uint,
2375 pub main_ractor: *mut rb_ractor_struct,
2376 pub main_thread: *mut rb_thread_struct,
2377 pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
2378 pub sched: rb_vm_struct__bindgen_ty_1__bindgen_ty_2,
2379}
2380#[repr(C)]
2381#[derive(Copy, Clone)]
2382pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2383 pub lock: rb_nativethread_lock_t,
2384 pub lock_owner: *mut rb_ractor_struct,
2385 pub lock_rec: ::std::os::raw::c_uint,
2386 pub terminate_cond: rb_nativethread_cond_t,
2387 pub terminate_waiting: bool,
2388}
2389impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2390 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2391 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)
2392 }
2393}
2394#[repr(C)]
2395#[derive(Copy, Clone)]
2396pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2397 pub lock: rb_nativethread_lock_t,
2398 pub lock_owner: *mut rb_ractor_struct,
2399 pub locked: bool,
2400 pub cond: rb_nativethread_cond_t,
2401 pub snt_cnt: ::std::os::raw::c_uint,
2402 pub dnt_cnt: ::std::os::raw::c_uint,
2403 pub running_cnt: ::std::os::raw::c_uint,
2404 pub max_cpu: ::std::os::raw::c_uint,
2405 pub grq: ccan_list_head,
2406 pub grq_cnt: ::std::os::raw::c_uint,
2407 pub running_threads: ccan_list_head,
2408 pub timeslice_threads: ccan_list_head,
2409 pub zombie_threads: ccan_list_head,
2410 pub timeslice_wait_inf: bool,
2411 pub barrier_complete_cond: rb_nativethread_cond_t,
2412 pub barrier_release_cond: rb_nativethread_cond_t,
2413 pub barrier_waiting: bool,
2414 pub barrier_waiting_cnt: ::std::os::raw::c_uint,
2415 pub barrier_serial: ::std::os::raw::c_uint,
2416}
2417impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2418 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2419 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)
2420 }
2421}
2422impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2423 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2424 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)
2425 }
2426}
2427#[repr(C)]
2428#[derive(Debug, Copy, Clone)]
2429pub struct rb_vm_struct__bindgen_ty_2 {
2430 pub cmd: [VALUE; 65usize],
2431}
2432#[repr(C)]
2433#[derive(Debug, Copy, Clone)]
2434pub struct rb_vm_struct__bindgen_ty_3 {
2435 pub thread_vm_stack_size: usize,
2436 pub thread_machine_stack_size: usize,
2437 pub fiber_vm_stack_size: usize,
2438 pub fiber_machine_stack_size: usize,
2439}
2440impl ::std::fmt::Debug for rb_vm_struct {
2441 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2442 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: {:?}, negative_cme_table: {:?}, overloaded_cme_table: {:?}, constant_cache: {:?}, 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 . negative_cme_table , self . overloaded_cme_table , self . constant_cache , self . global_cc_cache_table , self . default_params)
2443 }
2444}
2445impl rb_vm_struct {
2446 #[inline]
2447 #[allow(unnecessary_transmutes)]
2448 pub fn running(&self) -> ::std::os::raw::c_uint {
2449 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2450 }
2451 #[inline]
2452 #[allow(unnecessary_transmutes)]
2453 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2454 unsafe {
2455 let val: u32 = ::std::mem::transmute(val);
2456 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2457 }
2458 }
2459 #[inline]
2460 #[allow(unnecessary_transmutes)]
2461 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2462 unsafe {
2463 ::std::mem::transmute(
2464 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
2465 ::std::ptr::addr_of!((*this)._bitfield_1),
2466 ) as u32,
2467 )
2468 }
2469 }
2470 #[inline]
2471 #[allow(unnecessary_transmutes)]
2472 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2473 unsafe {
2474 let val: u32 = ::std::mem::transmute(val);
2475 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
2476 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2477 val as u64,
2478 )
2479 }
2480 }
2481 #[inline]
2482 #[allow(unnecessary_transmutes)]
2483 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2484 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2485 }
2486 #[inline]
2487 #[allow(unnecessary_transmutes)]
2488 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2489 unsafe {
2490 let val: u32 = ::std::mem::transmute(val);
2491 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2492 }
2493 }
2494 #[inline]
2495 #[allow(unnecessary_transmutes)]
2496 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2497 unsafe {
2498 ::std::mem::transmute(
2499 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
2500 ::std::ptr::addr_of!((*this)._bitfield_1),
2501 ) as u32,
2502 )
2503 }
2504 }
2505 #[inline]
2506 #[allow(unnecessary_transmutes)]
2507 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2508 unsafe {
2509 let val: u32 = ::std::mem::transmute(val);
2510 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
2511 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2512 val as u64,
2513 )
2514 }
2515 }
2516 #[inline]
2517 #[allow(unnecessary_transmutes)]
2518 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2519 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2520 }
2521 #[inline]
2522 #[allow(unnecessary_transmutes)]
2523 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2524 unsafe {
2525 let val: u32 = ::std::mem::transmute(val);
2526 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2527 }
2528 }
2529 #[inline]
2530 #[allow(unnecessary_transmutes)]
2531 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2532 unsafe {
2533 ::std::mem::transmute(
2534 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2535 ::std::ptr::addr_of!((*this)._bitfield_1),
2536 ) as u32,
2537 )
2538 }
2539 }
2540 #[inline]
2541 #[allow(unnecessary_transmutes)]
2542 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2543 unsafe {
2544 let val: u32 = ::std::mem::transmute(val);
2545 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2546 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2547 val as u64,
2548 )
2549 }
2550 }
2551 #[inline]
2552 #[allow(unnecessary_transmutes)]
2553 pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2554 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2555 }
2556 #[inline]
2557 #[allow(unnecessary_transmutes)]
2558 pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2559 unsafe {
2560 let val: u32 = ::std::mem::transmute(val);
2561 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2562 }
2563 }
2564 #[inline]
2565 #[allow(unnecessary_transmutes)]
2566 pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2567 unsafe {
2568 ::std::mem::transmute(
2569 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
2570 ::std::ptr::addr_of!((*this)._bitfield_1),
2571 ) as u32,
2572 )
2573 }
2574 }
2575 #[inline]
2576 #[allow(unnecessary_transmutes)]
2577 pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2578 unsafe {
2579 let val: u32 = ::std::mem::transmute(val);
2580 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
2581 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2582 val as u64,
2583 )
2584 }
2585 }
2586 #[inline]
2587 #[allow(unnecessary_transmutes)]
2588 pub fn new_bitfield_1(
2589 running: ::std::os::raw::c_uint,
2590 thread_abort_on_exception: ::std::os::raw::c_uint,
2591 thread_report_on_exception: ::std::os::raw::c_uint,
2592 thread_ignore_deadlock: ::std::os::raw::c_uint,
2593 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2594 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2595 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2596 let running: u32 = unsafe { ::std::mem::transmute(running) };
2597 running as u64
2598 });
2599 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2600 let thread_abort_on_exception: u32 =
2601 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2602 thread_abort_on_exception as u64
2603 });
2604 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2605 let thread_report_on_exception: u32 =
2606 unsafe { ::std::mem::transmute(thread_report_on_exception) };
2607 thread_report_on_exception as u64
2608 });
2609 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2610 let thread_ignore_deadlock: u32 =
2611 unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2612 thread_ignore_deadlock as u64
2613 });
2614 __bindgen_bitfield_unit
2615 }
2616}
2617pub type rb_vm_t = rb_vm_struct;
2618#[repr(C)]
2619#[derive(Debug, Copy, Clone)]
2620pub struct rb_control_frame_struct {
2621 pub pc: *const VALUE,
2622 pub sp: *mut VALUE,
2623 pub iseq: *const rb_iseq_t,
2624 pub self_: VALUE,
2625 pub ep: *const VALUE,
2626 pub block_code: *const ::std::os::raw::c_void,
2627 pub jit_return: *mut ::std::os::raw::c_void,
2628}
2629pub type rb_control_frame_t = rb_control_frame_struct;
2630pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2631pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2632pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2633pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2634pub type rb_thread_status = ::std::os::raw::c_uint;
2635pub type rb_jmpbuf_t = sigjmp_buf;
2636pub type rb_vm_tag_jmpbuf_t = rb_jmpbuf_t;
2637#[repr(C)]
2638#[derive(Debug, Copy, Clone)]
2639pub struct rb_vm_tag {
2640 pub tag: VALUE,
2641 pub retval: VALUE,
2642 pub buf: rb_vm_tag_jmpbuf_t,
2643 pub prev: *mut rb_vm_tag,
2644 pub state: ruby_tag_type,
2645 pub lock_rec: ::std::os::raw::c_uint,
2646}
2647#[repr(C)]
2648#[derive(Debug, Copy, Clone)]
2649pub struct rb_unblock_callback {
2650 pub func: rb_unblock_function_t,
2651 pub arg: *mut ::std::os::raw::c_void,
2652}
2653#[repr(C)]
2654#[derive(Debug)]
2655pub struct rb_mutex_struct {
2656 _unused: [u8; 0],
2657}
2658#[repr(C)]
2659#[derive(Debug, Copy, Clone)]
2660pub struct rb_ensure_entry {
2661 pub marker: VALUE,
2662 pub e_proc: ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>,
2663 pub data2: VALUE,
2664}
2665#[repr(C)]
2666#[derive(Debug, Copy, Clone)]
2667pub struct rb_ensure_list {
2668 pub next: *mut rb_ensure_list,
2669 pub entry: rb_ensure_entry,
2670}
2671pub type rb_ensure_list_t = rb_ensure_list;
2672#[repr(C)]
2673#[derive(Debug)]
2674pub struct rb_fiber_struct {
2675 _unused: [u8; 0],
2676}
2677pub type rb_fiber_t = rb_fiber_struct;
2678#[repr(C)]
2679#[derive(Debug, Copy, Clone)]
2680pub struct rb_waiting_list {
2681 pub next: *mut rb_waiting_list,
2682 pub thread: *mut rb_thread_struct,
2683 pub fiber: *mut rb_fiber_struct,
2684}
2685#[repr(C)]
2686#[derive(Debug, Copy, Clone)]
2687pub struct rb_execution_context_struct {
2688 pub vm_stack: *mut VALUE,
2689 pub vm_stack_size: usize,
2690 pub cfp: *mut rb_control_frame_t,
2691 pub tag: *mut rb_vm_tag,
2692 pub interrupt_flag: rb_atomic_t,
2693 pub interrupt_mask: rb_atomic_t,
2694 pub fiber_ptr: *mut rb_fiber_t,
2695 pub thread_ptr: *mut rb_thread_struct,
2696 pub local_storage: *mut rb_id_table,
2697 pub local_storage_recursive_hash: VALUE,
2698 pub local_storage_recursive_hash_for_trace: VALUE,
2699 pub storage: VALUE,
2700 pub root_lep: *const VALUE,
2701 pub root_svar: VALUE,
2702 pub ensure_list: *mut rb_ensure_list_t,
2703 pub trace_arg: *mut rb_trace_arg_struct,
2704 pub errinfo: VALUE,
2705 pub passed_block_handler: VALUE,
2706 pub raised_flag: u8,
2707 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2708 pub private_const_reference: VALUE,
2709 pub machine: rb_execution_context_struct__bindgen_ty_1,
2710}
2711#[repr(C)]
2712#[derive(Debug, Copy, Clone)]
2713pub struct rb_execution_context_struct__bindgen_ty_1 {
2714 pub stack_start: *mut VALUE,
2715 pub stack_end: *mut VALUE,
2716 pub stack_maxsize: usize,
2717 pub regs: jmp_buf,
2718}
2719impl rb_execution_context_struct {
2720 #[inline]
2721 #[allow(unnecessary_transmutes)]
2722 pub fn method_missing_reason(&self) -> method_missing_reason {
2723 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 8u8>() as u32) }
2724 }
2725 #[inline]
2726 #[allow(unnecessary_transmutes)]
2727 pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2728 unsafe {
2729 let val: u32 = ::std::mem::transmute(val);
2730 self._bitfield_1.set_const::<0usize, 8u8>(val as u64)
2731 }
2732 }
2733 #[inline]
2734 #[allow(unnecessary_transmutes)]
2735 pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2736 unsafe {
2737 ::std::mem::transmute(
2738 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 8u8>(
2739 ::std::ptr::addr_of!((*this)._bitfield_1),
2740 ) as u32,
2741 )
2742 }
2743 }
2744 #[inline]
2745 #[allow(unnecessary_transmutes)]
2746 pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2747 unsafe {
2748 let val: u32 = ::std::mem::transmute(val);
2749 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 8u8>(
2750 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2751 val as u64,
2752 )
2753 }
2754 }
2755 #[inline]
2756 #[allow(unnecessary_transmutes)]
2757 pub fn new_bitfield_1(
2758 method_missing_reason: method_missing_reason,
2759 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2760 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2761 __bindgen_bitfield_unit.set_const::<0usize, 8u8>({
2762 let method_missing_reason: u32 =
2763 unsafe { ::std::mem::transmute(method_missing_reason) };
2764 method_missing_reason as u64
2765 });
2766 __bindgen_bitfield_unit
2767 }
2768}
2769pub type rb_execution_context_t = rb_execution_context_struct;
2770#[repr(C)]
2771#[derive(Debug, Copy, Clone)]
2772pub struct rb_ext_config {
2773 pub ractor_safe: bool,
2774}
2775pub type rb_ractor_t = rb_ractor_struct;
2776#[repr(C)]
2777#[derive(Copy, Clone)]
2778pub struct rb_thread_struct {
2779 pub lt_node: ccan_list_node,
2780 pub self_: VALUE,
2781 pub ractor: *mut rb_ractor_t,
2782 pub vm: *mut rb_vm_t,
2783 pub nt: *mut rb_native_thread,
2784 pub ec: *mut rb_execution_context_t,
2785 pub sched: rb_thread_sched_item,
2786 pub serial: rb_atomic_t,
2787 pub last_status: VALUE,
2788 pub calling: *mut rb_calling_info,
2789 pub top_self: VALUE,
2790 pub top_wrapper: VALUE,
2791 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2792 pub priority: i8,
2793 pub running_time_us: u32,
2794 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2795 pub thgroup: VALUE,
2796 pub value: VALUE,
2797 pub pending_interrupt_queue: VALUE,
2798 pub pending_interrupt_mask_stack: VALUE,
2799 pub interrupt_lock: rb_nativethread_lock_t,
2800 pub unblock: rb_unblock_callback,
2801 pub locking_mutex: VALUE,
2802 pub keeping_mutexes: *mut rb_mutex_struct,
2803 pub join_list: *mut rb_waiting_list,
2804 pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2805 pub invoke_type: rb_thread_struct_thread_invoke_type,
2806 pub stat_insn_usage: VALUE,
2807 pub root_fiber: *mut rb_fiber_t,
2808 pub scheduler: VALUE,
2809 pub blocking: ::std::os::raw::c_uint,
2810 pub name: VALUE,
2811 pub specific_storage: *mut *mut ::std::os::raw::c_void,
2812 pub ext_config: rb_ext_config,
2813}
2814#[repr(C)]
2815#[derive(Copy, Clone)]
2816pub union rb_thread_struct__bindgen_ty_1 {
2817 pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2818 pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2819}
2820#[repr(C)]
2821#[derive(Debug, Copy, Clone)]
2822pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2823 pub proc_: VALUE,
2824 pub args: VALUE,
2825 pub kw_splat: ::std::os::raw::c_int,
2826}
2827#[repr(C)]
2828#[derive(Debug, Copy, Clone)]
2829pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2830 pub func:
2831 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
2832 pub arg: *mut ::std::os::raw::c_void,
2833}
2834impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2835 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2836 write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2837 }
2838}
2839pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
2840 rb_thread_struct_thread_invoke_type = 0;
2841pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
2842 rb_thread_struct_thread_invoke_type = 1;
2843pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
2844 rb_thread_struct_thread_invoke_type = 2;
2845pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
2846 rb_thread_struct_thread_invoke_type = 3;
2847pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
2848impl ::std::fmt::Debug for rb_thread_struct {
2849 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2850 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)
2851 }
2852}
2853impl rb_thread_struct {
2854 #[inline]
2855 #[allow(unnecessary_transmutes)]
2856 pub fn status(&self) -> rb_thread_status {
2857 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 2u8>() as u32) }
2858 }
2859 #[inline]
2860 #[allow(unnecessary_transmutes)]
2861 pub fn set_status(&mut self, val: rb_thread_status) {
2862 unsafe {
2863 let val: u32 = ::std::mem::transmute(val);
2864 self._bitfield_1.set_const::<0usize, 2u8>(val as u64)
2865 }
2866 }
2867 #[inline]
2868 #[allow(unnecessary_transmutes)]
2869 pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2870 unsafe {
2871 ::std::mem::transmute(
2872 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 2u8>(
2873 ::std::ptr::addr_of!((*this)._bitfield_1),
2874 ) as u32,
2875 )
2876 }
2877 }
2878 #[inline]
2879 #[allow(unnecessary_transmutes)]
2880 pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2881 unsafe {
2882 let val: u32 = ::std::mem::transmute(val);
2883 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 2u8>(
2884 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2885 val as u64,
2886 )
2887 }
2888 }
2889 #[inline]
2890 #[allow(unnecessary_transmutes)]
2891 pub fn has_dedicated_nt(&self) -> ::std::os::raw::c_uint {
2892 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2893 }
2894 #[inline]
2895 #[allow(unnecessary_transmutes)]
2896 pub fn set_has_dedicated_nt(&mut self, val: ::std::os::raw::c_uint) {
2897 unsafe {
2898 let val: u32 = ::std::mem::transmute(val);
2899 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2900 }
2901 }
2902 #[inline]
2903 #[allow(unnecessary_transmutes)]
2904 pub unsafe fn has_dedicated_nt_raw(this: *const Self) -> ::std::os::raw::c_uint {
2905 unsafe {
2906 ::std::mem::transmute(
2907 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2908 ::std::ptr::addr_of!((*this)._bitfield_1),
2909 ) as u32,
2910 )
2911 }
2912 }
2913 #[inline]
2914 #[allow(unnecessary_transmutes)]
2915 pub unsafe fn set_has_dedicated_nt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2916 unsafe {
2917 let val: u32 = ::std::mem::transmute(val);
2918 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2919 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2920 val as u64,
2921 )
2922 }
2923 }
2924 #[inline]
2925 #[allow(unnecessary_transmutes)]
2926 pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2927 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2928 }
2929 #[inline]
2930 #[allow(unnecessary_transmutes)]
2931 pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2932 unsafe {
2933 let val: u32 = ::std::mem::transmute(val);
2934 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2935 }
2936 }
2937 #[inline]
2938 #[allow(unnecessary_transmutes)]
2939 pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2940 unsafe {
2941 ::std::mem::transmute(
2942 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
2943 ::std::ptr::addr_of!((*this)._bitfield_1),
2944 ) as u32,
2945 )
2946 }
2947 }
2948 #[inline]
2949 #[allow(unnecessary_transmutes)]
2950 pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2951 unsafe {
2952 let val: u32 = ::std::mem::transmute(val);
2953 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
2954 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2955 val as u64,
2956 )
2957 }
2958 }
2959 #[inline]
2960 #[allow(unnecessary_transmutes)]
2961 pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2962 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
2963 }
2964 #[inline]
2965 #[allow(unnecessary_transmutes)]
2966 pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2967 unsafe {
2968 let val: u32 = ::std::mem::transmute(val);
2969 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
2970 }
2971 }
2972 #[inline]
2973 #[allow(unnecessary_transmutes)]
2974 pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2975 unsafe {
2976 ::std::mem::transmute(
2977 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
2978 ::std::ptr::addr_of!((*this)._bitfield_1),
2979 ) as u32,
2980 )
2981 }
2982 }
2983 #[inline]
2984 #[allow(unnecessary_transmutes)]
2985 pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2986 unsafe {
2987 let val: u32 = ::std::mem::transmute(val);
2988 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
2989 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2990 val as u64,
2991 )
2992 }
2993 }
2994 #[inline]
2995 #[allow(unnecessary_transmutes)]
2996 pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2997 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
2998 }
2999 #[inline]
3000 #[allow(unnecessary_transmutes)]
3001 pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
3002 unsafe {
3003 let val: u32 = ::std::mem::transmute(val);
3004 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
3005 }
3006 }
3007 #[inline]
3008 #[allow(unnecessary_transmutes)]
3009 pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
3010 unsafe {
3011 ::std::mem::transmute(
3012 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
3013 ::std::ptr::addr_of!((*this)._bitfield_1),
3014 ) as u32,
3015 )
3016 }
3017 }
3018 #[inline]
3019 #[allow(unnecessary_transmutes)]
3020 pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3021 unsafe {
3022 let val: u32 = ::std::mem::transmute(val);
3023 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
3024 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3025 val as u64,
3026 )
3027 }
3028 }
3029 #[inline]
3030 #[allow(unnecessary_transmutes)]
3031 pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
3032 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
3033 }
3034 #[inline]
3035 #[allow(unnecessary_transmutes)]
3036 pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
3037 unsafe {
3038 let val: u32 = ::std::mem::transmute(val);
3039 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
3040 }
3041 }
3042 #[inline]
3043 #[allow(unnecessary_transmutes)]
3044 pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
3045 unsafe {
3046 ::std::mem::transmute(
3047 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(
3048 ::std::ptr::addr_of!((*this)._bitfield_1),
3049 ) as u32,
3050 )
3051 }
3052 }
3053 #[inline]
3054 #[allow(unnecessary_transmutes)]
3055 pub unsafe fn set_pending_interrupt_queue_checked_raw(
3056 this: *mut Self,
3057 val: ::std::os::raw::c_uint,
3058 ) {
3059 unsafe {
3060 let val: u32 = ::std::mem::transmute(val);
3061 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(
3062 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3063 val as u64,
3064 )
3065 }
3066 }
3067 #[inline]
3068 #[allow(unnecessary_transmutes)]
3069 pub fn new_bitfield_1(
3070 status: rb_thread_status,
3071 has_dedicated_nt: ::std::os::raw::c_uint,
3072 to_kill: ::std::os::raw::c_uint,
3073 abort_on_exception: ::std::os::raw::c_uint,
3074 report_on_exception: ::std::os::raw::c_uint,
3075 pending_interrupt_queue_checked: ::std::os::raw::c_uint,
3076 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
3077 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
3078 __bindgen_bitfield_unit.set_const::<0usize, 2u8>({
3079 let status: u32 = unsafe { ::std::mem::transmute(status) };
3080 status as u64
3081 });
3082 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
3083 let has_dedicated_nt: u32 = unsafe { ::std::mem::transmute(has_dedicated_nt) };
3084 has_dedicated_nt as u64
3085 });
3086 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
3087 let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
3088 to_kill as u64
3089 });
3090 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
3091 let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
3092 abort_on_exception as u64
3093 });
3094 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
3095 let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
3096 report_on_exception as u64
3097 });
3098 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
3099 let pending_interrupt_queue_checked: u32 =
3100 unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
3101 pending_interrupt_queue_checked as u64
3102 });
3103 __bindgen_bitfield_unit
3104 }
3105}
3106pub type rb_thread_t = rb_thread_struct;
3107#[repr(C)]
3108#[derive(Debug, Copy, Clone)]
3109pub struct rb_trace_arg_struct {
3110 pub event: rb_event_flag_t,
3111 pub ec: *mut rb_execution_context_t,
3112 pub cfp: *const rb_control_frame_t,
3113 pub self_: VALUE,
3114 pub id: ID,
3115 pub called_id: ID,
3116 pub klass: VALUE,
3117 pub data: VALUE,
3118 pub klass_solved: ::std::os::raw::c_int,
3119 pub lineno: ::std::os::raw::c_int,
3120 pub path: VALUE,
3121}
3122#[repr(C)]
3123#[derive(Debug, Copy, Clone)]
3124pub struct rb_ractor_pub {
3125 pub self_: VALUE,
3126 pub id: u32,
3127 pub hooks: rb_hook_list_t,
3128}
3129#[repr(C)]
3130#[derive(Debug, Copy, Clone)]
3131pub struct ractor_newobj_size_pool_cache {
3132 pub freelist: *mut RVALUE,
3133 pub using_page: *mut heap_page,
3134}
3135pub type rb_ractor_newobj_size_pool_cache_t = ractor_newobj_size_pool_cache;
3136#[repr(C)]
3137#[derive(Debug, Copy, Clone)]
3138pub struct ractor_newobj_cache {
3139 pub incremental_mark_step_allocated_slots: usize,
3140 pub size_pool_caches: [rb_ractor_newobj_size_pool_cache_t; 5usize],
3141}
3142pub type rb_ractor_newobj_cache_t = ractor_newobj_cache;
3143pub const rb_ractor_basket_type_basket_type_none: rb_ractor_basket_type = 0;
3144pub const rb_ractor_basket_type_basket_type_ref: rb_ractor_basket_type = 1;
3145pub const rb_ractor_basket_type_basket_type_copy: rb_ractor_basket_type = 2;
3146pub const rb_ractor_basket_type_basket_type_move: rb_ractor_basket_type = 3;
3147pub const rb_ractor_basket_type_basket_type_will: rb_ractor_basket_type = 4;
3148pub const rb_ractor_basket_type_basket_type_deleted: rb_ractor_basket_type = 5;
3149pub const rb_ractor_basket_type_basket_type_reserved: rb_ractor_basket_type = 6;
3150pub const rb_ractor_basket_type_basket_type_take_basket: rb_ractor_basket_type = 7;
3151pub const rb_ractor_basket_type_basket_type_yielding: rb_ractor_basket_type = 8;
3152pub type rb_ractor_basket_type = ::std::os::raw::c_uint;
3153#[repr(C)]
3154#[derive(Debug, Copy, Clone)]
3155pub struct rb_ractor_selector_take_config {
3156 pub closed: bool,
3157 pub oneshot: bool,
3158}
3159#[repr(C)]
3160#[derive(Copy, Clone)]
3161pub struct rb_ractor_basket {
3162 pub type_: rb_ractor_basket__bindgen_ty_1,
3163 pub sender: VALUE,
3164 pub p: rb_ractor_basket__bindgen_ty_2,
3165}
3166#[repr(C)]
3167#[derive(Copy, Clone)]
3168pub union rb_ractor_basket__bindgen_ty_1 {
3169 pub e: rb_ractor_basket_type,
3170 pub atomic: rb_atomic_t,
3171}
3172impl ::std::fmt::Debug for rb_ractor_basket__bindgen_ty_1 {
3173 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3174 write!(f, "rb_ractor_basket__bindgen_ty_1 {{ union }}")
3175 }
3176}
3177#[repr(C)]
3178#[derive(Copy, Clone)]
3179pub union rb_ractor_basket__bindgen_ty_2 {
3180 pub send: rb_ractor_basket__bindgen_ty_2__bindgen_ty_1,
3181 pub take: rb_ractor_basket__bindgen_ty_2__bindgen_ty_2,
3182}
3183#[repr(C)]
3184#[derive(Debug, Copy, Clone)]
3185pub struct rb_ractor_basket__bindgen_ty_2__bindgen_ty_1 {
3186 pub v: VALUE,
3187 pub exception: bool,
3188}
3189#[repr(C)]
3190#[derive(Debug, Copy, Clone)]
3191pub struct rb_ractor_basket__bindgen_ty_2__bindgen_ty_2 {
3192 pub basket: *mut rb_ractor_basket,
3193 pub config: *mut rb_ractor_selector_take_config,
3194}
3195impl ::std::fmt::Debug for rb_ractor_basket__bindgen_ty_2 {
3196 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3197 write!(f, "rb_ractor_basket__bindgen_ty_2 {{ union }}")
3198 }
3199}
3200impl ::std::fmt::Debug for rb_ractor_basket {
3201 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3202 write!(
3203 f,
3204 "rb_ractor_basket {{ type: {:?}, sender: {:?}, p: {:?} }}",
3205 self.type_, self.sender, self.p
3206 )
3207 }
3208}
3209#[repr(C)]
3210#[derive(Debug, Copy, Clone)]
3211pub struct rb_ractor_queue {
3212 pub baskets: *mut rb_ractor_basket,
3213 pub start: ::std::os::raw::c_int,
3214 pub cnt: ::std::os::raw::c_int,
3215 pub size: ::std::os::raw::c_int,
3216 pub serial: ::std::os::raw::c_uint,
3217 pub reserved_cnt: ::std::os::raw::c_uint,
3218}
3219pub const rb_ractor_wait_status_wait_none: rb_ractor_wait_status = 0;
3220pub const rb_ractor_wait_status_wait_receiving: rb_ractor_wait_status = 1;
3221pub const rb_ractor_wait_status_wait_taking: rb_ractor_wait_status = 2;
3222pub const rb_ractor_wait_status_wait_yielding: rb_ractor_wait_status = 4;
3223pub const rb_ractor_wait_status_wait_moving: rb_ractor_wait_status = 8;
3224pub type rb_ractor_wait_status = ::std::os::raw::c_uint;
3225pub const rb_ractor_wakeup_status_wakeup_none: rb_ractor_wakeup_status = 0;
3226pub const rb_ractor_wakeup_status_wakeup_by_send: rb_ractor_wakeup_status = 1;
3227pub const rb_ractor_wakeup_status_wakeup_by_yield: rb_ractor_wakeup_status = 2;
3228pub const rb_ractor_wakeup_status_wakeup_by_take: rb_ractor_wakeup_status = 3;
3229pub const rb_ractor_wakeup_status_wakeup_by_close: rb_ractor_wakeup_status = 4;
3230pub const rb_ractor_wakeup_status_wakeup_by_interrupt: rb_ractor_wakeup_status = 5;
3231pub const rb_ractor_wakeup_status_wakeup_by_retry: rb_ractor_wakeup_status = 6;
3232pub type rb_ractor_wakeup_status = ::std::os::raw::c_uint;
3233#[repr(C)]
3234#[derive(Copy, Clone)]
3235pub struct rb_ractor_sync {
3236 pub lock: rb_nativethread_lock_t,
3237 pub incoming_port_closed: bool,
3238 pub outgoing_port_closed: bool,
3239 pub recv_queue: rb_ractor_queue,
3240 pub takers_queue: rb_ractor_queue,
3241 pub will_basket: rb_ractor_basket,
3242 pub wait: rb_ractor_sync_ractor_wait,
3243}
3244#[repr(C)]
3245#[derive(Debug, Copy, Clone)]
3246pub struct rb_ractor_sync_ractor_wait {
3247 pub status: rb_ractor_wait_status,
3248 pub wakeup_status: rb_ractor_wakeup_status,
3249 pub waiting_thread: *mut rb_thread_t,
3250}
3251impl ::std::fmt::Debug for rb_ractor_sync {
3252 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3253 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)
3254 }
3255}
3256pub const ractor_status_ractor_created: ractor_status = 0;
3257pub const ractor_status_ractor_running: ractor_status = 1;
3258pub const ractor_status_ractor_blocking: ractor_status = 2;
3259pub const ractor_status_ractor_terminated: ractor_status = 3;
3260pub type ractor_status = ::std::os::raw::c_uint;
3261#[repr(C)]
3262#[derive(Copy, Clone)]
3263pub struct rb_ractor_struct {
3264 pub pub_: rb_ractor_pub,
3265 pub sync: rb_ractor_sync,
3266 pub receiving_mutex: VALUE,
3267 pub barrier_wait_cond: rb_nativethread_cond_t,
3268 pub threads: rb_ractor_struct__bindgen_ty_1,
3269 pub thgroup_default: VALUE,
3270 pub name: VALUE,
3271 pub loc: VALUE,
3272 pub status_: ractor_status,
3273 pub vmlr_node: ccan_list_node,
3274 pub local_storage: *mut st_table,
3275 pub idkey_local_storage: *mut rb_id_table,
3276 pub r_stdin: VALUE,
3277 pub r_stdout: VALUE,
3278 pub r_stderr: VALUE,
3279 pub verbose: VALUE,
3280 pub debug: VALUE,
3281 pub newobj_cache: rb_ractor_newobj_cache_t,
3282 pub mfd: *mut rb_ractor_struct_gc_mark_func_data_struct,
3283}
3284#[repr(C)]
3285#[derive(Copy, Clone)]
3286pub struct rb_ractor_struct__bindgen_ty_1 {
3287 pub set: ccan_list_head,
3288 pub cnt: ::std::os::raw::c_uint,
3289 pub blocking_cnt: ::std::os::raw::c_uint,
3290 pub sleeper: ::std::os::raw::c_uint,
3291 pub sched: rb_thread_sched,
3292 pub running_ec: *mut rb_execution_context_t,
3293 pub main: *mut rb_thread_t,
3294}
3295impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
3296 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3297 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)
3298 }
3299}
3300#[repr(C)]
3301#[derive(Debug, Copy, Clone)]
3302pub struct rb_ractor_struct_gc_mark_func_data_struct {
3303 pub data: *mut ::std::os::raw::c_void,
3304 pub mark_func:
3305 ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
3306}
3307impl ::std::fmt::Debug for rb_ractor_struct {
3308 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3309 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)
3310 }
3311}
3312pub type attr_index_t = u32;
3313#[repr(C)]
3314#[derive(Debug, Copy, Clone)]
3315pub struct rb_subclass_entry {
3316 pub klass: VALUE,
3317 pub next: *mut rb_subclass_entry,
3318 pub prev: *mut rb_subclass_entry,
3319}
3320#[repr(C)]
3321#[derive(Copy, Clone)]
3322pub struct rb_classext_struct {
3323 pub iv_ptr: *mut VALUE,
3324 pub const_tbl: *mut rb_id_table,
3325 pub callable_m_tbl: *mut rb_id_table,
3326 pub cc_tbl: *mut rb_id_table,
3327 pub cvc_tbl: *mut rb_id_table,
3328 pub superclass_depth: usize,
3329 pub superclasses: *mut VALUE,
3330 pub subclasses: *mut rb_subclass_entry,
3331 pub subclass_entry: *mut rb_subclass_entry,
3332 pub module_subclass_entry: *mut rb_subclass_entry,
3333 pub origin_: VALUE,
3334 pub refined_class: VALUE,
3335 pub as_: rb_classext_struct__bindgen_ty_1,
3336 pub includer: VALUE,
3337 pub max_iv_count: attr_index_t,
3338 pub variation_count: ::std::os::raw::c_uchar,
3339 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
3340 pub classpath: VALUE,
3341}
3342#[repr(C)]
3343#[derive(Copy, Clone)]
3344pub union rb_classext_struct__bindgen_ty_1 {
3345 pub class: rb_classext_struct__bindgen_ty_1__bindgen_ty_1,
3346 pub singleton_class: rb_classext_struct__bindgen_ty_1__bindgen_ty_2,
3347}
3348#[repr(C)]
3349#[derive(Debug, Copy, Clone)]
3350pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_1 {
3351 pub allocator: rb_alloc_func_t,
3352}
3353#[repr(C)]
3354#[derive(Debug, Copy, Clone)]
3355pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_2 {
3356 pub attached_object: VALUE,
3357}
3358impl ::std::fmt::Debug for rb_classext_struct__bindgen_ty_1 {
3359 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3360 write!(f, "rb_classext_struct__bindgen_ty_1 {{ union }}")
3361 }
3362}
3363impl ::std::fmt::Debug for rb_classext_struct {
3364 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3365 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)
3366 }
3367}
3368impl rb_classext_struct {
3369 #[inline]
3370 #[allow(unnecessary_transmutes)]
3371 pub fn permanent_classpath(&self) -> bool {
3372 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u8) }
3373 }
3374 #[inline]
3375 #[allow(unnecessary_transmutes)]
3376 pub fn set_permanent_classpath(&mut self, val: bool) {
3377 unsafe {
3378 let val: u8 = ::std::mem::transmute(val);
3379 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
3380 }
3381 }
3382 #[inline]
3383 #[allow(unnecessary_transmutes)]
3384 pub unsafe fn permanent_classpath_raw(this: *const Self) -> bool {
3385 unsafe {
3386 ::std::mem::transmute(
3387 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
3388 ::std::ptr::addr_of!((*this)._bitfield_1),
3389 ) as u8,
3390 )
3391 }
3392 }
3393 #[inline]
3394 #[allow(unnecessary_transmutes)]
3395 pub unsafe fn set_permanent_classpath_raw(this: *mut Self, val: bool) {
3396 unsafe {
3397 let val: u8 = ::std::mem::transmute(val);
3398 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
3399 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3400 val as u64,
3401 )
3402 }
3403 }
3404 #[inline]
3405 #[allow(unnecessary_transmutes)]
3406 pub fn cloned(&self) -> bool {
3407 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u8) }
3408 }
3409 #[inline]
3410 #[allow(unnecessary_transmutes)]
3411 pub fn set_cloned(&mut self, val: bool) {
3412 unsafe {
3413 let val: u8 = ::std::mem::transmute(val);
3414 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
3415 }
3416 }
3417 #[inline]
3418 #[allow(unnecessary_transmutes)]
3419 pub unsafe fn cloned_raw(this: *const Self) -> bool {
3420 unsafe {
3421 ::std::mem::transmute(
3422 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
3423 ::std::ptr::addr_of!((*this)._bitfield_1),
3424 ) as u8,
3425 )
3426 }
3427 }
3428 #[inline]
3429 #[allow(unnecessary_transmutes)]
3430 pub unsafe fn set_cloned_raw(this: *mut Self, val: bool) {
3431 unsafe {
3432 let val: u8 = ::std::mem::transmute(val);
3433 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
3434 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3435 val as u64,
3436 )
3437 }
3438 }
3439 #[inline]
3440 #[allow(unnecessary_transmutes)]
3441 pub fn new_bitfield_1(
3442 permanent_classpath: bool,
3443 cloned: bool,
3444 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
3445 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
3446 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
3447 let permanent_classpath: u8 = unsafe { ::std::mem::transmute(permanent_classpath) };
3448 permanent_classpath as u64
3449 });
3450 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
3451 let cloned: u8 = unsafe { ::std::mem::transmute(cloned) };
3452 cloned as u64
3453 });
3454 __bindgen_bitfield_unit
3455 }
3456}
3457pub type rb_classext_t = rb_classext_struct;
3458#[repr(C)]
3459#[derive(Debug, Copy, Clone)]
3460pub struct RClass {
3461 pub basic: RBasic,
3462 pub super_: VALUE,
3463 pub m_tbl: *mut rb_id_table,
3464}
3465#[repr(C)]
3466#[derive(Copy, Clone)]
3467pub struct RClass_and_rb_classext_t {
3468 pub rclass: RClass,
3469 pub classext: rb_classext_t,
3470}
3471impl ::std::fmt::Debug for RClass_and_rb_classext_t {
3472 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3473 write!(
3474 f,
3475 "RClass_and_rb_classext_t {{ rclass: {:?}, classext: {:?} }}",
3476 self.rclass, self.classext
3477 )
3478 }
3479}
3480#[repr(C)]
3481#[derive(Debug, Copy, Clone)]
3482pub struct iseq_compile_data {
3483 pub err_info: VALUE,
3484 pub catch_table_ary: VALUE,
3485 pub start_label: *mut iseq_label_data,
3486 pub end_label: *mut iseq_label_data,
3487 pub redo_label: *mut iseq_label_data,
3488 pub current_block: *const rb_iseq_t,
3489 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
3490 pub node: iseq_compile_data__bindgen_ty_1,
3491 pub insn: iseq_compile_data__bindgen_ty_2,
3492 pub in_rescue: bool,
3493 pub loopval_popped: ::std::os::raw::c_int,
3494 pub last_line: ::std::os::raw::c_int,
3495 pub label_no: ::std::os::raw::c_int,
3496 pub node_level: ::std::os::raw::c_int,
3497 pub isolated_depth: ::std::os::raw::c_int,
3498 pub ci_index: ::std::os::raw::c_uint,
3499 pub ic_index: ::std::os::raw::c_uint,
3500 pub option: *const rb_compile_option_t,
3501 pub ivar_cache_table: *mut rb_id_table,
3502 pub builtin_function_table: *const rb_builtin_function,
3503 pub root_node: *const NODE,
3504 pub catch_except_p: bool,
3505}
3506#[repr(C)]
3507#[derive(Debug, Copy, Clone)]
3508pub struct iseq_compile_data__bindgen_ty_1 {
3509 pub storage_head: *mut iseq_compile_data_storage,
3510 pub storage_current: *mut iseq_compile_data_storage,
3511}
3512#[repr(C)]
3513#[derive(Debug, Copy, Clone)]
3514pub struct iseq_compile_data__bindgen_ty_2 {
3515 pub storage_head: *mut iseq_compile_data_storage,
3516 pub storage_current: *mut iseq_compile_data_storage,
3517}
3518#[repr(C)]
3519#[derive(Debug, Copy, Clone)]
3520pub struct rb_compile_option_struct {
3521 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
3522 pub debug_level: ::std::os::raw::c_int,
3523}
3524impl rb_compile_option_struct {
3525 #[inline]
3526 #[allow(unnecessary_transmutes)]
3527 pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
3528 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
3529 }
3530 #[inline]
3531 #[allow(unnecessary_transmutes)]
3532 pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
3533 unsafe {
3534 let val: u32 = ::std::mem::transmute(val);
3535 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
3536 }
3537 }
3538 #[inline]
3539 #[allow(unnecessary_transmutes)]
3540 pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
3541 unsafe {
3542 ::std::mem::transmute(
3543 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(
3544 ::std::ptr::addr_of!((*this)._bitfield_1),
3545 ) as u32,
3546 )
3547 }
3548 }
3549 #[inline]
3550 #[allow(unnecessary_transmutes)]
3551 pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3552 unsafe {
3553 let val: u32 = ::std::mem::transmute(val);
3554 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(
3555 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3556 val as u64,
3557 )
3558 }
3559 }
3560 #[inline]
3561 #[allow(unnecessary_transmutes)]
3562 pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
3563 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
3564 }
3565 #[inline]
3566 #[allow(unnecessary_transmutes)]
3567 pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
3568 unsafe {
3569 let val: u32 = ::std::mem::transmute(val);
3570 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
3571 }
3572 }
3573 #[inline]
3574 #[allow(unnecessary_transmutes)]
3575 pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3576 unsafe {
3577 ::std::mem::transmute(
3578 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(
3579 ::std::ptr::addr_of!((*this)._bitfield_1),
3580 ) as u32,
3581 )
3582 }
3583 }
3584 #[inline]
3585 #[allow(unnecessary_transmutes)]
3586 pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3587 unsafe {
3588 let val: u32 = ::std::mem::transmute(val);
3589 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(
3590 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3591 val as u64,
3592 )
3593 }
3594 }
3595 #[inline]
3596 #[allow(unnecessary_transmutes)]
3597 pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3598 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
3599 }
3600 #[inline]
3601 #[allow(unnecessary_transmutes)]
3602 pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3603 unsafe {
3604 let val: u32 = ::std::mem::transmute(val);
3605 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
3606 }
3607 }
3608 #[inline]
3609 #[allow(unnecessary_transmutes)]
3610 pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3611 unsafe {
3612 ::std::mem::transmute(
3613 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(
3614 ::std::ptr::addr_of!((*this)._bitfield_1),
3615 ) as u32,
3616 )
3617 }
3618 }
3619 #[inline]
3620 #[allow(unnecessary_transmutes)]
3621 pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3622 unsafe {
3623 let val: u32 = ::std::mem::transmute(val);
3624 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(
3625 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3626 val as u64,
3627 )
3628 }
3629 }
3630 #[inline]
3631 #[allow(unnecessary_transmutes)]
3632 pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3633 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
3634 }
3635 #[inline]
3636 #[allow(unnecessary_transmutes)]
3637 pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3638 unsafe {
3639 let val: u32 = ::std::mem::transmute(val);
3640 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
3641 }
3642 }
3643 #[inline]
3644 #[allow(unnecessary_transmutes)]
3645 pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3646 unsafe {
3647 ::std::mem::transmute(
3648 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(
3649 ::std::ptr::addr_of!((*this)._bitfield_1),
3650 ) as u32,
3651 )
3652 }
3653 }
3654 #[inline]
3655 #[allow(unnecessary_transmutes)]
3656 pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3657 unsafe {
3658 let val: u32 = ::std::mem::transmute(val);
3659 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(
3660 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3661 val as u64,
3662 )
3663 }
3664 }
3665 #[inline]
3666 #[allow(unnecessary_transmutes)]
3667 pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3668 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
3669 }
3670 #[inline]
3671 #[allow(unnecessary_transmutes)]
3672 pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3673 unsafe {
3674 let val: u32 = ::std::mem::transmute(val);
3675 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
3676 }
3677 }
3678 #[inline]
3679 #[allow(unnecessary_transmutes)]
3680 pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3681 unsafe {
3682 ::std::mem::transmute(
3683 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(
3684 ::std::ptr::addr_of!((*this)._bitfield_1),
3685 ) as u32,
3686 )
3687 }
3688 }
3689 #[inline]
3690 #[allow(unnecessary_transmutes)]
3691 pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3692 unsafe {
3693 let val: u32 = ::std::mem::transmute(val);
3694 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(
3695 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3696 val as u64,
3697 )
3698 }
3699 }
3700 #[inline]
3701 #[allow(unnecessary_transmutes)]
3702 pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3703 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
3704 }
3705 #[inline]
3706 #[allow(unnecessary_transmutes)]
3707 pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3708 unsafe {
3709 let val: u32 = ::std::mem::transmute(val);
3710 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
3711 }
3712 }
3713 #[inline]
3714 #[allow(unnecessary_transmutes)]
3715 pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3716 unsafe {
3717 ::std::mem::transmute(
3718 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<5usize, 1u8>(
3719 ::std::ptr::addr_of!((*this)._bitfield_1),
3720 ) as u32,
3721 )
3722 }
3723 }
3724 #[inline]
3725 #[allow(unnecessary_transmutes)]
3726 pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3727 unsafe {
3728 let val: u32 = ::std::mem::transmute(val);
3729 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<5usize, 1u8>(
3730 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3731 val as u64,
3732 )
3733 }
3734 }
3735 #[inline]
3736 #[allow(unnecessary_transmutes)]
3737 pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3738 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
3739 }
3740 #[inline]
3741 #[allow(unnecessary_transmutes)]
3742 pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3743 unsafe {
3744 let val: u32 = ::std::mem::transmute(val);
3745 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
3746 }
3747 }
3748 #[inline]
3749 #[allow(unnecessary_transmutes)]
3750 pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3751 unsafe {
3752 ::std::mem::transmute(
3753 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<6usize, 1u8>(
3754 ::std::ptr::addr_of!((*this)._bitfield_1),
3755 ) as u32,
3756 )
3757 }
3758 }
3759 #[inline]
3760 #[allow(unnecessary_transmutes)]
3761 pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3762 unsafe {
3763 let val: u32 = ::std::mem::transmute(val);
3764 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<6usize, 1u8>(
3765 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3766 val as u64,
3767 )
3768 }
3769 }
3770 #[inline]
3771 #[allow(unnecessary_transmutes)]
3772 pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3773 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
3774 }
3775 #[inline]
3776 #[allow(unnecessary_transmutes)]
3777 pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3778 unsafe {
3779 let val: u32 = ::std::mem::transmute(val);
3780 self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
3781 }
3782 }
3783 #[inline]
3784 #[allow(unnecessary_transmutes)]
3785 pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3786 unsafe {
3787 ::std::mem::transmute(
3788 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(
3789 ::std::ptr::addr_of!((*this)._bitfield_1),
3790 ) as u32,
3791 )
3792 }
3793 }
3794 #[inline]
3795 #[allow(unnecessary_transmutes)]
3796 pub unsafe fn set_debug_frozen_string_literal_raw(
3797 this: *mut Self,
3798 val: ::std::os::raw::c_uint,
3799 ) {
3800 unsafe {
3801 let val: u32 = ::std::mem::transmute(val);
3802 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(
3803 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3804 val as u64,
3805 )
3806 }
3807 }
3808 #[inline]
3809 #[allow(unnecessary_transmutes)]
3810 pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3811 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) }
3812 }
3813 #[inline]
3814 #[allow(unnecessary_transmutes)]
3815 pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3816 unsafe {
3817 let val: u32 = ::std::mem::transmute(val);
3818 self._bitfield_1.set_const::<8usize, 1u8>(val as u64)
3819 }
3820 }
3821 #[inline]
3822 #[allow(unnecessary_transmutes)]
3823 pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3824 unsafe {
3825 ::std::mem::transmute(
3826 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(
3827 ::std::ptr::addr_of!((*this)._bitfield_1),
3828 ) as u32,
3829 )
3830 }
3831 }
3832 #[inline]
3833 #[allow(unnecessary_transmutes)]
3834 pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3835 unsafe {
3836 let val: u32 = ::std::mem::transmute(val);
3837 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(
3838 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3839 val as u64,
3840 )
3841 }
3842 }
3843 #[inline]
3844 #[allow(unnecessary_transmutes)]
3845 pub fn new_bitfield_1(
3846 inline_const_cache: ::std::os::raw::c_uint,
3847 peephole_optimization: ::std::os::raw::c_uint,
3848 tailcall_optimization: ::std::os::raw::c_uint,
3849 specialized_instruction: ::std::os::raw::c_uint,
3850 operands_unification: ::std::os::raw::c_uint,
3851 instructions_unification: ::std::os::raw::c_uint,
3852 frozen_string_literal: ::std::os::raw::c_uint,
3853 debug_frozen_string_literal: ::std::os::raw::c_uint,
3854 coverage_enabled: ::std::os::raw::c_uint,
3855 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3856 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3857 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
3858 let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3859 inline_const_cache as u64
3860 });
3861 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
3862 let peephole_optimization: u32 =
3863 unsafe { ::std::mem::transmute(peephole_optimization) };
3864 peephole_optimization as u64
3865 });
3866 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
3867 let tailcall_optimization: u32 =
3868 unsafe { ::std::mem::transmute(tailcall_optimization) };
3869 tailcall_optimization as u64
3870 });
3871 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
3872 let specialized_instruction: u32 =
3873 unsafe { ::std::mem::transmute(specialized_instruction) };
3874 specialized_instruction as u64
3875 });
3876 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
3877 let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3878 operands_unification as u64
3879 });
3880 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
3881 let instructions_unification: u32 =
3882 unsafe { ::std::mem::transmute(instructions_unification) };
3883 instructions_unification as u64
3884 });
3885 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
3886 let frozen_string_literal: u32 =
3887 unsafe { ::std::mem::transmute(frozen_string_literal) };
3888 frozen_string_literal as u64
3889 });
3890 __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
3891 let debug_frozen_string_literal: u32 =
3892 unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3893 debug_frozen_string_literal as u64
3894 });
3895 __bindgen_bitfield_unit.set_const::<8usize, 1u8>({
3896 let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3897 coverage_enabled as u64
3898 });
3899 __bindgen_bitfield_unit
3900 }
3901}
3902#[repr(C)]
3903#[derive(Debug, Copy, Clone)]
3904pub struct iseq_insn_info_entry {
3905 pub line_no: ::std::os::raw::c_int,
3906 pub node_id: ::std::os::raw::c_int,
3907 pub events: rb_event_flag_t,
3908}
3909pub const rb_catch_type_CATCH_TYPE_RESCUE: rb_catch_type = 3;
3910pub const rb_catch_type_CATCH_TYPE_ENSURE: rb_catch_type = 5;
3911pub const rb_catch_type_CATCH_TYPE_RETRY: rb_catch_type = 7;
3912pub const rb_catch_type_CATCH_TYPE_BREAK: rb_catch_type = 9;
3913pub const rb_catch_type_CATCH_TYPE_REDO: rb_catch_type = 11;
3914pub const rb_catch_type_CATCH_TYPE_NEXT: rb_catch_type = 13;
3915pub type rb_catch_type = ::std::os::raw::c_uint;
3916#[repr(C)]
3917#[derive(Debug, Copy, Clone)]
3918pub struct iseq_catch_table_entry {
3919 pub type_: rb_catch_type,
3920 pub iseq: *mut rb_iseq_t,
3921 pub start: ::std::os::raw::c_uint,
3922 pub end: ::std::os::raw::c_uint,
3923 pub cont: ::std::os::raw::c_uint,
3924 pub sp: ::std::os::raw::c_uint,
3925}
3926#[repr(C, packed)]
3927pub struct iseq_catch_table {
3928 pub size: ::std::os::raw::c_uint,
3929 pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3930}
3931#[repr(C)]
3932#[derive(Debug)]
3933pub struct iseq_compile_data_storage {
3934 pub next: *mut iseq_compile_data_storage,
3935 pub pos: ::std::os::raw::c_uint,
3936 pub size: ::std::os::raw::c_uint,
3937 pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3938}
3939#[repr(C)]
3940#[derive(Debug, Copy, Clone)]
3941pub struct coroutine_context {
3942 pub _address: u8,
3943}
3944#[repr(C)]
3945#[derive(Debug, Copy, Clone)]
3946pub struct rb_call_data {
3947 pub _address: u8,
3948}
3949#[repr(C)]
3950#[derive(Debug, Copy, Clone)]
3951pub struct succ_index_table {
3952 pub _address: u8,
3953}
3954#[repr(C)]
3955#[derive(Debug, Copy, Clone)]
3956pub struct rb_event_hook_struct {
3957 pub _address: u8,
3958}
3959#[repr(C)]
3960#[derive(Debug, Copy, Clone)]
3961pub struct rb_postponed_job_queue {
3962 pub _address: u8,
3963}
3964#[repr(C)]
3965#[derive(Debug, Copy, Clone)]
3966pub struct RVALUE {
3967 pub _address: u8,
3968}
3969#[repr(C)]
3970#[derive(Debug, Copy, Clone)]
3971pub struct heap_page {
3972 pub _address: u8,
3973}
3974#[repr(C)]
3975#[derive(Debug, Copy, Clone)]
3976pub struct iseq_label_data {
3977 pub _address: u8,
3978}
3979#[repr(C)]
3980#[derive(Debug, Copy, Clone)]
3981pub struct iseq_compile_data_ensure_node_stack {
3982 pub _address: u8,
3983}