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: u8,
1574 pub malloc_stack: u8,
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: u8,
1644 pub is_running_timeslice: u8,
1645 pub enable_mn_threads: u8,
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: u8,
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: u8,
2314 pub is_local: u8,
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 ci_table: *mut st_table,
2364 pub negative_cme_table: *mut rb_id_table,
2365 pub overloaded_cme_table: *mut st_table,
2366 pub constant_cache: *mut rb_id_table,
2367 pub inserting_constant_cache_id: ID,
2368 pub global_cc_cache_table: [*const rb_callcache; 1023usize],
2369 pub default_params: rb_vm_struct__bindgen_ty_3,
2370}
2371#[repr(C)]
2372#[derive(Copy, Clone)]
2373pub struct rb_vm_struct__bindgen_ty_1 {
2374 pub set: ccan_list_head,
2375 pub cnt: ::std::os::raw::c_uint,
2376 pub blocking_cnt: ::std::os::raw::c_uint,
2377 pub main_ractor: *mut rb_ractor_struct,
2378 pub main_thread: *mut rb_thread_struct,
2379 pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
2380 pub sched: rb_vm_struct__bindgen_ty_1__bindgen_ty_2,
2381}
2382#[repr(C)]
2383#[derive(Copy, Clone)]
2384pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2385 pub lock: rb_nativethread_lock_t,
2386 pub lock_owner: *mut rb_ractor_struct,
2387 pub lock_rec: ::std::os::raw::c_uint,
2388 pub terminate_cond: rb_nativethread_cond_t,
2389 pub terminate_waiting: u8,
2390}
2391impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2392 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2393 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)
2394 }
2395}
2396#[repr(C)]
2397#[derive(Copy, Clone)]
2398pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2399 pub lock: rb_nativethread_lock_t,
2400 pub lock_owner: *mut rb_ractor_struct,
2401 pub locked: u8,
2402 pub cond: rb_nativethread_cond_t,
2403 pub snt_cnt: ::std::os::raw::c_uint,
2404 pub dnt_cnt: ::std::os::raw::c_uint,
2405 pub running_cnt: ::std::os::raw::c_uint,
2406 pub max_cpu: ::std::os::raw::c_uint,
2407 pub grq: ccan_list_head,
2408 pub grq_cnt: ::std::os::raw::c_uint,
2409 pub running_threads: ccan_list_head,
2410 pub timeslice_threads: ccan_list_head,
2411 pub zombie_threads: ccan_list_head,
2412 pub timeslice_wait_inf: u8,
2413 pub barrier_complete_cond: rb_nativethread_cond_t,
2414 pub barrier_release_cond: rb_nativethread_cond_t,
2415 pub barrier_waiting: u8,
2416 pub barrier_waiting_cnt: ::std::os::raw::c_uint,
2417 pub barrier_serial: ::std::os::raw::c_uint,
2418}
2419impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2420 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2421 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)
2422 }
2423}
2424impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2425 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2426 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)
2427 }
2428}
2429#[repr(C)]
2430#[derive(Debug, Copy, Clone)]
2431pub struct rb_vm_struct__bindgen_ty_2 {
2432 pub cmd: [VALUE; 65usize],
2433}
2434#[repr(C)]
2435#[derive(Debug, Copy, Clone)]
2436pub struct rb_vm_struct__bindgen_ty_3 {
2437 pub thread_vm_stack_size: usize,
2438 pub thread_machine_stack_size: usize,
2439 pub fiber_vm_stack_size: usize,
2440 pub fiber_machine_stack_size: usize,
2441}
2442impl ::std::fmt::Debug for rb_vm_struct {
2443 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2444 write ! (f , "rb_vm_struct {{ self: {:?}, ractor: {:?}, main_altstack: {:?}, fork_gen: {:?}, waiting_fds: {:?}, ubf_async_safe: {:?}, running : {:?}, thread_abort_on_exception : {:?}, thread_report_on_exception : {:?}, thread_ignore_deadlock : {:?}, mark_object_ary: {:?}, special_exceptions: {:?}, top_self: {:?}, load_path: {:?}, load_path_snapshot: {:?}, load_path_check_cache: {:?}, expanded_load_path: {:?}, loaded_features: {:?}, loaded_features_snapshot: {:?}, loaded_features_realpaths: {:?}, loaded_features_realpath_map: {:?}, loaded_features_index: {:?}, loading_table: {:?}, static_ext_inits: {:?}, trap_list: {:?}, ensure_rollback_table: {:?}, postponed_job_queue: {:?}, src_encoding_index: {:?}, workqueue: {:?}, workqueue_lock: {:?}, orig_progname: {:?}, progname: {:?}, coverages: {:?}, me2counter: {:?}, coverage_mode: {:?}, defined_module_hash: {:?}, objspace: {:?}, at_exit: {:?}, frozen_strings: {:?}, builtin_function_table: {:?}, builtin_inline_index: {:?}, ci_table: {:?}, negative_cme_table: {:?}, overloaded_cme_table: {:?}, constant_cache: {:?}, inserting_constant_cache_id: {:?}, global_cc_cache_table: {:?}, default_params: {:?} }}" , self . self_ , self . ractor , self . main_altstack , self . fork_gen , self . waiting_fds , self . ubf_async_safe , self . running () , self . thread_abort_on_exception () , self . thread_report_on_exception () , self . thread_ignore_deadlock () , self . mark_object_ary , self . special_exceptions , self . top_self , self . load_path , self . load_path_snapshot , self . load_path_check_cache , self . expanded_load_path , self . loaded_features , self . loaded_features_snapshot , self . loaded_features_realpaths , self . loaded_features_realpath_map , self . loaded_features_index , self . loading_table , self . static_ext_inits , self . trap_list , self . ensure_rollback_table , self . postponed_job_queue , self . src_encoding_index , self . workqueue , self . workqueue_lock , self . orig_progname , self . progname , self . coverages , self . me2counter , self . coverage_mode , self . defined_module_hash , self . objspace , self . at_exit , self . frozen_strings , self . builtin_function_table , self . builtin_inline_index , self . ci_table , self . negative_cme_table , self . overloaded_cme_table , self . constant_cache , self . inserting_constant_cache_id , self . global_cc_cache_table , self . default_params)
2445 }
2446}
2447impl rb_vm_struct {
2448 #[inline]
2449 #[allow(unnecessary_transmutes)]
2450 pub fn running(&self) -> ::std::os::raw::c_uint {
2451 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2452 }
2453 #[inline]
2454 #[allow(unnecessary_transmutes)]
2455 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2456 unsafe {
2457 let val: u32 = ::std::mem::transmute(val);
2458 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2459 }
2460 }
2461 #[inline]
2462 #[allow(unnecessary_transmutes)]
2463 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2464 unsafe {
2465 ::std::mem::transmute(
2466 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
2467 ::std::ptr::addr_of!((*this)._bitfield_1),
2468 ) as u32,
2469 )
2470 }
2471 }
2472 #[inline]
2473 #[allow(unnecessary_transmutes)]
2474 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2475 unsafe {
2476 let val: u32 = ::std::mem::transmute(val);
2477 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
2478 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2479 val as u64,
2480 )
2481 }
2482 }
2483 #[inline]
2484 #[allow(unnecessary_transmutes)]
2485 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2486 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2487 }
2488 #[inline]
2489 #[allow(unnecessary_transmutes)]
2490 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2491 unsafe {
2492 let val: u32 = ::std::mem::transmute(val);
2493 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2494 }
2495 }
2496 #[inline]
2497 #[allow(unnecessary_transmutes)]
2498 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2499 unsafe {
2500 ::std::mem::transmute(
2501 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
2502 ::std::ptr::addr_of!((*this)._bitfield_1),
2503 ) as u32,
2504 )
2505 }
2506 }
2507 #[inline]
2508 #[allow(unnecessary_transmutes)]
2509 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2510 unsafe {
2511 let val: u32 = ::std::mem::transmute(val);
2512 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
2513 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2514 val as u64,
2515 )
2516 }
2517 }
2518 #[inline]
2519 #[allow(unnecessary_transmutes)]
2520 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2521 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2522 }
2523 #[inline]
2524 #[allow(unnecessary_transmutes)]
2525 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2526 unsafe {
2527 let val: u32 = ::std::mem::transmute(val);
2528 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2529 }
2530 }
2531 #[inline]
2532 #[allow(unnecessary_transmutes)]
2533 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2534 unsafe {
2535 ::std::mem::transmute(
2536 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2537 ::std::ptr::addr_of!((*this)._bitfield_1),
2538 ) as u32,
2539 )
2540 }
2541 }
2542 #[inline]
2543 #[allow(unnecessary_transmutes)]
2544 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2545 unsafe {
2546 let val: u32 = ::std::mem::transmute(val);
2547 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2548 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2549 val as u64,
2550 )
2551 }
2552 }
2553 #[inline]
2554 #[allow(unnecessary_transmutes)]
2555 pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2556 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2557 }
2558 #[inline]
2559 #[allow(unnecessary_transmutes)]
2560 pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2561 unsafe {
2562 let val: u32 = ::std::mem::transmute(val);
2563 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2564 }
2565 }
2566 #[inline]
2567 #[allow(unnecessary_transmutes)]
2568 pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2569 unsafe {
2570 ::std::mem::transmute(
2571 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
2572 ::std::ptr::addr_of!((*this)._bitfield_1),
2573 ) as u32,
2574 )
2575 }
2576 }
2577 #[inline]
2578 #[allow(unnecessary_transmutes)]
2579 pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2580 unsafe {
2581 let val: u32 = ::std::mem::transmute(val);
2582 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
2583 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2584 val as u64,
2585 )
2586 }
2587 }
2588 #[inline]
2589 #[allow(unnecessary_transmutes)]
2590 pub fn new_bitfield_1(
2591 running: ::std::os::raw::c_uint,
2592 thread_abort_on_exception: ::std::os::raw::c_uint,
2593 thread_report_on_exception: ::std::os::raw::c_uint,
2594 thread_ignore_deadlock: ::std::os::raw::c_uint,
2595 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2596 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2597 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2598 let running: u32 = unsafe { ::std::mem::transmute(running) };
2599 running as u64
2600 });
2601 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2602 let thread_abort_on_exception: u32 =
2603 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2604 thread_abort_on_exception as u64
2605 });
2606 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2607 let thread_report_on_exception: u32 =
2608 unsafe { ::std::mem::transmute(thread_report_on_exception) };
2609 thread_report_on_exception as u64
2610 });
2611 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2612 let thread_ignore_deadlock: u32 =
2613 unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2614 thread_ignore_deadlock as u64
2615 });
2616 __bindgen_bitfield_unit
2617 }
2618}
2619pub type rb_vm_t = rb_vm_struct;
2620#[repr(C)]
2621#[derive(Debug, Copy, Clone)]
2622pub struct rb_control_frame_struct {
2623 pub pc: *const VALUE,
2624 pub sp: *mut VALUE,
2625 pub iseq: *const rb_iseq_t,
2626 pub self_: VALUE,
2627 pub ep: *const VALUE,
2628 pub block_code: *const ::std::os::raw::c_void,
2629 pub jit_return: *mut ::std::os::raw::c_void,
2630}
2631pub type rb_control_frame_t = rb_control_frame_struct;
2632pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2633pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2634pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2635pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2636pub type rb_thread_status = ::std::os::raw::c_uint;
2637pub type rb_jmpbuf_t = sigjmp_buf;
2638pub type rb_vm_tag_jmpbuf_t = rb_jmpbuf_t;
2639#[repr(C)]
2640#[derive(Debug, Copy, Clone)]
2641pub struct rb_vm_tag {
2642 pub tag: VALUE,
2643 pub retval: VALUE,
2644 pub buf: rb_vm_tag_jmpbuf_t,
2645 pub prev: *mut rb_vm_tag,
2646 pub state: ruby_tag_type,
2647 pub lock_rec: ::std::os::raw::c_uint,
2648}
2649#[repr(C)]
2650#[derive(Debug, Copy, Clone)]
2651pub struct rb_unblock_callback {
2652 pub func: rb_unblock_function_t,
2653 pub arg: *mut ::std::os::raw::c_void,
2654}
2655#[repr(C)]
2656#[derive(Debug)]
2657pub struct rb_mutex_struct {
2658 _unused: [u8; 0],
2659}
2660#[repr(C)]
2661#[derive(Debug, Copy, Clone)]
2662pub struct rb_ensure_entry {
2663 pub marker: VALUE,
2664 pub e_proc: ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>,
2665 pub data2: VALUE,
2666}
2667#[repr(C)]
2668#[derive(Debug, Copy, Clone)]
2669pub struct rb_ensure_list {
2670 pub next: *mut rb_ensure_list,
2671 pub entry: rb_ensure_entry,
2672}
2673pub type rb_ensure_list_t = rb_ensure_list;
2674#[repr(C)]
2675#[derive(Debug)]
2676pub struct rb_fiber_struct {
2677 _unused: [u8; 0],
2678}
2679pub type rb_fiber_t = rb_fiber_struct;
2680#[repr(C)]
2681#[derive(Debug, Copy, Clone)]
2682pub struct rb_waiting_list {
2683 pub next: *mut rb_waiting_list,
2684 pub thread: *mut rb_thread_struct,
2685 pub fiber: *mut rb_fiber_struct,
2686}
2687#[repr(C)]
2688#[derive(Debug, Copy, Clone)]
2689pub struct rb_execution_context_struct {
2690 pub vm_stack: *mut VALUE,
2691 pub vm_stack_size: usize,
2692 pub cfp: *mut rb_control_frame_t,
2693 pub tag: *mut rb_vm_tag,
2694 pub interrupt_flag: rb_atomic_t,
2695 pub interrupt_mask: rb_atomic_t,
2696 pub fiber_ptr: *mut rb_fiber_t,
2697 pub thread_ptr: *mut rb_thread_struct,
2698 pub local_storage: *mut rb_id_table,
2699 pub local_storage_recursive_hash: VALUE,
2700 pub local_storage_recursive_hash_for_trace: VALUE,
2701 pub storage: VALUE,
2702 pub root_lep: *const VALUE,
2703 pub root_svar: VALUE,
2704 pub ensure_list: *mut rb_ensure_list_t,
2705 pub trace_arg: *mut rb_trace_arg_struct,
2706 pub errinfo: VALUE,
2707 pub passed_block_handler: VALUE,
2708 pub raised_flag: u8,
2709 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2710 pub private_const_reference: VALUE,
2711 pub machine: rb_execution_context_struct__bindgen_ty_1,
2712}
2713#[repr(C)]
2714#[derive(Debug, Copy, Clone)]
2715pub struct rb_execution_context_struct__bindgen_ty_1 {
2716 pub stack_start: *mut VALUE,
2717 pub stack_end: *mut VALUE,
2718 pub stack_maxsize: usize,
2719 pub regs: jmp_buf,
2720}
2721impl rb_execution_context_struct {
2722 #[inline]
2723 #[allow(unnecessary_transmutes)]
2724 pub fn method_missing_reason(&self) -> method_missing_reason {
2725 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 8u8>() as u32) }
2726 }
2727 #[inline]
2728 #[allow(unnecessary_transmutes)]
2729 pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2730 unsafe {
2731 let val: u32 = ::std::mem::transmute(val);
2732 self._bitfield_1.set_const::<0usize, 8u8>(val as u64)
2733 }
2734 }
2735 #[inline]
2736 #[allow(unnecessary_transmutes)]
2737 pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2738 unsafe {
2739 ::std::mem::transmute(
2740 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 8u8>(
2741 ::std::ptr::addr_of!((*this)._bitfield_1),
2742 ) as u32,
2743 )
2744 }
2745 }
2746 #[inline]
2747 #[allow(unnecessary_transmutes)]
2748 pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2749 unsafe {
2750 let val: u32 = ::std::mem::transmute(val);
2751 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 8u8>(
2752 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2753 val as u64,
2754 )
2755 }
2756 }
2757 #[inline]
2758 #[allow(unnecessary_transmutes)]
2759 pub fn new_bitfield_1(
2760 method_missing_reason: method_missing_reason,
2761 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2762 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2763 __bindgen_bitfield_unit.set_const::<0usize, 8u8>({
2764 let method_missing_reason: u32 =
2765 unsafe { ::std::mem::transmute(method_missing_reason) };
2766 method_missing_reason as u64
2767 });
2768 __bindgen_bitfield_unit
2769 }
2770}
2771pub type rb_execution_context_t = rb_execution_context_struct;
2772#[repr(C)]
2773#[derive(Debug, Copy, Clone)]
2774pub struct rb_ext_config {
2775 pub ractor_safe: u8,
2776}
2777pub type rb_ractor_t = rb_ractor_struct;
2778#[repr(C)]
2779#[derive(Copy, Clone)]
2780pub struct rb_thread_struct {
2781 pub lt_node: ccan_list_node,
2782 pub self_: VALUE,
2783 pub ractor: *mut rb_ractor_t,
2784 pub vm: *mut rb_vm_t,
2785 pub nt: *mut rb_native_thread,
2786 pub ec: *mut rb_execution_context_t,
2787 pub sched: rb_thread_sched_item,
2788 pub serial: rb_atomic_t,
2789 pub last_status: VALUE,
2790 pub calling: *mut rb_calling_info,
2791 pub top_self: VALUE,
2792 pub top_wrapper: VALUE,
2793 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2794 pub priority: i8,
2795 pub running_time_us: u32,
2796 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2797 pub thgroup: VALUE,
2798 pub value: VALUE,
2799 pub pending_interrupt_queue: VALUE,
2800 pub pending_interrupt_mask_stack: VALUE,
2801 pub interrupt_lock: rb_nativethread_lock_t,
2802 pub unblock: rb_unblock_callback,
2803 pub locking_mutex: VALUE,
2804 pub keeping_mutexes: *mut rb_mutex_struct,
2805 pub join_list: *mut rb_waiting_list,
2806 pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2807 pub invoke_type: rb_thread_struct_thread_invoke_type,
2808 pub stat_insn_usage: VALUE,
2809 pub root_fiber: *mut rb_fiber_t,
2810 pub scheduler: VALUE,
2811 pub blocking: ::std::os::raw::c_uint,
2812 pub name: VALUE,
2813 pub specific_storage: *mut *mut ::std::os::raw::c_void,
2814 pub ext_config: rb_ext_config,
2815}
2816#[repr(C)]
2817#[derive(Copy, Clone)]
2818pub union rb_thread_struct__bindgen_ty_1 {
2819 pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2820 pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2821}
2822#[repr(C)]
2823#[derive(Debug, Copy, Clone)]
2824pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2825 pub proc_: VALUE,
2826 pub args: VALUE,
2827 pub kw_splat: ::std::os::raw::c_int,
2828}
2829#[repr(C)]
2830#[derive(Debug, Copy, Clone)]
2831pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2832 pub func:
2833 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
2834 pub arg: *mut ::std::os::raw::c_void,
2835}
2836impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2837 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2838 write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2839 }
2840}
2841pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
2842 rb_thread_struct_thread_invoke_type = 0;
2843pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
2844 rb_thread_struct_thread_invoke_type = 1;
2845pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
2846 rb_thread_struct_thread_invoke_type = 2;
2847pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
2848 rb_thread_struct_thread_invoke_type = 3;
2849pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
2850impl ::std::fmt::Debug for rb_thread_struct {
2851 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2852 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)
2853 }
2854}
2855impl rb_thread_struct {
2856 #[inline]
2857 #[allow(unnecessary_transmutes)]
2858 pub fn status(&self) -> rb_thread_status {
2859 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 2u8>() as u32) }
2860 }
2861 #[inline]
2862 #[allow(unnecessary_transmutes)]
2863 pub fn set_status(&mut self, val: rb_thread_status) {
2864 unsafe {
2865 let val: u32 = ::std::mem::transmute(val);
2866 self._bitfield_1.set_const::<0usize, 2u8>(val as u64)
2867 }
2868 }
2869 #[inline]
2870 #[allow(unnecessary_transmutes)]
2871 pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2872 unsafe {
2873 ::std::mem::transmute(
2874 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 2u8>(
2875 ::std::ptr::addr_of!((*this)._bitfield_1),
2876 ) as u32,
2877 )
2878 }
2879 }
2880 #[inline]
2881 #[allow(unnecessary_transmutes)]
2882 pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2883 unsafe {
2884 let val: u32 = ::std::mem::transmute(val);
2885 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 2u8>(
2886 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2887 val as u64,
2888 )
2889 }
2890 }
2891 #[inline]
2892 #[allow(unnecessary_transmutes)]
2893 pub fn has_dedicated_nt(&self) -> ::std::os::raw::c_uint {
2894 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2895 }
2896 #[inline]
2897 #[allow(unnecessary_transmutes)]
2898 pub fn set_has_dedicated_nt(&mut self, val: ::std::os::raw::c_uint) {
2899 unsafe {
2900 let val: u32 = ::std::mem::transmute(val);
2901 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2902 }
2903 }
2904 #[inline]
2905 #[allow(unnecessary_transmutes)]
2906 pub unsafe fn has_dedicated_nt_raw(this: *const Self) -> ::std::os::raw::c_uint {
2907 unsafe {
2908 ::std::mem::transmute(
2909 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2910 ::std::ptr::addr_of!((*this)._bitfield_1),
2911 ) as u32,
2912 )
2913 }
2914 }
2915 #[inline]
2916 #[allow(unnecessary_transmutes)]
2917 pub unsafe fn set_has_dedicated_nt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2918 unsafe {
2919 let val: u32 = ::std::mem::transmute(val);
2920 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2921 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2922 val as u64,
2923 )
2924 }
2925 }
2926 #[inline]
2927 #[allow(unnecessary_transmutes)]
2928 pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2929 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2930 }
2931 #[inline]
2932 #[allow(unnecessary_transmutes)]
2933 pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2934 unsafe {
2935 let val: u32 = ::std::mem::transmute(val);
2936 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2937 }
2938 }
2939 #[inline]
2940 #[allow(unnecessary_transmutes)]
2941 pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2942 unsafe {
2943 ::std::mem::transmute(
2944 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
2945 ::std::ptr::addr_of!((*this)._bitfield_1),
2946 ) as u32,
2947 )
2948 }
2949 }
2950 #[inline]
2951 #[allow(unnecessary_transmutes)]
2952 pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2953 unsafe {
2954 let val: u32 = ::std::mem::transmute(val);
2955 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
2956 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2957 val as u64,
2958 )
2959 }
2960 }
2961 #[inline]
2962 #[allow(unnecessary_transmutes)]
2963 pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2964 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
2965 }
2966 #[inline]
2967 #[allow(unnecessary_transmutes)]
2968 pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2969 unsafe {
2970 let val: u32 = ::std::mem::transmute(val);
2971 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
2972 }
2973 }
2974 #[inline]
2975 #[allow(unnecessary_transmutes)]
2976 pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2977 unsafe {
2978 ::std::mem::transmute(
2979 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
2980 ::std::ptr::addr_of!((*this)._bitfield_1),
2981 ) as u32,
2982 )
2983 }
2984 }
2985 #[inline]
2986 #[allow(unnecessary_transmutes)]
2987 pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2988 unsafe {
2989 let val: u32 = ::std::mem::transmute(val);
2990 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
2991 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2992 val as u64,
2993 )
2994 }
2995 }
2996 #[inline]
2997 #[allow(unnecessary_transmutes)]
2998 pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2999 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
3000 }
3001 #[inline]
3002 #[allow(unnecessary_transmutes)]
3003 pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
3004 unsafe {
3005 let val: u32 = ::std::mem::transmute(val);
3006 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
3007 }
3008 }
3009 #[inline]
3010 #[allow(unnecessary_transmutes)]
3011 pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
3012 unsafe {
3013 ::std::mem::transmute(
3014 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
3015 ::std::ptr::addr_of!((*this)._bitfield_1),
3016 ) as u32,
3017 )
3018 }
3019 }
3020 #[inline]
3021 #[allow(unnecessary_transmutes)]
3022 pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3023 unsafe {
3024 let val: u32 = ::std::mem::transmute(val);
3025 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
3026 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3027 val as u64,
3028 )
3029 }
3030 }
3031 #[inline]
3032 #[allow(unnecessary_transmutes)]
3033 pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
3034 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
3035 }
3036 #[inline]
3037 #[allow(unnecessary_transmutes)]
3038 pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
3039 unsafe {
3040 let val: u32 = ::std::mem::transmute(val);
3041 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
3042 }
3043 }
3044 #[inline]
3045 #[allow(unnecessary_transmutes)]
3046 pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
3047 unsafe {
3048 ::std::mem::transmute(
3049 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(
3050 ::std::ptr::addr_of!((*this)._bitfield_1),
3051 ) as u32,
3052 )
3053 }
3054 }
3055 #[inline]
3056 #[allow(unnecessary_transmutes)]
3057 pub unsafe fn set_pending_interrupt_queue_checked_raw(
3058 this: *mut Self,
3059 val: ::std::os::raw::c_uint,
3060 ) {
3061 unsafe {
3062 let val: u32 = ::std::mem::transmute(val);
3063 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(
3064 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3065 val as u64,
3066 )
3067 }
3068 }
3069 #[inline]
3070 #[allow(unnecessary_transmutes)]
3071 pub fn new_bitfield_1(
3072 status: rb_thread_status,
3073 has_dedicated_nt: ::std::os::raw::c_uint,
3074 to_kill: ::std::os::raw::c_uint,
3075 abort_on_exception: ::std::os::raw::c_uint,
3076 report_on_exception: ::std::os::raw::c_uint,
3077 pending_interrupt_queue_checked: ::std::os::raw::c_uint,
3078 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
3079 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
3080 __bindgen_bitfield_unit.set_const::<0usize, 2u8>({
3081 let status: u32 = unsafe { ::std::mem::transmute(status) };
3082 status as u64
3083 });
3084 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
3085 let has_dedicated_nt: u32 = unsafe { ::std::mem::transmute(has_dedicated_nt) };
3086 has_dedicated_nt as u64
3087 });
3088 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
3089 let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
3090 to_kill as u64
3091 });
3092 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
3093 let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
3094 abort_on_exception as u64
3095 });
3096 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
3097 let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
3098 report_on_exception as u64
3099 });
3100 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
3101 let pending_interrupt_queue_checked: u32 =
3102 unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
3103 pending_interrupt_queue_checked as u64
3104 });
3105 __bindgen_bitfield_unit
3106 }
3107}
3108pub type rb_thread_t = rb_thread_struct;
3109#[repr(C)]
3110#[derive(Debug, Copy, Clone)]
3111pub struct rb_trace_arg_struct {
3112 pub event: rb_event_flag_t,
3113 pub ec: *mut rb_execution_context_t,
3114 pub cfp: *const rb_control_frame_t,
3115 pub self_: VALUE,
3116 pub id: ID,
3117 pub called_id: ID,
3118 pub klass: VALUE,
3119 pub data: VALUE,
3120 pub klass_solved: ::std::os::raw::c_int,
3121 pub lineno: ::std::os::raw::c_int,
3122 pub path: VALUE,
3123}
3124#[repr(C)]
3125#[derive(Debug, Copy, Clone)]
3126pub struct rb_ractor_pub {
3127 pub self_: VALUE,
3128 pub id: u32,
3129 pub hooks: rb_hook_list_t,
3130}
3131#[repr(C)]
3132#[derive(Debug, Copy, Clone)]
3133pub struct ractor_newobj_size_pool_cache {
3134 pub freelist: *mut RVALUE,
3135 pub using_page: *mut heap_page,
3136}
3137pub type rb_ractor_newobj_size_pool_cache_t = ractor_newobj_size_pool_cache;
3138#[repr(C)]
3139#[derive(Debug, Copy, Clone)]
3140pub struct ractor_newobj_cache {
3141 pub incremental_mark_step_allocated_slots: usize,
3142 pub size_pool_caches: [rb_ractor_newobj_size_pool_cache_t; 5usize],
3143}
3144pub type rb_ractor_newobj_cache_t = ractor_newobj_cache;
3145pub const rb_ractor_basket_type_basket_type_none: rb_ractor_basket_type = 0;
3146pub const rb_ractor_basket_type_basket_type_ref: rb_ractor_basket_type = 1;
3147pub const rb_ractor_basket_type_basket_type_copy: rb_ractor_basket_type = 2;
3148pub const rb_ractor_basket_type_basket_type_move: rb_ractor_basket_type = 3;
3149pub const rb_ractor_basket_type_basket_type_will: rb_ractor_basket_type = 4;
3150pub const rb_ractor_basket_type_basket_type_deleted: rb_ractor_basket_type = 5;
3151pub const rb_ractor_basket_type_basket_type_reserved: rb_ractor_basket_type = 6;
3152pub const rb_ractor_basket_type_basket_type_take_basket: rb_ractor_basket_type = 7;
3153pub const rb_ractor_basket_type_basket_type_yielding: rb_ractor_basket_type = 8;
3154pub type rb_ractor_basket_type = ::std::os::raw::c_uint;
3155#[repr(C)]
3156#[derive(Debug, Copy, Clone)]
3157pub struct rb_ractor_selector_take_config {
3158 pub closed: u8,
3159 pub oneshot: u8,
3160}
3161#[repr(C)]
3162#[derive(Copy, Clone)]
3163pub struct rb_ractor_basket {
3164 pub type_: rb_ractor_basket__bindgen_ty_1,
3165 pub sender: VALUE,
3166 pub p: rb_ractor_basket__bindgen_ty_2,
3167}
3168#[repr(C)]
3169#[derive(Copy, Clone)]
3170pub union rb_ractor_basket__bindgen_ty_1 {
3171 pub e: rb_ractor_basket_type,
3172 pub atomic: rb_atomic_t,
3173}
3174impl ::std::fmt::Debug for rb_ractor_basket__bindgen_ty_1 {
3175 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3176 write!(f, "rb_ractor_basket__bindgen_ty_1 {{ union }}")
3177 }
3178}
3179#[repr(C)]
3180#[derive(Copy, Clone)]
3181pub union rb_ractor_basket__bindgen_ty_2 {
3182 pub send: rb_ractor_basket__bindgen_ty_2__bindgen_ty_1,
3183 pub take: rb_ractor_basket__bindgen_ty_2__bindgen_ty_2,
3184}
3185#[repr(C)]
3186#[derive(Debug, Copy, Clone)]
3187pub struct rb_ractor_basket__bindgen_ty_2__bindgen_ty_1 {
3188 pub v: VALUE,
3189 pub exception: u8,
3190}
3191#[repr(C)]
3192#[derive(Debug, Copy, Clone)]
3193pub struct rb_ractor_basket__bindgen_ty_2__bindgen_ty_2 {
3194 pub basket: *mut rb_ractor_basket,
3195 pub config: *mut rb_ractor_selector_take_config,
3196}
3197impl ::std::fmt::Debug for rb_ractor_basket__bindgen_ty_2 {
3198 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3199 write!(f, "rb_ractor_basket__bindgen_ty_2 {{ union }}")
3200 }
3201}
3202impl ::std::fmt::Debug for rb_ractor_basket {
3203 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3204 write!(
3205 f,
3206 "rb_ractor_basket {{ type: {:?}, sender: {:?}, p: {:?} }}",
3207 self.type_, self.sender, self.p
3208 )
3209 }
3210}
3211#[repr(C)]
3212#[derive(Debug, Copy, Clone)]
3213pub struct rb_ractor_queue {
3214 pub baskets: *mut rb_ractor_basket,
3215 pub start: ::std::os::raw::c_int,
3216 pub cnt: ::std::os::raw::c_int,
3217 pub size: ::std::os::raw::c_int,
3218 pub serial: ::std::os::raw::c_uint,
3219 pub reserved_cnt: ::std::os::raw::c_uint,
3220}
3221pub const rb_ractor_wait_status_wait_none: rb_ractor_wait_status = 0;
3222pub const rb_ractor_wait_status_wait_receiving: rb_ractor_wait_status = 1;
3223pub const rb_ractor_wait_status_wait_taking: rb_ractor_wait_status = 2;
3224pub const rb_ractor_wait_status_wait_yielding: rb_ractor_wait_status = 4;
3225pub const rb_ractor_wait_status_wait_moving: rb_ractor_wait_status = 8;
3226pub type rb_ractor_wait_status = ::std::os::raw::c_uint;
3227pub const rb_ractor_wakeup_status_wakeup_none: rb_ractor_wakeup_status = 0;
3228pub const rb_ractor_wakeup_status_wakeup_by_send: rb_ractor_wakeup_status = 1;
3229pub const rb_ractor_wakeup_status_wakeup_by_yield: rb_ractor_wakeup_status = 2;
3230pub const rb_ractor_wakeup_status_wakeup_by_take: rb_ractor_wakeup_status = 3;
3231pub const rb_ractor_wakeup_status_wakeup_by_close: rb_ractor_wakeup_status = 4;
3232pub const rb_ractor_wakeup_status_wakeup_by_interrupt: rb_ractor_wakeup_status = 5;
3233pub const rb_ractor_wakeup_status_wakeup_by_retry: rb_ractor_wakeup_status = 6;
3234pub type rb_ractor_wakeup_status = ::std::os::raw::c_uint;
3235#[repr(C)]
3236#[derive(Copy, Clone)]
3237pub struct rb_ractor_sync {
3238 pub lock: rb_nativethread_lock_t,
3239 pub incoming_port_closed: u8,
3240 pub outgoing_port_closed: u8,
3241 pub recv_queue: rb_ractor_queue,
3242 pub takers_queue: rb_ractor_queue,
3243 pub will_basket: rb_ractor_basket,
3244 pub wait: rb_ractor_sync_ractor_wait,
3245}
3246#[repr(C)]
3247#[derive(Debug, Copy, Clone)]
3248pub struct rb_ractor_sync_ractor_wait {
3249 pub status: rb_ractor_wait_status,
3250 pub wakeup_status: rb_ractor_wakeup_status,
3251 pub waiting_thread: *mut rb_thread_t,
3252}
3253impl ::std::fmt::Debug for rb_ractor_sync {
3254 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3255 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)
3256 }
3257}
3258pub const ractor_status_ractor_created: ractor_status = 0;
3259pub const ractor_status_ractor_running: ractor_status = 1;
3260pub const ractor_status_ractor_blocking: ractor_status = 2;
3261pub const ractor_status_ractor_terminated: ractor_status = 3;
3262pub type ractor_status = ::std::os::raw::c_uint;
3263#[repr(C)]
3264#[derive(Copy, Clone)]
3265pub struct rb_ractor_struct {
3266 pub pub_: rb_ractor_pub,
3267 pub sync: rb_ractor_sync,
3268 pub receiving_mutex: VALUE,
3269 pub barrier_wait_cond: rb_nativethread_cond_t,
3270 pub threads: rb_ractor_struct__bindgen_ty_1,
3271 pub thgroup_default: VALUE,
3272 pub name: VALUE,
3273 pub loc: VALUE,
3274 pub status_: ractor_status,
3275 pub vmlr_node: ccan_list_node,
3276 pub local_storage: *mut st_table,
3277 pub idkey_local_storage: *mut rb_id_table,
3278 pub r_stdin: VALUE,
3279 pub r_stdout: VALUE,
3280 pub r_stderr: VALUE,
3281 pub verbose: VALUE,
3282 pub debug: VALUE,
3283 pub newobj_cache: rb_ractor_newobj_cache_t,
3284 pub mfd: *mut rb_ractor_struct_gc_mark_func_data_struct,
3285}
3286#[repr(C)]
3287#[derive(Copy, Clone)]
3288pub struct rb_ractor_struct__bindgen_ty_1 {
3289 pub set: ccan_list_head,
3290 pub cnt: ::std::os::raw::c_uint,
3291 pub blocking_cnt: ::std::os::raw::c_uint,
3292 pub sleeper: ::std::os::raw::c_uint,
3293 pub sched: rb_thread_sched,
3294 pub running_ec: *mut rb_execution_context_t,
3295 pub main: *mut rb_thread_t,
3296}
3297impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
3298 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3299 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)
3300 }
3301}
3302#[repr(C)]
3303#[derive(Debug, Copy, Clone)]
3304pub struct rb_ractor_struct_gc_mark_func_data_struct {
3305 pub data: *mut ::std::os::raw::c_void,
3306 pub mark_func:
3307 ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
3308}
3309impl ::std::fmt::Debug for rb_ractor_struct {
3310 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3311 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)
3312 }
3313}
3314pub type attr_index_t = u32;
3315#[repr(C)]
3316#[derive(Debug, Copy, Clone)]
3317pub struct rb_subclass_entry {
3318 pub klass: VALUE,
3319 pub next: *mut rb_subclass_entry,
3320 pub prev: *mut rb_subclass_entry,
3321}
3322#[repr(C)]
3323#[derive(Copy, Clone)]
3324pub struct rb_classext_struct {
3325 pub iv_ptr: *mut VALUE,
3326 pub const_tbl: *mut rb_id_table,
3327 pub callable_m_tbl: *mut rb_id_table,
3328 pub cc_tbl: *mut rb_id_table,
3329 pub cvc_tbl: *mut rb_id_table,
3330 pub superclass_depth: usize,
3331 pub superclasses: *mut VALUE,
3332 pub subclasses: *mut rb_subclass_entry,
3333 pub subclass_entry: *mut rb_subclass_entry,
3334 pub module_subclass_entry: *mut rb_subclass_entry,
3335 pub origin_: VALUE,
3336 pub refined_class: VALUE,
3337 pub as_: rb_classext_struct__bindgen_ty_1,
3338 pub includer: VALUE,
3339 pub max_iv_count: attr_index_t,
3340 pub variation_count: ::std::os::raw::c_uchar,
3341 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
3342 pub classpath: VALUE,
3343}
3344#[repr(C)]
3345#[derive(Copy, Clone)]
3346pub union rb_classext_struct__bindgen_ty_1 {
3347 pub class: rb_classext_struct__bindgen_ty_1__bindgen_ty_1,
3348 pub singleton_class: rb_classext_struct__bindgen_ty_1__bindgen_ty_2,
3349}
3350#[repr(C)]
3351#[derive(Debug, Copy, Clone)]
3352pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_1 {
3353 pub allocator: rb_alloc_func_t,
3354}
3355#[repr(C)]
3356#[derive(Debug, Copy, Clone)]
3357pub struct rb_classext_struct__bindgen_ty_1__bindgen_ty_2 {
3358 pub attached_object: VALUE,
3359}
3360impl ::std::fmt::Debug for rb_classext_struct__bindgen_ty_1 {
3361 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3362 write!(f, "rb_classext_struct__bindgen_ty_1 {{ union }}")
3363 }
3364}
3365impl ::std::fmt::Debug for rb_classext_struct {
3366 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3367 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)
3368 }
3369}
3370impl rb_classext_struct {
3371 #[inline]
3372 #[allow(unnecessary_transmutes)]
3373 pub fn permanent_classpath(&self) -> bool {
3374 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u8) }
3375 }
3376 #[inline]
3377 #[allow(unnecessary_transmutes)]
3378 pub fn set_permanent_classpath(&mut self, val: bool) {
3379 unsafe {
3380 let val: u8 = ::std::mem::transmute(val);
3381 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
3382 }
3383 }
3384 #[inline]
3385 #[allow(unnecessary_transmutes)]
3386 pub unsafe fn permanent_classpath_raw(this: *const Self) -> bool {
3387 unsafe {
3388 ::std::mem::transmute(
3389 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
3390 ::std::ptr::addr_of!((*this)._bitfield_1),
3391 ) as u8,
3392 )
3393 }
3394 }
3395 #[inline]
3396 #[allow(unnecessary_transmutes)]
3397 pub unsafe fn set_permanent_classpath_raw(this: *mut Self, val: bool) {
3398 unsafe {
3399 let val: u8 = ::std::mem::transmute(val);
3400 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
3401 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3402 val as u64,
3403 )
3404 }
3405 }
3406 #[inline]
3407 #[allow(unnecessary_transmutes)]
3408 pub fn cloned(&self) -> bool {
3409 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u8) }
3410 }
3411 #[inline]
3412 #[allow(unnecessary_transmutes)]
3413 pub fn set_cloned(&mut self, val: bool) {
3414 unsafe {
3415 let val: u8 = ::std::mem::transmute(val);
3416 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
3417 }
3418 }
3419 #[inline]
3420 #[allow(unnecessary_transmutes)]
3421 pub unsafe fn cloned_raw(this: *const Self) -> bool {
3422 unsafe {
3423 ::std::mem::transmute(
3424 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
3425 ::std::ptr::addr_of!((*this)._bitfield_1),
3426 ) as u8,
3427 )
3428 }
3429 }
3430 #[inline]
3431 #[allow(unnecessary_transmutes)]
3432 pub unsafe fn set_cloned_raw(this: *mut Self, val: bool) {
3433 unsafe {
3434 let val: u8 = ::std::mem::transmute(val);
3435 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
3436 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3437 val as u64,
3438 )
3439 }
3440 }
3441 #[inline]
3442 #[allow(unnecessary_transmutes)]
3443 pub fn new_bitfield_1(
3444 permanent_classpath: bool,
3445 cloned: bool,
3446 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
3447 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
3448 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
3449 let permanent_classpath: u8 = unsafe { ::std::mem::transmute(permanent_classpath) };
3450 permanent_classpath as u64
3451 });
3452 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
3453 let cloned: u8 = unsafe { ::std::mem::transmute(cloned) };
3454 cloned as u64
3455 });
3456 __bindgen_bitfield_unit
3457 }
3458}
3459pub type rb_classext_t = rb_classext_struct;
3460#[repr(C)]
3461#[derive(Debug, Copy, Clone)]
3462pub struct RClass {
3463 pub basic: RBasic,
3464 pub super_: VALUE,
3465 pub m_tbl: *mut rb_id_table,
3466}
3467#[repr(C)]
3468#[derive(Copy, Clone)]
3469pub struct RClass_and_rb_classext_t {
3470 pub rclass: RClass,
3471 pub classext: rb_classext_t,
3472}
3473impl ::std::fmt::Debug for RClass_and_rb_classext_t {
3474 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3475 write!(
3476 f,
3477 "RClass_and_rb_classext_t {{ rclass: {:?}, classext: {:?} }}",
3478 self.rclass, self.classext
3479 )
3480 }
3481}
3482#[repr(C)]
3483#[derive(Debug, Copy, Clone)]
3484pub struct iseq_compile_data {
3485 pub err_info: VALUE,
3486 pub catch_table_ary: VALUE,
3487 pub start_label: *mut iseq_label_data,
3488 pub end_label: *mut iseq_label_data,
3489 pub redo_label: *mut iseq_label_data,
3490 pub current_block: *const rb_iseq_t,
3491 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
3492 pub node: iseq_compile_data__bindgen_ty_1,
3493 pub insn: iseq_compile_data__bindgen_ty_2,
3494 pub in_rescue: u8,
3495 pub in_masgn: u8,
3496 pub loopval_popped: ::std::os::raw::c_int,
3497 pub last_line: ::std::os::raw::c_int,
3498 pub label_no: ::std::os::raw::c_int,
3499 pub node_level: ::std::os::raw::c_int,
3500 pub isolated_depth: ::std::os::raw::c_int,
3501 pub ci_index: ::std::os::raw::c_uint,
3502 pub ic_index: ::std::os::raw::c_uint,
3503 pub option: *const rb_compile_option_t,
3504 pub ivar_cache_table: *mut rb_id_table,
3505 pub builtin_function_table: *const rb_builtin_function,
3506 pub root_node: *const NODE,
3507 pub catch_except_p: u8,
3508}
3509#[repr(C)]
3510#[derive(Debug, Copy, Clone)]
3511pub struct iseq_compile_data__bindgen_ty_1 {
3512 pub storage_head: *mut iseq_compile_data_storage,
3513 pub storage_current: *mut iseq_compile_data_storage,
3514}
3515#[repr(C)]
3516#[derive(Debug, Copy, Clone)]
3517pub struct iseq_compile_data__bindgen_ty_2 {
3518 pub storage_head: *mut iseq_compile_data_storage,
3519 pub storage_current: *mut iseq_compile_data_storage,
3520}
3521#[repr(C)]
3522#[derive(Debug, Copy, Clone)]
3523pub struct rb_compile_option_struct {
3524 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
3525 pub debug_level: ::std::os::raw::c_int,
3526}
3527impl rb_compile_option_struct {
3528 #[inline]
3529 #[allow(unnecessary_transmutes)]
3530 pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
3531 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
3532 }
3533 #[inline]
3534 #[allow(unnecessary_transmutes)]
3535 pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
3536 unsafe {
3537 let val: u32 = ::std::mem::transmute(val);
3538 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
3539 }
3540 }
3541 #[inline]
3542 #[allow(unnecessary_transmutes)]
3543 pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
3544 unsafe {
3545 ::std::mem::transmute(
3546 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(
3547 ::std::ptr::addr_of!((*this)._bitfield_1),
3548 ) as u32,
3549 )
3550 }
3551 }
3552 #[inline]
3553 #[allow(unnecessary_transmutes)]
3554 pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3555 unsafe {
3556 let val: u32 = ::std::mem::transmute(val);
3557 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(
3558 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3559 val as u64,
3560 )
3561 }
3562 }
3563 #[inline]
3564 #[allow(unnecessary_transmutes)]
3565 pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
3566 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
3567 }
3568 #[inline]
3569 #[allow(unnecessary_transmutes)]
3570 pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
3571 unsafe {
3572 let val: u32 = ::std::mem::transmute(val);
3573 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
3574 }
3575 }
3576 #[inline]
3577 #[allow(unnecessary_transmutes)]
3578 pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3579 unsafe {
3580 ::std::mem::transmute(
3581 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(
3582 ::std::ptr::addr_of!((*this)._bitfield_1),
3583 ) as u32,
3584 )
3585 }
3586 }
3587 #[inline]
3588 #[allow(unnecessary_transmutes)]
3589 pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3590 unsafe {
3591 let val: u32 = ::std::mem::transmute(val);
3592 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(
3593 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3594 val as u64,
3595 )
3596 }
3597 }
3598 #[inline]
3599 #[allow(unnecessary_transmutes)]
3600 pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3601 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
3602 }
3603 #[inline]
3604 #[allow(unnecessary_transmutes)]
3605 pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3606 unsafe {
3607 let val: u32 = ::std::mem::transmute(val);
3608 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
3609 }
3610 }
3611 #[inline]
3612 #[allow(unnecessary_transmutes)]
3613 pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3614 unsafe {
3615 ::std::mem::transmute(
3616 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(
3617 ::std::ptr::addr_of!((*this)._bitfield_1),
3618 ) as u32,
3619 )
3620 }
3621 }
3622 #[inline]
3623 #[allow(unnecessary_transmutes)]
3624 pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3625 unsafe {
3626 let val: u32 = ::std::mem::transmute(val);
3627 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(
3628 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3629 val as u64,
3630 )
3631 }
3632 }
3633 #[inline]
3634 #[allow(unnecessary_transmutes)]
3635 pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3636 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
3637 }
3638 #[inline]
3639 #[allow(unnecessary_transmutes)]
3640 pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3641 unsafe {
3642 let val: u32 = ::std::mem::transmute(val);
3643 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
3644 }
3645 }
3646 #[inline]
3647 #[allow(unnecessary_transmutes)]
3648 pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3649 unsafe {
3650 ::std::mem::transmute(
3651 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(
3652 ::std::ptr::addr_of!((*this)._bitfield_1),
3653 ) as u32,
3654 )
3655 }
3656 }
3657 #[inline]
3658 #[allow(unnecessary_transmutes)]
3659 pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3660 unsafe {
3661 let val: u32 = ::std::mem::transmute(val);
3662 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(
3663 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3664 val as u64,
3665 )
3666 }
3667 }
3668 #[inline]
3669 #[allow(unnecessary_transmutes)]
3670 pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3671 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
3672 }
3673 #[inline]
3674 #[allow(unnecessary_transmutes)]
3675 pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3676 unsafe {
3677 let val: u32 = ::std::mem::transmute(val);
3678 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
3679 }
3680 }
3681 #[inline]
3682 #[allow(unnecessary_transmutes)]
3683 pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3684 unsafe {
3685 ::std::mem::transmute(
3686 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(
3687 ::std::ptr::addr_of!((*this)._bitfield_1),
3688 ) as u32,
3689 )
3690 }
3691 }
3692 #[inline]
3693 #[allow(unnecessary_transmutes)]
3694 pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3695 unsafe {
3696 let val: u32 = ::std::mem::transmute(val);
3697 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(
3698 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3699 val as u64,
3700 )
3701 }
3702 }
3703 #[inline]
3704 #[allow(unnecessary_transmutes)]
3705 pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3706 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
3707 }
3708 #[inline]
3709 #[allow(unnecessary_transmutes)]
3710 pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3711 unsafe {
3712 let val: u32 = ::std::mem::transmute(val);
3713 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
3714 }
3715 }
3716 #[inline]
3717 #[allow(unnecessary_transmutes)]
3718 pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3719 unsafe {
3720 ::std::mem::transmute(
3721 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<5usize, 1u8>(
3722 ::std::ptr::addr_of!((*this)._bitfield_1),
3723 ) as u32,
3724 )
3725 }
3726 }
3727 #[inline]
3728 #[allow(unnecessary_transmutes)]
3729 pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3730 unsafe {
3731 let val: u32 = ::std::mem::transmute(val);
3732 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<5usize, 1u8>(
3733 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3734 val as u64,
3735 )
3736 }
3737 }
3738 #[inline]
3739 #[allow(unnecessary_transmutes)]
3740 pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3741 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
3742 }
3743 #[inline]
3744 #[allow(unnecessary_transmutes)]
3745 pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3746 unsafe {
3747 let val: u32 = ::std::mem::transmute(val);
3748 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
3749 }
3750 }
3751 #[inline]
3752 #[allow(unnecessary_transmutes)]
3753 pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3754 unsafe {
3755 ::std::mem::transmute(
3756 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<6usize, 1u8>(
3757 ::std::ptr::addr_of!((*this)._bitfield_1),
3758 ) as u32,
3759 )
3760 }
3761 }
3762 #[inline]
3763 #[allow(unnecessary_transmutes)]
3764 pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3765 unsafe {
3766 let val: u32 = ::std::mem::transmute(val);
3767 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<6usize, 1u8>(
3768 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3769 val as u64,
3770 )
3771 }
3772 }
3773 #[inline]
3774 #[allow(unnecessary_transmutes)]
3775 pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3776 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
3777 }
3778 #[inline]
3779 #[allow(unnecessary_transmutes)]
3780 pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3781 unsafe {
3782 let val: u32 = ::std::mem::transmute(val);
3783 self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
3784 }
3785 }
3786 #[inline]
3787 #[allow(unnecessary_transmutes)]
3788 pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3789 unsafe {
3790 ::std::mem::transmute(
3791 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(
3792 ::std::ptr::addr_of!((*this)._bitfield_1),
3793 ) as u32,
3794 )
3795 }
3796 }
3797 #[inline]
3798 #[allow(unnecessary_transmutes)]
3799 pub unsafe fn set_debug_frozen_string_literal_raw(
3800 this: *mut Self,
3801 val: ::std::os::raw::c_uint,
3802 ) {
3803 unsafe {
3804 let val: u32 = ::std::mem::transmute(val);
3805 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(
3806 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3807 val as u64,
3808 )
3809 }
3810 }
3811 #[inline]
3812 #[allow(unnecessary_transmutes)]
3813 pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3814 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) }
3815 }
3816 #[inline]
3817 #[allow(unnecessary_transmutes)]
3818 pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3819 unsafe {
3820 let val: u32 = ::std::mem::transmute(val);
3821 self._bitfield_1.set_const::<8usize, 1u8>(val as u64)
3822 }
3823 }
3824 #[inline]
3825 #[allow(unnecessary_transmutes)]
3826 pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3827 unsafe {
3828 ::std::mem::transmute(
3829 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(
3830 ::std::ptr::addr_of!((*this)._bitfield_1),
3831 ) as u32,
3832 )
3833 }
3834 }
3835 #[inline]
3836 #[allow(unnecessary_transmutes)]
3837 pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3838 unsafe {
3839 let val: u32 = ::std::mem::transmute(val);
3840 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(
3841 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3842 val as u64,
3843 )
3844 }
3845 }
3846 #[inline]
3847 #[allow(unnecessary_transmutes)]
3848 pub fn new_bitfield_1(
3849 inline_const_cache: ::std::os::raw::c_uint,
3850 peephole_optimization: ::std::os::raw::c_uint,
3851 tailcall_optimization: ::std::os::raw::c_uint,
3852 specialized_instruction: ::std::os::raw::c_uint,
3853 operands_unification: ::std::os::raw::c_uint,
3854 instructions_unification: ::std::os::raw::c_uint,
3855 frozen_string_literal: ::std::os::raw::c_uint,
3856 debug_frozen_string_literal: ::std::os::raw::c_uint,
3857 coverage_enabled: ::std::os::raw::c_uint,
3858 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3859 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3860 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
3861 let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3862 inline_const_cache as u64
3863 });
3864 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
3865 let peephole_optimization: u32 =
3866 unsafe { ::std::mem::transmute(peephole_optimization) };
3867 peephole_optimization as u64
3868 });
3869 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
3870 let tailcall_optimization: u32 =
3871 unsafe { ::std::mem::transmute(tailcall_optimization) };
3872 tailcall_optimization as u64
3873 });
3874 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
3875 let specialized_instruction: u32 =
3876 unsafe { ::std::mem::transmute(specialized_instruction) };
3877 specialized_instruction as u64
3878 });
3879 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
3880 let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3881 operands_unification as u64
3882 });
3883 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
3884 let instructions_unification: u32 =
3885 unsafe { ::std::mem::transmute(instructions_unification) };
3886 instructions_unification as u64
3887 });
3888 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
3889 let frozen_string_literal: u32 =
3890 unsafe { ::std::mem::transmute(frozen_string_literal) };
3891 frozen_string_literal as u64
3892 });
3893 __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
3894 let debug_frozen_string_literal: u32 =
3895 unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3896 debug_frozen_string_literal as u64
3897 });
3898 __bindgen_bitfield_unit.set_const::<8usize, 1u8>({
3899 let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3900 coverage_enabled as u64
3901 });
3902 __bindgen_bitfield_unit
3903 }
3904}
3905#[repr(C)]
3906#[derive(Debug, Copy, Clone)]
3907pub struct iseq_insn_info_entry {
3908 pub line_no: ::std::os::raw::c_int,
3909 pub node_id: ::std::os::raw::c_int,
3910 pub events: rb_event_flag_t,
3911}
3912pub const rb_catch_type_CATCH_TYPE_RESCUE: rb_catch_type = 3;
3913pub const rb_catch_type_CATCH_TYPE_ENSURE: rb_catch_type = 5;
3914pub const rb_catch_type_CATCH_TYPE_RETRY: rb_catch_type = 7;
3915pub const rb_catch_type_CATCH_TYPE_BREAK: rb_catch_type = 9;
3916pub const rb_catch_type_CATCH_TYPE_REDO: rb_catch_type = 11;
3917pub const rb_catch_type_CATCH_TYPE_NEXT: rb_catch_type = 13;
3918pub type rb_catch_type = ::std::os::raw::c_uint;
3919#[repr(C)]
3920#[derive(Debug, Copy, Clone)]
3921pub struct iseq_catch_table_entry {
3922 pub type_: rb_catch_type,
3923 pub iseq: *mut rb_iseq_t,
3924 pub start: ::std::os::raw::c_uint,
3925 pub end: ::std::os::raw::c_uint,
3926 pub cont: ::std::os::raw::c_uint,
3927 pub sp: ::std::os::raw::c_uint,
3928}
3929#[repr(C, packed)]
3930pub struct iseq_catch_table {
3931 pub size: ::std::os::raw::c_uint,
3932 pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3933}
3934#[repr(C)]
3935#[derive(Debug)]
3936pub struct iseq_compile_data_storage {
3937 pub next: *mut iseq_compile_data_storage,
3938 pub pos: ::std::os::raw::c_uint,
3939 pub size: ::std::os::raw::c_uint,
3940 pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3941}
3942#[repr(C)]
3943#[derive(Debug, Copy, Clone)]
3944pub struct coroutine_context {
3945 pub _address: u8,
3946}
3947#[repr(C)]
3948#[derive(Debug, Copy, Clone)]
3949pub struct rb_call_data {
3950 pub _address: u8,
3951}
3952#[repr(C)]
3953#[derive(Debug, Copy, Clone)]
3954pub struct succ_index_table {
3955 pub _address: u8,
3956}
3957#[repr(C)]
3958#[derive(Debug, Copy, Clone)]
3959pub struct rb_event_hook_struct {
3960 pub _address: u8,
3961}
3962#[repr(C)]
3963#[derive(Debug, Copy, Clone)]
3964pub struct rb_postponed_job_queue {
3965 pub _address: u8,
3966}
3967#[repr(C)]
3968#[derive(Debug, Copy, Clone)]
3969pub struct RVALUE {
3970 pub _address: u8,
3971}
3972#[repr(C)]
3973#[derive(Debug, Copy, Clone)]
3974pub struct heap_page {
3975 pub _address: u8,
3976}
3977#[repr(C)]
3978#[derive(Debug, Copy, Clone)]
3979pub struct iseq_label_data {
3980 pub _address: u8,
3981}
3982#[repr(C)]
3983#[derive(Debug, Copy, Clone)]
3984pub struct iseq_compile_data_ensure_node_stack {
3985 pub _address: u8,
3986}