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 list_node {
640 pub next: *mut list_node,
641 pub prev: *mut list_node,
642}
643#[repr(C)]
644#[derive(Debug, Copy, Clone)]
645pub struct list_head {
646 pub n: 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_debug_created_info: ruby_method_ids = 168;
711pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 169;
712pub const ruby_method_ids_tTOKEN_LOCAL_BEGIN: ruby_method_ids = 168;
713pub const ruby_method_ids_tMax: ruby_method_ids = 169;
714pub const ruby_method_ids_tMin: ruby_method_ids = 170;
715pub const ruby_method_ids_tFreeze: ruby_method_ids = 171;
716pub const ruby_method_ids_tInspect: ruby_method_ids = 172;
717pub const ruby_method_ids_tIntern: ruby_method_ids = 173;
718pub const ruby_method_ids_tObject_id: ruby_method_ids = 174;
719pub const ruby_method_ids_tConst_missing: ruby_method_ids = 175;
720pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 176;
721pub const ruby_method_ids_tMethod_added: ruby_method_ids = 177;
722pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 178;
723pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 179;
724pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 180;
725pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 181;
726pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 182;
727pub const ruby_method_ids_tLength: ruby_method_ids = 183;
728pub const ruby_method_ids_tSize: ruby_method_ids = 184;
729pub const ruby_method_ids_tGets: ruby_method_ids = 185;
730pub const ruby_method_ids_tSucc: ruby_method_ids = 186;
731pub const ruby_method_ids_tEach: ruby_method_ids = 187;
732pub const ruby_method_ids_tProc: ruby_method_ids = 188;
733pub const ruby_method_ids_tLambda: ruby_method_ids = 189;
734pub const ruby_method_ids_tSend: ruby_method_ids = 190;
735pub const ruby_method_ids_t__send__: ruby_method_ids = 191;
736pub const ruby_method_ids_t__attached__: ruby_method_ids = 192;
737pub const ruby_method_ids_tInitialize: ruby_method_ids = 193;
738pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 194;
739pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 195;
740pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 196;
741pub const ruby_method_ids_tTo_int: ruby_method_ids = 197;
742pub const ruby_method_ids_tTo_ary: ruby_method_ids = 198;
743pub const ruby_method_ids_tTo_str: ruby_method_ids = 199;
744pub const ruby_method_ids_tTo_sym: ruby_method_ids = 200;
745pub const ruby_method_ids_tTo_hash: ruby_method_ids = 201;
746pub const ruby_method_ids_tTo_proc: ruby_method_ids = 202;
747pub const ruby_method_ids_tTo_io: ruby_method_ids = 203;
748pub const ruby_method_ids_tTo_a: ruby_method_ids = 204;
749pub const ruby_method_ids_tTo_s: ruby_method_ids = 205;
750pub const ruby_method_ids_tTo_i: ruby_method_ids = 206;
751pub const ruby_method_ids_tTo_f: ruby_method_ids = 207;
752pub const ruby_method_ids_tTo_r: ruby_method_ids = 208;
753pub const ruby_method_ids_tBt: ruby_method_ids = 209;
754pub const ruby_method_ids_tBt_locations: ruby_method_ids = 210;
755pub const ruby_method_ids_tCall: ruby_method_ids = 211;
756pub const ruby_method_ids_tMesg: ruby_method_ids = 212;
757pub const ruby_method_ids_tException: ruby_method_ids = 213;
758pub const ruby_method_ids_tLocals: ruby_method_ids = 214;
759pub const ruby_method_ids_tNOT: ruby_method_ids = 215;
760pub const ruby_method_ids_tAND: ruby_method_ids = 216;
761pub const ruby_method_ids_tOR: ruby_method_ids = 217;
762pub const ruby_method_ids_tDiv: ruby_method_ids = 218;
763pub const ruby_method_ids_tDivmod: ruby_method_ids = 219;
764pub const ruby_method_ids_tFdiv: ruby_method_ids = 220;
765pub const ruby_method_ids_tQuo: ruby_method_ids = 221;
766pub const ruby_method_ids_tName: ruby_method_ids = 222;
767pub const ruby_method_ids_tNil: ruby_method_ids = 223;
768pub const ruby_method_ids_tUScore: ruby_method_ids = 224;
769pub const ruby_method_ids_tNUMPARAM_1: ruby_method_ids = 225;
770pub const ruby_method_ids_tNUMPARAM_2: ruby_method_ids = 226;
771pub const ruby_method_ids_tNUMPARAM_3: ruby_method_ids = 227;
772pub const ruby_method_ids_tNUMPARAM_4: ruby_method_ids = 228;
773pub const ruby_method_ids_tNUMPARAM_5: ruby_method_ids = 229;
774pub const ruby_method_ids_tNUMPARAM_6: ruby_method_ids = 230;
775pub const ruby_method_ids_tNUMPARAM_7: ruby_method_ids = 231;
776pub const ruby_method_ids_tNUMPARAM_8: ruby_method_ids = 232;
777pub const ruby_method_ids_tNUMPARAM_9: ruby_method_ids = 233;
778pub const ruby_method_ids_tTOKEN_LOCAL_END: ruby_method_ids = 234;
779pub const ruby_method_ids_tTOKEN_INSTANCE_BEGIN: ruby_method_ids = 233;
780pub const ruby_method_ids_tTOKEN_INSTANCE_END: ruby_method_ids = 234;
781pub const ruby_method_ids_tTOKEN_GLOBAL_BEGIN: ruby_method_ids = 233;
782pub const ruby_method_ids_tLASTLINE: ruby_method_ids = 234;
783pub const ruby_method_ids_tBACKREF: ruby_method_ids = 235;
784pub const ruby_method_ids_tERROR_INFO: ruby_method_ids = 236;
785pub const ruby_method_ids_tTOKEN_GLOBAL_END: ruby_method_ids = 237;
786pub const ruby_method_ids_tTOKEN_CONST_BEGIN: ruby_method_ids = 236;
787pub const ruby_method_ids_tTOKEN_CONST_END: ruby_method_ids = 237;
788pub const ruby_method_ids_tTOKEN_CLASS_BEGIN: ruby_method_ids = 236;
789pub const ruby_method_ids_tTOKEN_CLASS_END: ruby_method_ids = 237;
790pub const ruby_method_ids_tTOKEN_ATTRSET_BEGIN: ruby_method_ids = 236;
791pub const ruby_method_ids_tTOKEN_ATTRSET_END: ruby_method_ids = 237;
792pub const ruby_method_ids_tNEXT_ID: ruby_method_ids = 237;
793pub const ruby_method_ids_idMax: ruby_method_ids = 2705;
794pub const ruby_method_ids_idMin: ruby_method_ids = 2721;
795pub const ruby_method_ids_idFreeze: ruby_method_ids = 2737;
796pub const ruby_method_ids_idInspect: ruby_method_ids = 2753;
797pub const ruby_method_ids_idIntern: ruby_method_ids = 2769;
798pub const ruby_method_ids_idObject_id: ruby_method_ids = 2785;
799pub const ruby_method_ids_idConst_missing: ruby_method_ids = 2801;
800pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 2817;
801pub const ruby_method_ids_idMethod_added: ruby_method_ids = 2833;
802pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 2849;
803pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 2865;
804pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 2881;
805pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 2897;
806pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 2913;
807pub const ruby_method_ids_idLength: ruby_method_ids = 2929;
808pub const ruby_method_ids_idSize: ruby_method_ids = 2945;
809pub const ruby_method_ids_idGets: ruby_method_ids = 2961;
810pub const ruby_method_ids_idSucc: ruby_method_ids = 2977;
811pub const ruby_method_ids_idEach: ruby_method_ids = 2993;
812pub const ruby_method_ids_idProc: ruby_method_ids = 3009;
813pub const ruby_method_ids_idLambda: ruby_method_ids = 3025;
814pub const ruby_method_ids_idSend: ruby_method_ids = 3041;
815pub const ruby_method_ids_id__send__: ruby_method_ids = 3057;
816pub const ruby_method_ids_id__attached__: ruby_method_ids = 3073;
817pub const ruby_method_ids_idInitialize: ruby_method_ids = 3089;
818pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 3105;
819pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 3121;
820pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 3137;
821pub const ruby_method_ids_idTo_int: ruby_method_ids = 3153;
822pub const ruby_method_ids_idTo_ary: ruby_method_ids = 3169;
823pub const ruby_method_ids_idTo_str: ruby_method_ids = 3185;
824pub const ruby_method_ids_idTo_sym: ruby_method_ids = 3201;
825pub const ruby_method_ids_idTo_hash: ruby_method_ids = 3217;
826pub const ruby_method_ids_idTo_proc: ruby_method_ids = 3233;
827pub const ruby_method_ids_idTo_io: ruby_method_ids = 3249;
828pub const ruby_method_ids_idTo_a: ruby_method_ids = 3265;
829pub const ruby_method_ids_idTo_s: ruby_method_ids = 3281;
830pub const ruby_method_ids_idTo_i: ruby_method_ids = 3297;
831pub const ruby_method_ids_idTo_f: ruby_method_ids = 3313;
832pub const ruby_method_ids_idTo_r: ruby_method_ids = 3329;
833pub const ruby_method_ids_idBt: ruby_method_ids = 3345;
834pub const ruby_method_ids_idBt_locations: ruby_method_ids = 3361;
835pub const ruby_method_ids_idCall: ruby_method_ids = 3377;
836pub const ruby_method_ids_idMesg: ruby_method_ids = 3393;
837pub const ruby_method_ids_idException: ruby_method_ids = 3409;
838pub const ruby_method_ids_idLocals: ruby_method_ids = 3425;
839pub const ruby_method_ids_idNOT: ruby_method_ids = 3441;
840pub const ruby_method_ids_idAND: ruby_method_ids = 3457;
841pub const ruby_method_ids_idOR: ruby_method_ids = 3473;
842pub const ruby_method_ids_idDiv: ruby_method_ids = 3489;
843pub const ruby_method_ids_idDivmod: ruby_method_ids = 3505;
844pub const ruby_method_ids_idFdiv: ruby_method_ids = 3521;
845pub const ruby_method_ids_idQuo: ruby_method_ids = 3537;
846pub const ruby_method_ids_idName: ruby_method_ids = 3553;
847pub const ruby_method_ids_idNil: ruby_method_ids = 3569;
848pub const ruby_method_ids_idUScore: ruby_method_ids = 3585;
849pub const ruby_method_ids_idNUMPARAM_1: ruby_method_ids = 3601;
850pub const ruby_method_ids_idNUMPARAM_2: ruby_method_ids = 3617;
851pub const ruby_method_ids_idNUMPARAM_3: ruby_method_ids = 3633;
852pub const ruby_method_ids_idNUMPARAM_4: ruby_method_ids = 3649;
853pub const ruby_method_ids_idNUMPARAM_5: ruby_method_ids = 3665;
854pub const ruby_method_ids_idNUMPARAM_6: ruby_method_ids = 3681;
855pub const ruby_method_ids_idNUMPARAM_7: ruby_method_ids = 3697;
856pub const ruby_method_ids_idNUMPARAM_8: ruby_method_ids = 3713;
857pub const ruby_method_ids_idNUMPARAM_9: ruby_method_ids = 3729;
858pub const ruby_method_ids_idLASTLINE: ruby_method_ids = 3751;
859pub const ruby_method_ids_idBACKREF: ruby_method_ids = 3767;
860pub const ruby_method_ids_idERROR_INFO: ruby_method_ids = 3783;
861pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 168;
862pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 10;
863pub type ruby_method_ids = ::std::os::raw::c_uint;
864pub type VALUE = usize;
865pub type ID = usize;
866#[repr(C)]
867#[derive(Debug, Copy, Clone)]
868pub struct RBasic {
869 pub flags: VALUE,
870 pub klass: VALUE,
871}
872pub const ruby_fl_ushift_RUBY_FL_USHIFT: ruby_fl_ushift = 12;
873pub type ruby_fl_ushift = ::std::os::raw::c_uint;
874pub const ruby_fl_type_RUBY_FL_WB_PROTECTED: ruby_fl_type = 32;
875pub const ruby_fl_type_RUBY_FL_PROMOTED0: ruby_fl_type = 32;
876pub const ruby_fl_type_RUBY_FL_PROMOTED1: ruby_fl_type = 64;
877pub const ruby_fl_type_RUBY_FL_PROMOTED: ruby_fl_type = 96;
878pub const ruby_fl_type_RUBY_FL_FINALIZE: ruby_fl_type = 128;
879pub const ruby_fl_type_RUBY_FL_TAINT: ruby_fl_type = 256;
880pub const ruby_fl_type_RUBY_FL_SHAREABLE: ruby_fl_type = 256;
881pub const ruby_fl_type_RUBY_FL_UNTRUSTED: ruby_fl_type = 256;
882pub const ruby_fl_type_RUBY_FL_SEEN_OBJ_ID: ruby_fl_type = 512;
883pub const ruby_fl_type_RUBY_FL_EXIVAR: ruby_fl_type = 1024;
884pub const ruby_fl_type_RUBY_FL_FREEZE: ruby_fl_type = 2048;
885pub const ruby_fl_type_RUBY_FL_USER0: ruby_fl_type = 4096;
886pub const ruby_fl_type_RUBY_FL_USER1: ruby_fl_type = 8192;
887pub const ruby_fl_type_RUBY_FL_USER2: ruby_fl_type = 16384;
888pub const ruby_fl_type_RUBY_FL_USER3: ruby_fl_type = 32768;
889pub const ruby_fl_type_RUBY_FL_USER4: ruby_fl_type = 65536;
890pub const ruby_fl_type_RUBY_FL_USER5: ruby_fl_type = 131072;
891pub const ruby_fl_type_RUBY_FL_USER6: ruby_fl_type = 262144;
892pub const ruby_fl_type_RUBY_FL_USER7: ruby_fl_type = 524288;
893pub const ruby_fl_type_RUBY_FL_USER8: ruby_fl_type = 1048576;
894pub const ruby_fl_type_RUBY_FL_USER9: ruby_fl_type = 2097152;
895pub const ruby_fl_type_RUBY_FL_USER10: ruby_fl_type = 4194304;
896pub const ruby_fl_type_RUBY_FL_USER11: ruby_fl_type = 8388608;
897pub const ruby_fl_type_RUBY_FL_USER12: ruby_fl_type = 16777216;
898pub const ruby_fl_type_RUBY_FL_USER13: ruby_fl_type = 33554432;
899pub const ruby_fl_type_RUBY_FL_USER14: ruby_fl_type = 67108864;
900pub const ruby_fl_type_RUBY_FL_USER15: ruby_fl_type = 134217728;
901pub const ruby_fl_type_RUBY_FL_USER16: ruby_fl_type = 268435456;
902pub const ruby_fl_type_RUBY_FL_USER17: ruby_fl_type = 536870912;
903pub const ruby_fl_type_RUBY_FL_USER18: ruby_fl_type = 1073741824;
904pub const ruby_fl_type_RUBY_FL_USER19: ruby_fl_type = -2147483648;
905pub const ruby_fl_type_RUBY_ELTS_SHARED: ruby_fl_type = 16384;
906pub const ruby_fl_type_RUBY_FL_SINGLETON: ruby_fl_type = 4096;
907pub type ruby_fl_type = ::std::os::raw::c_int;
908#[repr(C)]
909#[derive(Copy, Clone)]
910pub struct RString {
911 pub basic: RBasic,
912 pub as_: RString__bindgen_ty_1,
913}
914#[repr(C)]
915#[derive(Copy, Clone)]
916pub union RString__bindgen_ty_1 {
917 pub heap: RString__bindgen_ty_1__bindgen_ty_1,
918 pub ary: [::std::os::raw::c_char; 24usize],
919}
920#[repr(C)]
921#[derive(Copy, Clone)]
922pub struct RString__bindgen_ty_1__bindgen_ty_1 {
923 pub len: ::std::os::raw::c_long,
924 pub ptr: *mut ::std::os::raw::c_char,
925 pub aux: RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
926}
927#[repr(C)]
928#[derive(Copy, Clone)]
929pub union RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
930 pub capa: ::std::os::raw::c_long,
931 pub shared: VALUE,
932}
933impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
934 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
935 write!(
936 f,
937 "RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
938 )
939 }
940}
941impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1 {
942 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
943 write!(
944 f,
945 "RString__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, ptr: {:?}, aux: {:?} }}",
946 self.len, self.ptr, self.aux
947 )
948 }
949}
950impl ::std::fmt::Debug for RString__bindgen_ty_1 {
951 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
952 write!(f, "RString__bindgen_ty_1 {{ union }}")
953 }
954}
955impl ::std::fmt::Debug for RString {
956 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
957 write!(
958 f,
959 "RString {{ basic: {:?}, as: {:?} }}",
960 self.basic, self.as_
961 )
962 }
963}
964pub type st_data_t = usize;
965pub type st_index_t = st_data_t;
966#[repr(C)]
967#[derive(Debug, Copy, Clone)]
968pub struct st_hash_type {
969 pub compare: ::std::option::Option<
970 unsafe extern "C" fn(arg1: st_data_t, arg2: st_data_t) -> ::std::os::raw::c_int,
971 >,
972 pub hash: ::std::option::Option<unsafe extern "C" fn(arg1: st_data_t) -> st_index_t>,
973}
974#[repr(C)]
975#[derive(Debug)]
976pub struct st_table_entry {
977 _unused: [u8; 0],
978}
979#[repr(C)]
980#[derive(Debug, Copy, Clone)]
981pub struct st_table {
982 pub entry_power: ::std::os::raw::c_uchar,
983 pub bin_power: ::std::os::raw::c_uchar,
984 pub size_ind: ::std::os::raw::c_uchar,
985 pub rebuilds_num: ::std::os::raw::c_uint,
986 pub type_: *const st_hash_type,
987 pub num_entries: st_index_t,
988 pub bins: *mut st_index_t,
989 pub entries_start: st_index_t,
990 pub entries_bound: st_index_t,
991 pub entries: *mut st_table_entry,
992}
993#[repr(C)]
994#[derive(Copy, Clone)]
995pub struct RArray {
996 pub basic: RBasic,
997 pub as_: RArray__bindgen_ty_1,
998}
999#[repr(C)]
1000#[derive(Copy, Clone)]
1001pub union RArray__bindgen_ty_1 {
1002 pub heap: RArray__bindgen_ty_1__bindgen_ty_1,
1003 pub ary: [VALUE; 3usize],
1004}
1005#[repr(C)]
1006#[derive(Copy, Clone)]
1007pub struct RArray__bindgen_ty_1__bindgen_ty_1 {
1008 pub len: ::std::os::raw::c_long,
1009 pub aux: RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
1010 pub ptr: *const VALUE,
1011}
1012#[repr(C)]
1013#[derive(Copy, Clone)]
1014pub union RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
1015 pub capa: ::std::os::raw::c_long,
1016 pub shared_root: VALUE,
1017}
1018impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
1019 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1020 write!(
1021 f,
1022 "RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
1023 )
1024 }
1025}
1026impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1 {
1027 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1028 write!(
1029 f,
1030 "RArray__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, aux: {:?}, ptr: {:?} }}",
1031 self.len, self.aux, self.ptr
1032 )
1033 }
1034}
1035impl ::std::fmt::Debug for RArray__bindgen_ty_1 {
1036 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1037 write!(f, "RArray__bindgen_ty_1 {{ union }}")
1038 }
1039}
1040impl ::std::fmt::Debug for RArray {
1041 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1042 write!(
1043 f,
1044 "RArray {{ basic: {:?}, as: {:?} }}",
1045 self.basic, self.as_
1046 )
1047 }
1048}
1049pub type rb_event_flag_t = u32;
1050pub type rb_unblock_function_t =
1051 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
1052pub type rb_serial_t = ::std::os::raw::c_ulonglong;
1053#[repr(C)]
1054#[derive(Debug)]
1055pub struct rb_callinfo {
1056 _unused: [u8; 0],
1057}
1058pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
1059pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
1060pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
1061pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
1062pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
1063pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
1064pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
1065pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
1066pub type method_missing_reason = ::std::os::raw::c_uint;
1067#[repr(C)]
1068#[derive(Debug)]
1069pub struct rb_callcache {
1070 _unused: [u8; 0],
1071}
1072#[repr(C)]
1073#[derive(Debug)]
1074pub struct rb_objspace {
1075 _unused: [u8; 0],
1076}
1077pub const imemo_type_imemo_env: imemo_type = 0;
1078pub const imemo_type_imemo_cref: imemo_type = 1;
1079pub const imemo_type_imemo_svar: imemo_type = 2;
1080pub const imemo_type_imemo_throw_data: imemo_type = 3;
1081pub const imemo_type_imemo_ifunc: imemo_type = 4;
1082pub const imemo_type_imemo_memo: imemo_type = 5;
1083pub const imemo_type_imemo_ment: imemo_type = 6;
1084pub const imemo_type_imemo_iseq: imemo_type = 7;
1085pub const imemo_type_imemo_tmpbuf: imemo_type = 8;
1086pub const imemo_type_imemo_ast: imemo_type = 9;
1087pub const imemo_type_imemo_parser_strterm: imemo_type = 10;
1088pub const imemo_type_imemo_callinfo: imemo_type = 11;
1089pub const imemo_type_imemo_callcache: imemo_type = 12;
1090pub type imemo_type = ::std::os::raw::c_uint;
1091#[repr(C)]
1092#[derive(Debug, Copy, Clone)]
1093pub struct vm_svar {
1094 pub flags: VALUE,
1095 pub cref_or_me: VALUE,
1096 pub lastline: VALUE,
1097 pub backref: VALUE,
1098 pub others: VALUE,
1099}
1100pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
1101pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
1102pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
1103pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
1104pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
1105pub type rb_method_visibility_t = ::std::os::raw::c_uint;
1106#[repr(C)]
1107#[derive(Debug, Copy, Clone)]
1108pub struct rb_scope_visi_struct {
1109 pub _bindgen_align: [u32; 0],
1110 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1111 pub __bindgen_padding_0: [u8; 3usize],
1112}
1113impl rb_scope_visi_struct {
1114 #[inline]
1115 #[allow(unnecessary_transmutes)]
1116 pub fn method_visi(&self) -> rb_method_visibility_t {
1117 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 3u8>() as u32) }
1118 }
1119 #[inline]
1120 #[allow(unnecessary_transmutes)]
1121 pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
1122 unsafe {
1123 let val: u32 = ::std::mem::transmute(val);
1124 self._bitfield_1.set_const::<0usize, 3u8>(val as u64)
1125 }
1126 }
1127 #[inline]
1128 #[allow(unnecessary_transmutes)]
1129 pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
1130 unsafe {
1131 ::std::mem::transmute(
1132 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 3u8>(
1133 ::std::ptr::addr_of!((*this)._bitfield_1),
1134 ) as u32,
1135 )
1136 }
1137 }
1138 #[inline]
1139 #[allow(unnecessary_transmutes)]
1140 pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
1141 unsafe {
1142 let val: u32 = ::std::mem::transmute(val);
1143 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 3u8>(
1144 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1145 val as u64,
1146 )
1147 }
1148 }
1149 #[inline]
1150 #[allow(unnecessary_transmutes)]
1151 pub fn module_func(&self) -> ::std::os::raw::c_uint {
1152 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1153 }
1154 #[inline]
1155 #[allow(unnecessary_transmutes)]
1156 pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
1157 unsafe {
1158 let val: u32 = ::std::mem::transmute(val);
1159 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1160 }
1161 }
1162 #[inline]
1163 #[allow(unnecessary_transmutes)]
1164 pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
1165 unsafe {
1166 ::std::mem::transmute(
1167 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
1168 ::std::ptr::addr_of!((*this)._bitfield_1),
1169 ) as u32,
1170 )
1171 }
1172 }
1173 #[inline]
1174 #[allow(unnecessary_transmutes)]
1175 pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1176 unsafe {
1177 let val: u32 = ::std::mem::transmute(val);
1178 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
1179 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1180 val as u64,
1181 )
1182 }
1183 }
1184 #[inline]
1185 #[allow(unnecessary_transmutes)]
1186 pub fn new_bitfield_1(
1187 method_visi: rb_method_visibility_t,
1188 module_func: ::std::os::raw::c_uint,
1189 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1190 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1191 __bindgen_bitfield_unit.set_const::<0usize, 3u8>({
1192 let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
1193 method_visi as u64
1194 });
1195 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
1196 let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
1197 module_func as u64
1198 });
1199 __bindgen_bitfield_unit
1200 }
1201}
1202pub type rb_scope_visibility_t = rb_scope_visi_struct;
1203#[repr(C)]
1204#[derive(Debug, Copy, Clone)]
1205pub struct rb_cref_struct {
1206 pub flags: VALUE,
1207 pub refinements: VALUE,
1208 pub klass: VALUE,
1209 pub next: *mut rb_cref_struct,
1210 pub scope_visi: rb_scope_visibility_t,
1211}
1212pub type rb_cref_t = rb_cref_struct;
1213#[repr(C)]
1214#[derive(Debug, Copy, Clone)]
1215pub struct rb_method_entry_struct {
1216 pub flags: VALUE,
1217 pub defined_class: VALUE,
1218 pub def: *mut rb_method_definition_struct,
1219 pub called_id: ID,
1220 pub owner: VALUE,
1221}
1222pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
1223pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
1224pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
1225pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
1226pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
1227pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
1228pub const rb_method_type_t_VM_METHOD_TYPE_ALIAS: rb_method_type_t = 6;
1229pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 7;
1230pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 8;
1231pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 9;
1232pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 10;
1233pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 11;
1234pub type rb_method_type_t = ::std::os::raw::c_uint;
1235pub type rb_iseq_t = rb_iseq_struct;
1236#[repr(C)]
1237#[derive(Debug, Copy, Clone)]
1238pub struct rb_method_iseq_struct {
1239 pub iseqptr: *mut rb_iseq_t,
1240 pub cref: *mut rb_cref_t,
1241}
1242pub type rb_method_iseq_t = rb_method_iseq_struct;
1243#[repr(C)]
1244#[derive(Debug, Copy, Clone)]
1245pub struct rb_method_cfunc_struct {
1246 pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1247 pub invoker: ::std::option::Option<
1248 unsafe extern "C" fn(
1249 recv: VALUE,
1250 argc: ::std::os::raw::c_int,
1251 argv: *const VALUE,
1252 func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1253 ) -> VALUE,
1254 >,
1255 pub argc: ::std::os::raw::c_int,
1256}
1257pub type rb_method_cfunc_t = rb_method_cfunc_struct;
1258#[repr(C)]
1259#[derive(Debug, Copy, Clone)]
1260pub struct rb_method_attr_struct {
1261 pub id: ID,
1262 pub location: VALUE,
1263}
1264pub type rb_method_attr_t = rb_method_attr_struct;
1265#[repr(C)]
1266#[derive(Debug, Copy, Clone)]
1267pub struct rb_method_alias_struct {
1268 pub original_me: *mut rb_method_entry_struct,
1269}
1270pub type rb_method_alias_t = rb_method_alias_struct;
1271#[repr(C)]
1272#[derive(Debug, Copy, Clone)]
1273pub struct rb_method_refined_struct {
1274 pub orig_me: *mut rb_method_entry_struct,
1275 pub owner: VALUE,
1276}
1277pub type rb_method_refined_t = rb_method_refined_struct;
1278#[repr(C)]
1279#[derive(Debug, Copy, Clone)]
1280pub struct rb_method_bmethod_struct {
1281 pub proc_: VALUE,
1282 pub hooks: *mut rb_hook_list_struct,
1283 pub defined_ractor: VALUE,
1284}
1285pub type rb_method_bmethod_t = rb_method_bmethod_struct;
1286pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND: method_optimized_type = 0;
1287pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL: method_optimized_type = 1;
1288pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_BLOCK_CALL: method_optimized_type = 2;
1289pub const method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX: method_optimized_type = 3;
1290pub type method_optimized_type = ::std::os::raw::c_uint;
1291#[repr(C)]
1292#[derive(Copy, Clone)]
1293pub struct rb_method_definition_struct {
1294 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
1295 pub body: rb_method_definition_struct__bindgen_ty_1,
1296 pub original_id: ID,
1297 pub method_serial: usize,
1298}
1299#[repr(C)]
1300#[derive(Copy, Clone)]
1301pub union rb_method_definition_struct__bindgen_ty_1 {
1302 pub iseq: rb_method_iseq_t,
1303 pub cfunc: rb_method_cfunc_t,
1304 pub attr: rb_method_attr_t,
1305 pub alias: rb_method_alias_t,
1306 pub refined: rb_method_refined_t,
1307 pub bmethod: rb_method_bmethod_t,
1308 pub optimize_type: method_optimized_type,
1309}
1310impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
1311 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1312 write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
1313 }
1314}
1315impl rb_method_definition_struct {
1316 #[inline]
1317 #[allow(unnecessary_transmutes)]
1318 pub fn type_(&self) -> rb_method_type_t {
1319 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u32) }
1320 }
1321 #[inline]
1322 #[allow(unnecessary_transmutes)]
1323 pub fn set_type(&mut self, val: rb_method_type_t) {
1324 unsafe {
1325 let val: u32 = ::std::mem::transmute(val);
1326 self._bitfield_1.set_const::<0usize, 4u8>(val as u64)
1327 }
1328 }
1329 #[inline]
1330 #[allow(unnecessary_transmutes)]
1331 pub unsafe fn type__raw(this: *const Self) -> rb_method_type_t {
1332 unsafe {
1333 ::std::mem::transmute(
1334 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<0usize, 4u8>(
1335 ::std::ptr::addr_of!((*this)._bitfield_1),
1336 ) as u32,
1337 )
1338 }
1339 }
1340 #[inline]
1341 #[allow(unnecessary_transmutes)]
1342 pub unsafe fn set_type_raw(this: *mut Self, val: rb_method_type_t) {
1343 unsafe {
1344 let val: u32 = ::std::mem::transmute(val);
1345 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<0usize, 4u8>(
1346 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1347 val as u64,
1348 )
1349 }
1350 }
1351 #[inline]
1352 #[allow(unnecessary_transmutes)]
1353 pub fn alias_count(&self) -> ::std::os::raw::c_int {
1354 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 28u8>() as u32) }
1355 }
1356 #[inline]
1357 #[allow(unnecessary_transmutes)]
1358 pub fn set_alias_count(&mut self, val: ::std::os::raw::c_int) {
1359 unsafe {
1360 let val: u32 = ::std::mem::transmute(val);
1361 self._bitfield_1.set_const::<4usize, 28u8>(val as u64)
1362 }
1363 }
1364 #[inline]
1365 #[allow(unnecessary_transmutes)]
1366 pub unsafe fn alias_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1367 unsafe {
1368 ::std::mem::transmute(
1369 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<4usize, 28u8>(
1370 ::std::ptr::addr_of!((*this)._bitfield_1),
1371 ) as u32,
1372 )
1373 }
1374 }
1375 #[inline]
1376 #[allow(unnecessary_transmutes)]
1377 pub unsafe fn set_alias_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1378 unsafe {
1379 let val: u32 = ::std::mem::transmute(val);
1380 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<4usize, 28u8>(
1381 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1382 val as u64,
1383 )
1384 }
1385 }
1386 #[inline]
1387 #[allow(unnecessary_transmutes)]
1388 pub fn complemented_count(&self) -> ::std::os::raw::c_int {
1389 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<32usize, 28u8>() as u32) }
1390 }
1391 #[inline]
1392 #[allow(unnecessary_transmutes)]
1393 pub fn set_complemented_count(&mut self, val: ::std::os::raw::c_int) {
1394 unsafe {
1395 let val: u32 = ::std::mem::transmute(val);
1396 self._bitfield_1.set_const::<32usize, 28u8>(val as u64)
1397 }
1398 }
1399 #[inline]
1400 #[allow(unnecessary_transmutes)]
1401 pub unsafe fn complemented_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1402 unsafe {
1403 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<
1404 32usize,
1405 28u8,
1406 >(::std::ptr::addr_of!((*this)._bitfield_1))
1407 as u32)
1408 }
1409 }
1410 #[inline]
1411 #[allow(unnecessary_transmutes)]
1412 pub unsafe fn set_complemented_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1413 unsafe {
1414 let val: u32 = ::std::mem::transmute(val);
1415 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<32usize, 28u8>(
1416 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1417 val as u64,
1418 )
1419 }
1420 }
1421 #[inline]
1422 #[allow(unnecessary_transmutes)]
1423 pub fn new_bitfield_1(
1424 type_: rb_method_type_t,
1425 alias_count: ::std::os::raw::c_int,
1426 complemented_count: ::std::os::raw::c_int,
1427 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
1428 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
1429 __bindgen_bitfield_unit.set_const::<0usize, 4u8>({
1430 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1431 type_ as u64
1432 });
1433 __bindgen_bitfield_unit.set_const::<4usize, 28u8>({
1434 let alias_count: u32 = unsafe { ::std::mem::transmute(alias_count) };
1435 alias_count as u64
1436 });
1437 __bindgen_bitfield_unit.set_const::<32usize, 28u8>({
1438 let complemented_count: u32 = unsafe { ::std::mem::transmute(complemented_count) };
1439 complemented_count as u64
1440 });
1441 __bindgen_bitfield_unit
1442 }
1443}
1444#[repr(C)]
1445#[derive(Debug)]
1446pub struct rb_id_table {
1447 _unused: [u8; 0],
1448}
1449#[repr(C)]
1450#[derive(Debug, Copy, Clone)]
1451pub struct rb_code_position_struct {
1452 pub lineno: ::std::os::raw::c_int,
1453 pub column: ::std::os::raw::c_int,
1454}
1455pub type rb_code_position_t = rb_code_position_struct;
1456#[repr(C)]
1457#[derive(Debug, Copy, Clone)]
1458pub struct rb_code_location_struct {
1459 pub beg_pos: rb_code_position_t,
1460 pub end_pos: rb_code_position_t,
1461}
1462pub type rb_code_location_t = rb_code_location_struct;
1463pub type rb_atomic_t = ::std::os::raw::c_uint;
1464pub type rb_nativethread_id_t = pthread_t;
1465pub type rb_nativethread_lock_t = pthread_mutex_t;
1466pub type rb_nativethread_cond_t = pthread_cond_t;
1467#[repr(C)]
1468#[derive(Copy, Clone)]
1469pub struct native_thread_data_struct {
1470 pub node: native_thread_data_struct__bindgen_ty_1,
1471 pub cond: native_thread_data_struct__bindgen_ty_2,
1472}
1473#[repr(C)]
1474#[derive(Copy, Clone)]
1475pub union native_thread_data_struct__bindgen_ty_1 {
1476 pub ubf: list_node,
1477 pub gvl: list_node,
1478}
1479impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_1 {
1480 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1481 write!(f, "native_thread_data_struct__bindgen_ty_1 {{ union }}")
1482 }
1483}
1484#[repr(C)]
1485#[derive(Copy, Clone)]
1486pub union native_thread_data_struct__bindgen_ty_2 {
1487 pub intr: rb_nativethread_cond_t,
1488 pub gvlq: rb_nativethread_cond_t,
1489}
1490impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_2 {
1491 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1492 write!(f, "native_thread_data_struct__bindgen_ty_2 {{ union }}")
1493 }
1494}
1495impl ::std::fmt::Debug for native_thread_data_struct {
1496 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1497 write!(
1498 f,
1499 "native_thread_data_struct {{ node: {:?}, cond: {:?} }}",
1500 self.node, self.cond
1501 )
1502 }
1503}
1504pub type native_thread_data_t = native_thread_data_struct;
1505#[repr(C)]
1506#[derive(Copy, Clone)]
1507pub struct rb_global_vm_lock_struct {
1508 pub owner: *const rb_thread_struct,
1509 pub lock: rb_nativethread_lock_t,
1510 pub waitq: list_head,
1511 pub timer: *const rb_thread_struct,
1512 pub timer_err: ::std::os::raw::c_int,
1513 pub switch_cond: rb_nativethread_cond_t,
1514 pub switch_wait_cond: rb_nativethread_cond_t,
1515 pub need_yield: ::std::os::raw::c_int,
1516 pub wait_yield: ::std::os::raw::c_int,
1517}
1518impl ::std::fmt::Debug for rb_global_vm_lock_struct {
1519 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1520 write ! (f , "rb_global_vm_lock_struct {{ owner: {:?}, lock: {:?}, waitq: {:?}, timer: {:?}, timer_err: {:?}, switch_cond: {:?}, switch_wait_cond: {:?}, need_yield: {:?}, wait_yield: {:?} }}" , self . owner , self . lock , self . waitq , self . timer , self . timer_err , self . switch_cond , self . switch_wait_cond , self . need_yield , self . wait_yield)
1521 }
1522}
1523pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
1524pub type rb_snum_t = ::std::os::raw::c_long;
1525pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1526pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1527pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1528pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1529pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1530pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1531pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1532pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1533pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1534pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1535pub type ruby_tag_type = ::std::os::raw::c_uint;
1536pub type rb_compile_option_t = rb_compile_option_struct;
1537#[repr(C)]
1538#[derive(Debug, Copy, Clone)]
1539pub struct iseq_inline_cache_entry {
1540 pub ic_serial: rb_serial_t,
1541 pub ic_cref: *const rb_cref_t,
1542 pub value: VALUE,
1543}
1544#[repr(C)]
1545#[derive(Debug, Copy, Clone)]
1546pub struct iseq_inline_iv_cache_entry {
1547 pub entry: *mut rb_iv_index_tbl_entry,
1548}
1549#[repr(C)]
1550#[derive(Copy, Clone)]
1551pub union iseq_inline_storage_entry {
1552 pub once: iseq_inline_storage_entry__bindgen_ty_1,
1553 pub cache: iseq_inline_cache_entry,
1554 pub iv_cache: iseq_inline_iv_cache_entry,
1555}
1556#[repr(C)]
1557#[derive(Debug, Copy, Clone)]
1558pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1559 pub running_thread: *mut rb_thread_struct,
1560 pub value: VALUE,
1561}
1562impl ::std::fmt::Debug for iseq_inline_storage_entry {
1563 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1564 write!(f, "iseq_inline_storage_entry {{ union }}")
1565 }
1566}
1567#[repr(C)]
1568#[derive(Debug, Copy, Clone)]
1569pub struct rb_calling_info {
1570 pub ci: *const rb_callinfo,
1571 pub cc: *const rb_callcache,
1572 pub block_handler: VALUE,
1573 pub recv: VALUE,
1574 pub argc: ::std::os::raw::c_int,
1575 pub kw_splat: ::std::os::raw::c_int,
1576}
1577#[repr(C)]
1578#[derive(Debug, Copy, Clone)]
1579pub struct rb_iseq_location_struct {
1580 pub pathobj: VALUE,
1581 pub base_label: VALUE,
1582 pub label: VALUE,
1583 pub first_lineno: VALUE,
1584 pub node_id: ::std::os::raw::c_int,
1585 pub code_location: rb_code_location_t,
1586}
1587pub type rb_iseq_location_t = rb_iseq_location_struct;
1588#[repr(C)]
1589#[derive(Debug)]
1590pub struct rb_mjit_unit {
1591 _unused: [u8; 0],
1592}
1593#[repr(C)]
1594#[derive(Debug, Copy, Clone)]
1595pub struct rb_iseq_constant_body {
1596 pub type_: rb_iseq_constant_body_iseq_type,
1597 pub iseq_size: ::std::os::raw::c_uint,
1598 pub iseq_encoded: *mut VALUE,
1599 pub param: rb_iseq_constant_body__bindgen_ty_1,
1600 pub location: rb_iseq_location_t,
1601 pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1602 pub local_table: *const ID,
1603 pub catch_table: *mut iseq_catch_table,
1604 pub parent_iseq: *const rb_iseq_struct,
1605 pub local_iseq: *mut rb_iseq_struct,
1606 pub is_entries: *mut iseq_inline_storage_entry,
1607 pub call_data: *mut rb_call_data,
1608 pub variable: rb_iseq_constant_body__bindgen_ty_2,
1609 pub local_table_size: ::std::os::raw::c_uint,
1610 pub is_size: ::std::os::raw::c_uint,
1611 pub ci_size: ::std::os::raw::c_uint,
1612 pub stack_max: ::std::os::raw::c_uint,
1613 pub catch_except_p: ::std::os::raw::c_char,
1614 pub builtin_inline_p: u8,
1615 pub outer_variables: *mut rb_id_table,
1616 pub jit_func: ::std::option::Option<
1617 unsafe extern "C" fn(
1618 arg1: *mut rb_execution_context_struct,
1619 arg2: *mut rb_control_frame_struct,
1620 ) -> VALUE,
1621 >,
1622 pub total_calls: ::std::os::raw::c_ulong,
1623 pub jit_unit: *mut rb_mjit_unit,
1624}
1625pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_TOP: rb_iseq_constant_body_iseq_type = 0;
1626pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_constant_body_iseq_type = 1;
1627pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_constant_body_iseq_type = 2;
1628pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_constant_body_iseq_type = 3;
1629pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_constant_body_iseq_type = 4;
1630pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_constant_body_iseq_type = 5;
1631pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_constant_body_iseq_type = 6;
1632pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_constant_body_iseq_type = 7;
1633pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_constant_body_iseq_type = 8;
1634pub type rb_iseq_constant_body_iseq_type = ::std::os::raw::c_uint;
1635#[repr(C)]
1636#[derive(Debug, Copy, Clone)]
1637pub struct rb_iseq_constant_body__bindgen_ty_1 {
1638 pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1639 pub size: ::std::os::raw::c_uint,
1640 pub lead_num: ::std::os::raw::c_int,
1641 pub opt_num: ::std::os::raw::c_int,
1642 pub rest_start: ::std::os::raw::c_int,
1643 pub post_start: ::std::os::raw::c_int,
1644 pub post_num: ::std::os::raw::c_int,
1645 pub block_start: ::std::os::raw::c_int,
1646 pub opt_table: *const VALUE,
1647 pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1648}
1649#[repr(C)]
1650#[derive(Debug, Copy, Clone)]
1651pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1652 pub _bindgen_align: [u32; 0],
1653 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
1654 pub __bindgen_padding_0: u16,
1655}
1656impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1657 #[inline]
1658 #[allow(unnecessary_transmutes)]
1659 pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1660 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
1661 }
1662 #[inline]
1663 #[allow(unnecessary_transmutes)]
1664 pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1665 unsafe {
1666 let val: u32 = ::std::mem::transmute(val);
1667 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
1668 }
1669 }
1670 #[inline]
1671 #[allow(unnecessary_transmutes)]
1672 pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1673 unsafe {
1674 ::std::mem::transmute(
1675 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(
1676 ::std::ptr::addr_of!((*this)._bitfield_1),
1677 ) as u32,
1678 )
1679 }
1680 }
1681 #[inline]
1682 #[allow(unnecessary_transmutes)]
1683 pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1684 unsafe {
1685 let val: u32 = ::std::mem::transmute(val);
1686 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(
1687 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1688 val as u64,
1689 )
1690 }
1691 }
1692 #[inline]
1693 #[allow(unnecessary_transmutes)]
1694 pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1695 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
1696 }
1697 #[inline]
1698 #[allow(unnecessary_transmutes)]
1699 pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1700 unsafe {
1701 let val: u32 = ::std::mem::transmute(val);
1702 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
1703 }
1704 }
1705 #[inline]
1706 #[allow(unnecessary_transmutes)]
1707 pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1708 unsafe {
1709 ::std::mem::transmute(
1710 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(
1711 ::std::ptr::addr_of!((*this)._bitfield_1),
1712 ) as u32,
1713 )
1714 }
1715 }
1716 #[inline]
1717 #[allow(unnecessary_transmutes)]
1718 pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1719 unsafe {
1720 let val: u32 = ::std::mem::transmute(val);
1721 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(
1722 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1723 val as u64,
1724 )
1725 }
1726 }
1727 #[inline]
1728 #[allow(unnecessary_transmutes)]
1729 pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1730 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
1731 }
1732 #[inline]
1733 #[allow(unnecessary_transmutes)]
1734 pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1735 unsafe {
1736 let val: u32 = ::std::mem::transmute(val);
1737 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
1738 }
1739 }
1740 #[inline]
1741 #[allow(unnecessary_transmutes)]
1742 pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1743 unsafe {
1744 ::std::mem::transmute(
1745 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(
1746 ::std::ptr::addr_of!((*this)._bitfield_1),
1747 ) as u32,
1748 )
1749 }
1750 }
1751 #[inline]
1752 #[allow(unnecessary_transmutes)]
1753 pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1754 unsafe {
1755 let val: u32 = ::std::mem::transmute(val);
1756 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(
1757 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1758 val as u64,
1759 )
1760 }
1761 }
1762 #[inline]
1763 #[allow(unnecessary_transmutes)]
1764 pub fn has_post(&self) -> ::std::os::raw::c_uint {
1765 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1766 }
1767 #[inline]
1768 #[allow(unnecessary_transmutes)]
1769 pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1770 unsafe {
1771 let val: u32 = ::std::mem::transmute(val);
1772 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1773 }
1774 }
1775 #[inline]
1776 #[allow(unnecessary_transmutes)]
1777 pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1778 unsafe {
1779 ::std::mem::transmute(
1780 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(
1781 ::std::ptr::addr_of!((*this)._bitfield_1),
1782 ) as u32,
1783 )
1784 }
1785 }
1786 #[inline]
1787 #[allow(unnecessary_transmutes)]
1788 pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1789 unsafe {
1790 let val: u32 = ::std::mem::transmute(val);
1791 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(
1792 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1793 val as u64,
1794 )
1795 }
1796 }
1797 #[inline]
1798 #[allow(unnecessary_transmutes)]
1799 pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1800 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
1801 }
1802 #[inline]
1803 #[allow(unnecessary_transmutes)]
1804 pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1805 unsafe {
1806 let val: u32 = ::std::mem::transmute(val);
1807 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
1808 }
1809 }
1810 #[inline]
1811 #[allow(unnecessary_transmutes)]
1812 pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1813 unsafe {
1814 ::std::mem::transmute(
1815 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(
1816 ::std::ptr::addr_of!((*this)._bitfield_1),
1817 ) as u32,
1818 )
1819 }
1820 }
1821 #[inline]
1822 #[allow(unnecessary_transmutes)]
1823 pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1824 unsafe {
1825 let val: u32 = ::std::mem::transmute(val);
1826 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(
1827 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1828 val as u64,
1829 )
1830 }
1831 }
1832 #[inline]
1833 #[allow(unnecessary_transmutes)]
1834 pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1835 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
1836 }
1837 #[inline]
1838 #[allow(unnecessary_transmutes)]
1839 pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1840 unsafe {
1841 let val: u32 = ::std::mem::transmute(val);
1842 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
1843 }
1844 }
1845 #[inline]
1846 #[allow(unnecessary_transmutes)]
1847 pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1848 unsafe {
1849 ::std::mem::transmute(
1850 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<5usize, 1u8>(
1851 ::std::ptr::addr_of!((*this)._bitfield_1),
1852 ) as u32,
1853 )
1854 }
1855 }
1856 #[inline]
1857 #[allow(unnecessary_transmutes)]
1858 pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1859 unsafe {
1860 let val: u32 = ::std::mem::transmute(val);
1861 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<5usize, 1u8>(
1862 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1863 val as u64,
1864 )
1865 }
1866 }
1867 #[inline]
1868 #[allow(unnecessary_transmutes)]
1869 pub fn has_block(&self) -> ::std::os::raw::c_uint {
1870 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
1871 }
1872 #[inline]
1873 #[allow(unnecessary_transmutes)]
1874 pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1875 unsafe {
1876 let val: u32 = ::std::mem::transmute(val);
1877 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
1878 }
1879 }
1880 #[inline]
1881 #[allow(unnecessary_transmutes)]
1882 pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1883 unsafe {
1884 ::std::mem::transmute(
1885 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<6usize, 1u8>(
1886 ::std::ptr::addr_of!((*this)._bitfield_1),
1887 ) as u32,
1888 )
1889 }
1890 }
1891 #[inline]
1892 #[allow(unnecessary_transmutes)]
1893 pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1894 unsafe {
1895 let val: u32 = ::std::mem::transmute(val);
1896 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<6usize, 1u8>(
1897 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1898 val as u64,
1899 )
1900 }
1901 }
1902 #[inline]
1903 #[allow(unnecessary_transmutes)]
1904 pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1905 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
1906 }
1907 #[inline]
1908 #[allow(unnecessary_transmutes)]
1909 pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1910 unsafe {
1911 let val: u32 = ::std::mem::transmute(val);
1912 self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
1913 }
1914 }
1915 #[inline]
1916 #[allow(unnecessary_transmutes)]
1917 pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1918 unsafe {
1919 ::std::mem::transmute(
1920 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(
1921 ::std::ptr::addr_of!((*this)._bitfield_1),
1922 ) as u32,
1923 )
1924 }
1925 }
1926 #[inline]
1927 #[allow(unnecessary_transmutes)]
1928 pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1929 unsafe {
1930 let val: u32 = ::std::mem::transmute(val);
1931 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(
1932 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1933 val as u64,
1934 )
1935 }
1936 }
1937 #[inline]
1938 #[allow(unnecessary_transmutes)]
1939 pub fn accepts_no_kwarg(&self) -> ::std::os::raw::c_uint {
1940 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) }
1941 }
1942 #[inline]
1943 #[allow(unnecessary_transmutes)]
1944 pub fn set_accepts_no_kwarg(&mut self, val: ::std::os::raw::c_uint) {
1945 unsafe {
1946 let val: u32 = ::std::mem::transmute(val);
1947 self._bitfield_1.set_const::<8usize, 1u8>(val as u64)
1948 }
1949 }
1950 #[inline]
1951 #[allow(unnecessary_transmutes)]
1952 pub unsafe fn accepts_no_kwarg_raw(this: *const Self) -> ::std::os::raw::c_uint {
1953 unsafe {
1954 ::std::mem::transmute(
1955 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(
1956 ::std::ptr::addr_of!((*this)._bitfield_1),
1957 ) as u32,
1958 )
1959 }
1960 }
1961 #[inline]
1962 #[allow(unnecessary_transmutes)]
1963 pub unsafe fn set_accepts_no_kwarg_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1964 unsafe {
1965 let val: u32 = ::std::mem::transmute(val);
1966 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(
1967 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1968 val as u64,
1969 )
1970 }
1971 }
1972 #[inline]
1973 #[allow(unnecessary_transmutes)]
1974 pub fn ruby2_keywords(&self) -> ::std::os::raw::c_uint {
1975 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u32) }
1976 }
1977 #[inline]
1978 #[allow(unnecessary_transmutes)]
1979 pub fn set_ruby2_keywords(&mut self, val: ::std::os::raw::c_uint) {
1980 unsafe {
1981 let val: u32 = ::std::mem::transmute(val);
1982 self._bitfield_1.set_const::<9usize, 1u8>(val as u64)
1983 }
1984 }
1985 #[inline]
1986 #[allow(unnecessary_transmutes)]
1987 pub unsafe fn ruby2_keywords_raw(this: *const Self) -> ::std::os::raw::c_uint {
1988 unsafe {
1989 ::std::mem::transmute(
1990 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(
1991 ::std::ptr::addr_of!((*this)._bitfield_1),
1992 ) as u32,
1993 )
1994 }
1995 }
1996 #[inline]
1997 #[allow(unnecessary_transmutes)]
1998 pub unsafe fn set_ruby2_keywords_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1999 unsafe {
2000 let val: u32 = ::std::mem::transmute(val);
2001 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(
2002 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2003 val as u64,
2004 )
2005 }
2006 }
2007 #[inline]
2008 #[allow(unnecessary_transmutes)]
2009 pub fn new_bitfield_1(
2010 has_lead: ::std::os::raw::c_uint,
2011 has_opt: ::std::os::raw::c_uint,
2012 has_rest: ::std::os::raw::c_uint,
2013 has_post: ::std::os::raw::c_uint,
2014 has_kw: ::std::os::raw::c_uint,
2015 has_kwrest: ::std::os::raw::c_uint,
2016 has_block: ::std::os::raw::c_uint,
2017 ambiguous_param0: ::std::os::raw::c_uint,
2018 accepts_no_kwarg: ::std::os::raw::c_uint,
2019 ruby2_keywords: ::std::os::raw::c_uint,
2020 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2021 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2022 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2023 let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
2024 has_lead as u64
2025 });
2026 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2027 let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
2028 has_opt as u64
2029 });
2030 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2031 let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
2032 has_rest as u64
2033 });
2034 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2035 let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
2036 has_post as u64
2037 });
2038 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
2039 let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
2040 has_kw as u64
2041 });
2042 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
2043 let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
2044 has_kwrest as u64
2045 });
2046 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
2047 let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
2048 has_block as u64
2049 });
2050 __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
2051 let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
2052 ambiguous_param0 as u64
2053 });
2054 __bindgen_bitfield_unit.set_const::<8usize, 1u8>({
2055 let accepts_no_kwarg: u32 = unsafe { ::std::mem::transmute(accepts_no_kwarg) };
2056 accepts_no_kwarg as u64
2057 });
2058 __bindgen_bitfield_unit.set_const::<9usize, 1u8>({
2059 let ruby2_keywords: u32 = unsafe { ::std::mem::transmute(ruby2_keywords) };
2060 ruby2_keywords as u64
2061 });
2062 __bindgen_bitfield_unit
2063 }
2064}
2065#[repr(C)]
2066#[derive(Debug, Copy, Clone)]
2067pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
2068 pub num: ::std::os::raw::c_int,
2069 pub required_num: ::std::os::raw::c_int,
2070 pub bits_start: ::std::os::raw::c_int,
2071 pub rest_start: ::std::os::raw::c_int,
2072 pub table: *const ID,
2073 pub default_values: *mut VALUE,
2074}
2075#[repr(C)]
2076#[derive(Debug, Copy, Clone)]
2077pub struct rb_iseq_constant_body_iseq_insn_info {
2078 pub body: *const iseq_insn_info_entry,
2079 pub positions: *mut ::std::os::raw::c_uint,
2080 pub size: ::std::os::raw::c_uint,
2081 pub succ_index_table: *mut succ_index_table,
2082}
2083#[repr(C)]
2084#[derive(Debug, Copy, Clone)]
2085pub struct rb_iseq_constant_body__bindgen_ty_2 {
2086 pub flip_count: rb_snum_t,
2087 pub coverage: VALUE,
2088 pub pc2branchindex: VALUE,
2089 pub original_iseq: *mut VALUE,
2090}
2091#[repr(C)]
2092#[derive(Copy, Clone)]
2093pub struct rb_iseq_struct {
2094 pub flags: VALUE,
2095 pub wrapper: VALUE,
2096 pub body: *mut rb_iseq_constant_body,
2097 pub aux: rb_iseq_struct__bindgen_ty_1,
2098}
2099#[repr(C)]
2100#[derive(Copy, Clone)]
2101pub union rb_iseq_struct__bindgen_ty_1 {
2102 pub compile_data: *mut iseq_compile_data,
2103 pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
2104 pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
2105}
2106#[repr(C)]
2107#[derive(Debug, Copy, Clone)]
2108pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
2109 pub obj: VALUE,
2110 pub index: ::std::os::raw::c_int,
2111}
2112#[repr(C)]
2113#[derive(Debug, Copy, Clone)]
2114pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
2115 pub local_hooks: *mut rb_hook_list_struct,
2116 pub global_trace_events: rb_event_flag_t,
2117}
2118impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
2119 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2120 write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
2121 }
2122}
2123impl ::std::fmt::Debug for rb_iseq_struct {
2124 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2125 write!(
2126 f,
2127 "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
2128 self.flags, self.wrapper, self.body, self.aux
2129 )
2130 }
2131}
2132pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
2133#[repr(C)]
2134#[derive(Debug, Copy, Clone)]
2135pub struct rb_at_exit_list {
2136 pub func: rb_vm_at_exit_func,
2137 pub next: *mut rb_at_exit_list,
2138}
2139#[repr(C)]
2140#[derive(Debug, Copy, Clone)]
2141pub struct rb_hook_list_struct {
2142 pub hooks: *mut rb_event_hook_struct,
2143 pub events: rb_event_flag_t,
2144 pub need_clean: ::std::os::raw::c_uint,
2145 pub running: ::std::os::raw::c_uint,
2146}
2147pub type rb_hook_list_t = rb_hook_list_struct;
2148#[repr(C)]
2149#[derive(Debug)]
2150pub struct rb_builtin_function {
2151 _unused: [u8; 0],
2152}
2153#[repr(C)]
2154#[derive(Copy, Clone)]
2155pub struct rb_vm_struct {
2156 pub self_: VALUE,
2157 pub ractor: rb_vm_struct__bindgen_ty_1,
2158 pub main_altstack: *mut ::std::os::raw::c_void,
2159 pub fork_gen: rb_serial_t,
2160 pub waitpid_lock: rb_nativethread_lock_t,
2161 pub waiting_pids: list_head,
2162 pub waiting_grps: list_head,
2163 pub waiting_fds: list_head,
2164 pub ubf_async_safe: ::std::os::raw::c_int,
2165 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2166 pub mark_object_ary: VALUE,
2167 pub special_exceptions: [VALUE; 5usize],
2168 pub top_self: VALUE,
2169 pub load_path: VALUE,
2170 pub load_path_snapshot: VALUE,
2171 pub load_path_check_cache: VALUE,
2172 pub expanded_load_path: VALUE,
2173 pub loaded_features: VALUE,
2174 pub loaded_features_snapshot: VALUE,
2175 pub loaded_features_index: *mut st_table,
2176 pub loading_table: *mut st_table,
2177 pub trap_list: rb_vm_struct__bindgen_ty_2,
2178 pub ensure_rollback_table: *mut st_table,
2179 pub postponed_job_buffer: *mut rb_postponed_job_struct,
2180 pub postponed_job_index: rb_atomic_t,
2181 pub src_encoding_index: ::std::os::raw::c_int,
2182 pub workqueue: list_head,
2183 pub workqueue_lock: rb_nativethread_lock_t,
2184 pub orig_progname: VALUE,
2185 pub progname: VALUE,
2186 pub coverages: VALUE,
2187 pub coverage_mode: ::std::os::raw::c_int,
2188 pub defined_module_hash: *mut st_table,
2189 pub objspace: *mut rb_objspace,
2190 pub at_exit: *mut rb_at_exit_list,
2191 pub defined_strings: *mut VALUE,
2192 pub frozen_strings: *mut st_table,
2193 pub builtin_function_table: *const rb_builtin_function,
2194 pub builtin_inline_index: ::std::os::raw::c_int,
2195 pub negative_cme_table: *mut rb_id_table,
2196 pub default_params: rb_vm_struct__bindgen_ty_3,
2197 pub redefined_flag: [::std::os::raw::c_short; 29usize],
2198}
2199#[repr(C)]
2200#[derive(Copy, Clone)]
2201pub struct rb_vm_struct__bindgen_ty_1 {
2202 pub set: list_head,
2203 pub cnt: ::std::os::raw::c_uint,
2204 pub blocking_cnt: ::std::os::raw::c_uint,
2205 pub main_ractor: *mut rb_ractor_struct,
2206 pub main_thread: *mut rb_thread_struct,
2207 pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
2208}
2209#[repr(C)]
2210#[derive(Copy, Clone)]
2211pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2212 pub lock: rb_nativethread_lock_t,
2213 pub lock_owner: *mut rb_ractor_struct,
2214 pub lock_rec: ::std::os::raw::c_uint,
2215 pub barrier_waiting: u8,
2216 pub barrier_cnt: ::std::os::raw::c_uint,
2217 pub barrier_cond: rb_nativethread_cond_t,
2218 pub terminate_cond: rb_nativethread_cond_t,
2219 pub terminate_waiting: u8,
2220}
2221impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2222 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2223 write ! (f , "rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {{ lock: {:?}, lock_owner: {:?}, lock_rec: {:?}, barrier_waiting: {:?}, barrier_cnt: {:?}, barrier_cond: {:?}, terminate_cond: {:?}, terminate_waiting: {:?} }}" , self . lock , self . lock_owner , self . lock_rec , self . barrier_waiting , self . barrier_cnt , self . barrier_cond , self . terminate_cond , self . terminate_waiting)
2224 }
2225}
2226impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2227 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2228 write ! (f , "rb_vm_struct__bindgen_ty_1 {{ set: {:?}, cnt: {:?}, blocking_cnt: {:?}, main_ractor: {:?}, main_thread: {:?}, sync: {:?} }}" , self . set , self . cnt , self . blocking_cnt , self . main_ractor , self . main_thread , self . sync)
2229 }
2230}
2231#[repr(C)]
2232#[derive(Debug, Copy, Clone)]
2233pub struct rb_vm_struct__bindgen_ty_2 {
2234 pub cmd: [VALUE; 65usize],
2235}
2236#[repr(C)]
2237#[derive(Debug, Copy, Clone)]
2238pub struct rb_vm_struct__bindgen_ty_3 {
2239 pub thread_vm_stack_size: usize,
2240 pub thread_machine_stack_size: usize,
2241 pub fiber_vm_stack_size: usize,
2242 pub fiber_machine_stack_size: usize,
2243}
2244impl ::std::fmt::Debug for rb_vm_struct {
2245 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2246 write ! (f , "rb_vm_struct {{ self: {:?}, ractor: {:?}, main_altstack: {:?}, fork_gen: {:?}, waitpid_lock: {:?}, waiting_pids: {:?}, waiting_grps: {:?}, 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_index: {:?}, loading_table: {:?}, trap_list: {:?}, ensure_rollback_table: {:?}, postponed_job_buffer: {:?}, postponed_job_index: {:?}, src_encoding_index: {:?}, workqueue: {:?}, workqueue_lock: {:?}, orig_progname: {:?}, progname: {:?}, coverages: {:?}, coverage_mode: {:?}, defined_module_hash: {:?}, objspace: {:?}, at_exit: {:?}, defined_strings: {:?}, frozen_strings: {:?}, builtin_function_table: {:?}, builtin_inline_index: {:?}, negative_cme_table: {:?}, default_params: {:?}, redefined_flag: {:?} }}" , self . self_ , self . ractor , self . main_altstack , self . fork_gen , self . waitpid_lock , self . waiting_pids , self . waiting_grps , 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_index , self . loading_table , self . trap_list , self . ensure_rollback_table , self . postponed_job_buffer , self . postponed_job_index , self . src_encoding_index , self . workqueue , self . workqueue_lock , self . orig_progname , self . progname , self . coverages , self . coverage_mode , self . defined_module_hash , self . objspace , self . at_exit , self . defined_strings , self . frozen_strings , self . builtin_function_table , self . builtin_inline_index , self . negative_cme_table , self . default_params , self . redefined_flag)
2247 }
2248}
2249impl rb_vm_struct {
2250 #[inline]
2251 #[allow(unnecessary_transmutes)]
2252 pub fn running(&self) -> ::std::os::raw::c_uint {
2253 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2254 }
2255 #[inline]
2256 #[allow(unnecessary_transmutes)]
2257 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2258 unsafe {
2259 let val: u32 = ::std::mem::transmute(val);
2260 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2261 }
2262 }
2263 #[inline]
2264 #[allow(unnecessary_transmutes)]
2265 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2266 unsafe {
2267 ::std::mem::transmute(
2268 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
2269 ::std::ptr::addr_of!((*this)._bitfield_1),
2270 ) as u32,
2271 )
2272 }
2273 }
2274 #[inline]
2275 #[allow(unnecessary_transmutes)]
2276 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2277 unsafe {
2278 let val: u32 = ::std::mem::transmute(val);
2279 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
2280 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2281 val as u64,
2282 )
2283 }
2284 }
2285 #[inline]
2286 #[allow(unnecessary_transmutes)]
2287 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2288 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2289 }
2290 #[inline]
2291 #[allow(unnecessary_transmutes)]
2292 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2293 unsafe {
2294 let val: u32 = ::std::mem::transmute(val);
2295 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2296 }
2297 }
2298 #[inline]
2299 #[allow(unnecessary_transmutes)]
2300 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2301 unsafe {
2302 ::std::mem::transmute(
2303 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
2304 ::std::ptr::addr_of!((*this)._bitfield_1),
2305 ) as u32,
2306 )
2307 }
2308 }
2309 #[inline]
2310 #[allow(unnecessary_transmutes)]
2311 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2312 unsafe {
2313 let val: u32 = ::std::mem::transmute(val);
2314 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
2315 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2316 val as u64,
2317 )
2318 }
2319 }
2320 #[inline]
2321 #[allow(unnecessary_transmutes)]
2322 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2323 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2324 }
2325 #[inline]
2326 #[allow(unnecessary_transmutes)]
2327 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2328 unsafe {
2329 let val: u32 = ::std::mem::transmute(val);
2330 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2331 }
2332 }
2333 #[inline]
2334 #[allow(unnecessary_transmutes)]
2335 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2336 unsafe {
2337 ::std::mem::transmute(
2338 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2339 ::std::ptr::addr_of!((*this)._bitfield_1),
2340 ) as u32,
2341 )
2342 }
2343 }
2344 #[inline]
2345 #[allow(unnecessary_transmutes)]
2346 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2347 unsafe {
2348 let val: u32 = ::std::mem::transmute(val);
2349 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2350 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2351 val as u64,
2352 )
2353 }
2354 }
2355 #[inline]
2356 #[allow(unnecessary_transmutes)]
2357 pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2358 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2359 }
2360 #[inline]
2361 #[allow(unnecessary_transmutes)]
2362 pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2363 unsafe {
2364 let val: u32 = ::std::mem::transmute(val);
2365 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2366 }
2367 }
2368 #[inline]
2369 #[allow(unnecessary_transmutes)]
2370 pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2371 unsafe {
2372 ::std::mem::transmute(
2373 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
2374 ::std::ptr::addr_of!((*this)._bitfield_1),
2375 ) as u32,
2376 )
2377 }
2378 }
2379 #[inline]
2380 #[allow(unnecessary_transmutes)]
2381 pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2382 unsafe {
2383 let val: u32 = ::std::mem::transmute(val);
2384 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
2385 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2386 val as u64,
2387 )
2388 }
2389 }
2390 #[inline]
2391 #[allow(unnecessary_transmutes)]
2392 pub fn new_bitfield_1(
2393 running: ::std::os::raw::c_uint,
2394 thread_abort_on_exception: ::std::os::raw::c_uint,
2395 thread_report_on_exception: ::std::os::raw::c_uint,
2396 thread_ignore_deadlock: ::std::os::raw::c_uint,
2397 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2398 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2399 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2400 let running: u32 = unsafe { ::std::mem::transmute(running) };
2401 running as u64
2402 });
2403 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2404 let thread_abort_on_exception: u32 =
2405 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2406 thread_abort_on_exception as u64
2407 });
2408 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2409 let thread_report_on_exception: u32 =
2410 unsafe { ::std::mem::transmute(thread_report_on_exception) };
2411 thread_report_on_exception as u64
2412 });
2413 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2414 let thread_ignore_deadlock: u32 =
2415 unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2416 thread_ignore_deadlock as u64
2417 });
2418 __bindgen_bitfield_unit
2419 }
2420}
2421pub type rb_vm_t = rb_vm_struct;
2422#[repr(C)]
2423#[derive(Debug, Copy, Clone)]
2424pub struct rb_control_frame_struct {
2425 pub pc: *const VALUE,
2426 pub sp: *mut VALUE,
2427 pub iseq: *const rb_iseq_t,
2428 pub self_: VALUE,
2429 pub ep: *const VALUE,
2430 pub block_code: *const ::std::os::raw::c_void,
2431 pub __bp__: *mut VALUE,
2432}
2433pub type rb_control_frame_t = rb_control_frame_struct;
2434pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2435pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2436pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2437pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2438pub type rb_thread_status = ::std::os::raw::c_uint;
2439pub type rb_jmpbuf_t = sigjmp_buf;
2440#[repr(C)]
2441#[derive(Debug, Copy, Clone)]
2442pub struct rb_vm_tag {
2443 pub tag: VALUE,
2444 pub retval: VALUE,
2445 pub buf: rb_jmpbuf_t,
2446 pub prev: *mut rb_vm_tag,
2447 pub state: ruby_tag_type,
2448 pub lock_rec: ::std::os::raw::c_uint,
2449}
2450#[repr(C)]
2451#[derive(Debug, Copy, Clone)]
2452pub struct rb_vm_protect_tag {
2453 pub prev: *mut rb_vm_protect_tag,
2454}
2455#[repr(C)]
2456#[derive(Debug, Copy, Clone)]
2457pub struct rb_unblock_callback {
2458 pub func: rb_unblock_function_t,
2459 pub arg: *mut ::std::os::raw::c_void,
2460}
2461#[repr(C)]
2462#[derive(Debug)]
2463pub struct rb_mutex_struct {
2464 _unused: [u8; 0],
2465}
2466#[repr(C)]
2467#[derive(Debug, Copy, Clone)]
2468pub struct rb_ensure_entry {
2469 pub marker: VALUE,
2470 pub e_proc: ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>,
2471 pub data2: VALUE,
2472}
2473#[repr(C)]
2474#[derive(Debug, Copy, Clone)]
2475pub struct rb_ensure_list {
2476 pub next: *mut rb_ensure_list,
2477 pub entry: rb_ensure_entry,
2478}
2479pub type rb_ensure_list_t = rb_ensure_list;
2480#[repr(C)]
2481#[derive(Debug)]
2482pub struct rb_fiber_struct {
2483 _unused: [u8; 0],
2484}
2485pub type rb_fiber_t = rb_fiber_struct;
2486#[repr(C)]
2487#[derive(Debug, Copy, Clone)]
2488pub struct rb_waiting_list {
2489 pub next: *mut rb_waiting_list,
2490 pub thread: *mut rb_thread_struct,
2491 pub fiber: *mut rb_fiber_struct,
2492}
2493#[repr(C)]
2494#[derive(Debug, Copy, Clone)]
2495pub struct rb_execution_context_struct {
2496 pub vm_stack: *mut VALUE,
2497 pub vm_stack_size: usize,
2498 pub cfp: *mut rb_control_frame_t,
2499 pub tag: *mut rb_vm_tag,
2500 pub protect_tag: *mut rb_vm_protect_tag,
2501 pub interrupt_flag: rb_atomic_t,
2502 pub interrupt_mask: rb_atomic_t,
2503 pub fiber_ptr: *mut rb_fiber_t,
2504 pub thread_ptr: *mut rb_thread_struct,
2505 pub local_storage: *mut rb_id_table,
2506 pub local_storage_recursive_hash: VALUE,
2507 pub local_storage_recursive_hash_for_trace: VALUE,
2508 pub root_lep: *const VALUE,
2509 pub root_svar: VALUE,
2510 pub ensure_list: *mut rb_ensure_list_t,
2511 pub trace_arg: *mut rb_trace_arg_struct,
2512 pub errinfo: VALUE,
2513 pub passed_block_handler: VALUE,
2514 pub raised_flag: u8,
2515 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2516 pub private_const_reference: VALUE,
2517 pub machine: rb_execution_context_struct__bindgen_ty_1,
2518}
2519#[repr(C)]
2520#[derive(Debug, Copy, Clone)]
2521pub struct rb_execution_context_struct__bindgen_ty_1 {
2522 pub stack_start: *mut VALUE,
2523 pub stack_end: *mut VALUE,
2524 pub stack_maxsize: usize,
2525 pub regs: jmp_buf,
2526}
2527impl rb_execution_context_struct {
2528 #[inline]
2529 #[allow(unnecessary_transmutes)]
2530 pub fn method_missing_reason(&self) -> method_missing_reason {
2531 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 8u8>() as u32) }
2532 }
2533 #[inline]
2534 #[allow(unnecessary_transmutes)]
2535 pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2536 unsafe {
2537 let val: u32 = ::std::mem::transmute(val);
2538 self._bitfield_1.set_const::<0usize, 8u8>(val as u64)
2539 }
2540 }
2541 #[inline]
2542 #[allow(unnecessary_transmutes)]
2543 pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2544 unsafe {
2545 ::std::mem::transmute(
2546 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 8u8>(
2547 ::std::ptr::addr_of!((*this)._bitfield_1),
2548 ) as u32,
2549 )
2550 }
2551 }
2552 #[inline]
2553 #[allow(unnecessary_transmutes)]
2554 pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2555 unsafe {
2556 let val: u32 = ::std::mem::transmute(val);
2557 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 8u8>(
2558 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2559 val as u64,
2560 )
2561 }
2562 }
2563 #[inline]
2564 #[allow(unnecessary_transmutes)]
2565 pub fn new_bitfield_1(
2566 method_missing_reason: method_missing_reason,
2567 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2568 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2569 __bindgen_bitfield_unit.set_const::<0usize, 8u8>({
2570 let method_missing_reason: u32 =
2571 unsafe { ::std::mem::transmute(method_missing_reason) };
2572 method_missing_reason as u64
2573 });
2574 __bindgen_bitfield_unit
2575 }
2576}
2577pub type rb_execution_context_t = rb_execution_context_struct;
2578#[repr(C)]
2579#[derive(Debug, Copy, Clone)]
2580pub struct rb_ext_config {
2581 pub ractor_safe: u8,
2582}
2583pub type rb_ractor_t = rb_ractor_struct;
2584#[repr(C)]
2585#[derive(Copy, Clone)]
2586pub struct rb_thread_struct {
2587 pub lt_node: list_node,
2588 pub self_: VALUE,
2589 pub ractor: *mut rb_ractor_t,
2590 pub vm: *mut rb_vm_t,
2591 pub ec: *mut rb_execution_context_t,
2592 pub last_status: VALUE,
2593 pub calling: *mut rb_calling_info,
2594 pub top_self: VALUE,
2595 pub top_wrapper: VALUE,
2596 pub thread_id: rb_nativethread_id_t,
2597 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2598 pub priority: i8,
2599 pub running_time_us: u32,
2600 pub native_thread_data: native_thread_data_t,
2601 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2602 pub thgroup: VALUE,
2603 pub value: VALUE,
2604 pub pending_interrupt_queue: VALUE,
2605 pub pending_interrupt_mask_stack: VALUE,
2606 pub interrupt_lock: rb_nativethread_lock_t,
2607 pub unblock: rb_unblock_callback,
2608 pub locking_mutex: VALUE,
2609 pub keeping_mutexes: *mut rb_mutex_struct,
2610 pub join_list: *mut rb_waiting_list,
2611 pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2612 pub invoke_type: rb_thread_struct_thread_invoke_type,
2613 pub stat_insn_usage: VALUE,
2614 pub root_fiber: *mut rb_fiber_t,
2615 pub root_jmpbuf: rb_jmpbuf_t,
2616 pub scheduler: VALUE,
2617 pub blocking: ::std::os::raw::c_uint,
2618 pub name: VALUE,
2619 pub ext_config: rb_ext_config,
2620 pub altstack: *mut ::std::os::raw::c_void,
2621}
2622#[repr(C)]
2623#[derive(Copy, Clone)]
2624pub union rb_thread_struct__bindgen_ty_1 {
2625 pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2626 pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2627}
2628#[repr(C)]
2629#[derive(Debug, Copy, Clone)]
2630pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2631 pub proc_: VALUE,
2632 pub args: VALUE,
2633 pub kw_splat: ::std::os::raw::c_int,
2634}
2635#[repr(C)]
2636#[derive(Debug, Copy, Clone)]
2637pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2638 pub func:
2639 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
2640 pub arg: *mut ::std::os::raw::c_void,
2641}
2642impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2643 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2644 write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2645 }
2646}
2647pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
2648 rb_thread_struct_thread_invoke_type = 0;
2649pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
2650 rb_thread_struct_thread_invoke_type = 1;
2651pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
2652 rb_thread_struct_thread_invoke_type = 2;
2653pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
2654 rb_thread_struct_thread_invoke_type = 3;
2655pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
2656impl ::std::fmt::Debug for rb_thread_struct {
2657 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2658 write ! (f , "rb_thread_struct {{ lt_node: {:?}, self: {:?}, ractor: {:?}, vm: {:?}, ec: {:?}, last_status: {:?}, calling: {:?}, top_self: {:?}, top_wrapper: {:?}, thread_id: {:?}, status : {:?}, to_kill : {:?}, abort_on_exception : {:?}, report_on_exception : {:?}, pending_interrupt_queue_checked : {:?}, native_thread_data: {:?}, blocking_region_buffer: {:?}, thgroup: {:?}, value: {:?}, pending_interrupt_queue: {:?}, pending_interrupt_mask_stack: {:?}, interrupt_lock: {:?}, unblock: {:?}, locking_mutex: {:?}, keeping_mutexes: {:?}, join_list: {:?}, invoke_arg: {:?}, invoke_type: {:?}, stat_insn_usage: {:?}, root_fiber: {:?}, root_jmpbuf: {:?}, scheduler: {:?}, blocking: {:?}, name: {:?}, ext_config: {:?}, altstack: {:?} }}" , self . lt_node , self . self_ , self . ractor , self . vm , self . ec , self . last_status , self . calling , self . top_self , self . top_wrapper , self . thread_id , self . status () , self . to_kill () , self . abort_on_exception () , self . report_on_exception () , self . pending_interrupt_queue_checked () , self . native_thread_data , self . blocking_region_buffer , self . thgroup , self . value , self . pending_interrupt_queue , self . pending_interrupt_mask_stack , self . interrupt_lock , self . unblock , self . locking_mutex , self . keeping_mutexes , self . join_list , self . invoke_arg , self . invoke_type , self . stat_insn_usage , self . root_fiber , self . root_jmpbuf , self . scheduler , self . blocking , self . name , self . ext_config , self . altstack)
2659 }
2660}
2661impl rb_thread_struct {
2662 #[inline]
2663 #[allow(unnecessary_transmutes)]
2664 pub fn status(&self) -> rb_thread_status {
2665 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 2u8>() as u32) }
2666 }
2667 #[inline]
2668 #[allow(unnecessary_transmutes)]
2669 pub fn set_status(&mut self, val: rb_thread_status) {
2670 unsafe {
2671 let val: u32 = ::std::mem::transmute(val);
2672 self._bitfield_1.set_const::<0usize, 2u8>(val as u64)
2673 }
2674 }
2675 #[inline]
2676 #[allow(unnecessary_transmutes)]
2677 pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2678 unsafe {
2679 ::std::mem::transmute(
2680 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 2u8>(
2681 ::std::ptr::addr_of!((*this)._bitfield_1),
2682 ) as u32,
2683 )
2684 }
2685 }
2686 #[inline]
2687 #[allow(unnecessary_transmutes)]
2688 pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2689 unsafe {
2690 let val: u32 = ::std::mem::transmute(val);
2691 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 2u8>(
2692 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2693 val as u64,
2694 )
2695 }
2696 }
2697 #[inline]
2698 #[allow(unnecessary_transmutes)]
2699 pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2700 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2701 }
2702 #[inline]
2703 #[allow(unnecessary_transmutes)]
2704 pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2705 unsafe {
2706 let val: u32 = ::std::mem::transmute(val);
2707 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2708 }
2709 }
2710 #[inline]
2711 #[allow(unnecessary_transmutes)]
2712 pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2713 unsafe {
2714 ::std::mem::transmute(
2715 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2716 ::std::ptr::addr_of!((*this)._bitfield_1),
2717 ) as u32,
2718 )
2719 }
2720 }
2721 #[inline]
2722 #[allow(unnecessary_transmutes)]
2723 pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2724 unsafe {
2725 let val: u32 = ::std::mem::transmute(val);
2726 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2727 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2728 val as u64,
2729 )
2730 }
2731 }
2732 #[inline]
2733 #[allow(unnecessary_transmutes)]
2734 pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2735 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2736 }
2737 #[inline]
2738 #[allow(unnecessary_transmutes)]
2739 pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2740 unsafe {
2741 let val: u32 = ::std::mem::transmute(val);
2742 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2743 }
2744 }
2745 #[inline]
2746 #[allow(unnecessary_transmutes)]
2747 pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2748 unsafe {
2749 ::std::mem::transmute(
2750 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
2751 ::std::ptr::addr_of!((*this)._bitfield_1),
2752 ) as u32,
2753 )
2754 }
2755 }
2756 #[inline]
2757 #[allow(unnecessary_transmutes)]
2758 pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2759 unsafe {
2760 let val: u32 = ::std::mem::transmute(val);
2761 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
2762 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2763 val as u64,
2764 )
2765 }
2766 }
2767 #[inline]
2768 #[allow(unnecessary_transmutes)]
2769 pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2770 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
2771 }
2772 #[inline]
2773 #[allow(unnecessary_transmutes)]
2774 pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2775 unsafe {
2776 let val: u32 = ::std::mem::transmute(val);
2777 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
2778 }
2779 }
2780 #[inline]
2781 #[allow(unnecessary_transmutes)]
2782 pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2783 unsafe {
2784 ::std::mem::transmute(
2785 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
2786 ::std::ptr::addr_of!((*this)._bitfield_1),
2787 ) as u32,
2788 )
2789 }
2790 }
2791 #[inline]
2792 #[allow(unnecessary_transmutes)]
2793 pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2794 unsafe {
2795 let val: u32 = ::std::mem::transmute(val);
2796 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
2797 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2798 val as u64,
2799 )
2800 }
2801 }
2802 #[inline]
2803 #[allow(unnecessary_transmutes)]
2804 pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
2805 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
2806 }
2807 #[inline]
2808 #[allow(unnecessary_transmutes)]
2809 pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
2810 unsafe {
2811 let val: u32 = ::std::mem::transmute(val);
2812 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
2813 }
2814 }
2815 #[inline]
2816 #[allow(unnecessary_transmutes)]
2817 pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
2818 unsafe {
2819 ::std::mem::transmute(
2820 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
2821 ::std::ptr::addr_of!((*this)._bitfield_1),
2822 ) as u32,
2823 )
2824 }
2825 }
2826 #[inline]
2827 #[allow(unnecessary_transmutes)]
2828 pub unsafe fn set_pending_interrupt_queue_checked_raw(
2829 this: *mut Self,
2830 val: ::std::os::raw::c_uint,
2831 ) {
2832 unsafe {
2833 let val: u32 = ::std::mem::transmute(val);
2834 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
2835 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2836 val as u64,
2837 )
2838 }
2839 }
2840 #[inline]
2841 #[allow(unnecessary_transmutes)]
2842 pub fn new_bitfield_1(
2843 status: rb_thread_status,
2844 to_kill: ::std::os::raw::c_uint,
2845 abort_on_exception: ::std::os::raw::c_uint,
2846 report_on_exception: ::std::os::raw::c_uint,
2847 pending_interrupt_queue_checked: ::std::os::raw::c_uint,
2848 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2849 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2850 __bindgen_bitfield_unit.set_const::<0usize, 2u8>({
2851 let status: u32 = unsafe { ::std::mem::transmute(status) };
2852 status as u64
2853 });
2854 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2855 let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
2856 to_kill as u64
2857 });
2858 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2859 let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2860 abort_on_exception as u64
2861 });
2862 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
2863 let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2864 report_on_exception as u64
2865 });
2866 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
2867 let pending_interrupt_queue_checked: u32 =
2868 unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
2869 pending_interrupt_queue_checked as u64
2870 });
2871 __bindgen_bitfield_unit
2872 }
2873}
2874pub type rb_thread_t = rb_thread_struct;
2875#[repr(C)]
2876#[derive(Debug, Copy, Clone)]
2877pub struct rb_trace_arg_struct {
2878 pub event: rb_event_flag_t,
2879 pub ec: *mut rb_execution_context_t,
2880 pub cfp: *const rb_control_frame_t,
2881 pub self_: VALUE,
2882 pub id: ID,
2883 pub called_id: ID,
2884 pub klass: VALUE,
2885 pub data: VALUE,
2886 pub klass_solved: ::std::os::raw::c_int,
2887 pub lineno: ::std::os::raw::c_int,
2888 pub path: VALUE,
2889}
2890#[repr(C)]
2891#[derive(Debug, Copy, Clone)]
2892pub struct rb_ractor_pub {
2893 pub self_: VALUE,
2894 pub id: u32,
2895 pub hooks: rb_hook_list_t,
2896}
2897pub const rb_ractor_basket_type_basket_type_none: rb_ractor_basket_type = 0;
2898pub const rb_ractor_basket_type_basket_type_ref: rb_ractor_basket_type = 1;
2899pub const rb_ractor_basket_type_basket_type_copy: rb_ractor_basket_type = 2;
2900pub const rb_ractor_basket_type_basket_type_move: rb_ractor_basket_type = 3;
2901pub const rb_ractor_basket_type_basket_type_will: rb_ractor_basket_type = 4;
2902pub const rb_ractor_basket_type_basket_type_deleted: rb_ractor_basket_type = 5;
2903pub const rb_ractor_basket_type_basket_type_reserved: rb_ractor_basket_type = 6;
2904pub type rb_ractor_basket_type = ::std::os::raw::c_uint;
2905#[repr(C)]
2906#[derive(Debug, Copy, Clone)]
2907pub struct rb_ractor_basket {
2908 pub exception: u8,
2909 pub type_: rb_ractor_basket_type,
2910 pub v: VALUE,
2911 pub sender: VALUE,
2912}
2913#[repr(C)]
2914#[derive(Debug, Copy, Clone)]
2915pub struct rb_ractor_queue {
2916 pub baskets: *mut rb_ractor_basket,
2917 pub start: ::std::os::raw::c_int,
2918 pub cnt: ::std::os::raw::c_int,
2919 pub size: ::std::os::raw::c_int,
2920 pub serial: ::std::os::raw::c_uint,
2921 pub reserved_cnt: ::std::os::raw::c_uint,
2922}
2923#[repr(C)]
2924#[derive(Debug, Copy, Clone)]
2925pub struct rb_ractor_waiting_list {
2926 pub cnt: ::std::os::raw::c_int,
2927 pub size: ::std::os::raw::c_int,
2928 pub ractors: *mut *mut rb_ractor_t,
2929}
2930#[repr(C)]
2931#[derive(Copy, Clone)]
2932pub struct rb_ractor_sync {
2933 pub lock: rb_nativethread_lock_t,
2934 pub cond: rb_nativethread_cond_t,
2935 pub incoming_queue: rb_ractor_queue,
2936 pub taking_ractors: rb_ractor_waiting_list,
2937 pub incoming_port_closed: u8,
2938 pub outgoing_port_closed: u8,
2939 pub wait: rb_ractor_sync_ractor_wait,
2940}
2941#[repr(C)]
2942#[derive(Debug, Copy, Clone)]
2943pub struct rb_ractor_sync_ractor_wait {
2944 pub status: rb_ractor_sync_ractor_wait_ractor_wait_status,
2945 pub wakeup_status: rb_ractor_sync_ractor_wait_ractor_wakeup_status,
2946 pub yielded_basket: rb_ractor_basket,
2947 pub taken_basket: rb_ractor_basket,
2948}
2949pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_none:
2950 rb_ractor_sync_ractor_wait_ractor_wait_status = 0;
2951pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_receiving:
2952 rb_ractor_sync_ractor_wait_ractor_wait_status = 1;
2953pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_taking:
2954 rb_ractor_sync_ractor_wait_ractor_wait_status = 2;
2955pub const rb_ractor_sync_ractor_wait_ractor_wait_status_wait_yielding:
2956 rb_ractor_sync_ractor_wait_ractor_wait_status = 4;
2957pub type rb_ractor_sync_ractor_wait_ractor_wait_status = ::std::os::raw::c_uint;
2958pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_none:
2959 rb_ractor_sync_ractor_wait_ractor_wakeup_status = 0;
2960pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_send:
2961 rb_ractor_sync_ractor_wait_ractor_wakeup_status = 1;
2962pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_yield:
2963 rb_ractor_sync_ractor_wait_ractor_wakeup_status = 2;
2964pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_take:
2965 rb_ractor_sync_ractor_wait_ractor_wakeup_status = 3;
2966pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_close:
2967 rb_ractor_sync_ractor_wait_ractor_wakeup_status = 4;
2968pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_interrupt:
2969 rb_ractor_sync_ractor_wait_ractor_wakeup_status = 5;
2970pub const rb_ractor_sync_ractor_wait_ractor_wakeup_status_wakeup_by_retry:
2971 rb_ractor_sync_ractor_wait_ractor_wakeup_status = 6;
2972pub type rb_ractor_sync_ractor_wait_ractor_wakeup_status = ::std::os::raw::c_uint;
2973impl ::std::fmt::Debug for rb_ractor_sync {
2974 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2975 write ! (f , "rb_ractor_sync {{ lock: {:?}, cond: {:?}, incoming_queue: {:?}, taking_ractors: {:?}, incoming_port_closed: {:?}, outgoing_port_closed: {:?}, wait: {:?} }}" , self . lock , self . cond , self . incoming_queue , self . taking_ractors , self . incoming_port_closed , self . outgoing_port_closed , self . wait)
2976 }
2977}
2978#[repr(C)]
2979#[derive(Copy, Clone)]
2980pub struct rb_ractor_struct {
2981 pub pub_: rb_ractor_pub,
2982 pub sync: rb_ractor_sync,
2983 pub receiving_mutex: VALUE,
2984 pub yield_atexit: u8,
2985 pub barrier_wait_cond: rb_nativethread_cond_t,
2986 pub threads: rb_ractor_struct__bindgen_ty_1,
2987 pub thgroup_default: VALUE,
2988 pub name: VALUE,
2989 pub loc: VALUE,
2990 pub status_: rb_ractor_struct_ractor_status,
2991 pub vmlr_node: list_node,
2992 pub local_storage: *mut st_table,
2993 pub idkey_local_storage: *mut rb_id_table,
2994 pub r_stdin: VALUE,
2995 pub r_stdout: VALUE,
2996 pub r_stderr: VALUE,
2997 pub verbose: VALUE,
2998 pub debug: VALUE,
2999 pub newobj_cache: rb_ractor_struct__bindgen_ty_2,
3000 pub mfd: *mut rb_ractor_struct_gc_mark_func_data_struct,
3001}
3002#[repr(C)]
3003#[derive(Copy, Clone)]
3004pub struct rb_ractor_struct__bindgen_ty_1 {
3005 pub set: list_head,
3006 pub cnt: ::std::os::raw::c_uint,
3007 pub blocking_cnt: ::std::os::raw::c_uint,
3008 pub sleeper: ::std::os::raw::c_uint,
3009 pub gvl: rb_global_vm_lock_t,
3010 pub running_ec: *mut rb_execution_context_t,
3011 pub main: *mut rb_thread_t,
3012}
3013impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
3014 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3015 write ! (f , "rb_ractor_struct__bindgen_ty_1 {{ set: {:?}, cnt: {:?}, blocking_cnt: {:?}, sleeper: {:?}, gvl: {:?}, running_ec: {:?}, main: {:?} }}" , self . set , self . cnt , self . blocking_cnt , self . sleeper , self . gvl , self . running_ec , self . main)
3016 }
3017}
3018pub const rb_ractor_struct_ractor_status_ractor_created: rb_ractor_struct_ractor_status = 0;
3019pub const rb_ractor_struct_ractor_status_ractor_running: rb_ractor_struct_ractor_status = 1;
3020pub const rb_ractor_struct_ractor_status_ractor_blocking: rb_ractor_struct_ractor_status = 2;
3021pub const rb_ractor_struct_ractor_status_ractor_terminated: rb_ractor_struct_ractor_status = 3;
3022pub type rb_ractor_struct_ractor_status = ::std::os::raw::c_uint;
3023#[repr(C)]
3024#[derive(Debug, Copy, Clone)]
3025pub struct rb_ractor_struct__bindgen_ty_2 {
3026 pub freelist: *mut RVALUE,
3027 pub using_page: *mut heap_page,
3028}
3029#[repr(C)]
3030#[derive(Debug, Copy, Clone)]
3031pub struct rb_ractor_struct_gc_mark_func_data_struct {
3032 pub data: *mut ::std::os::raw::c_void,
3033 pub mark_func:
3034 ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
3035}
3036impl ::std::fmt::Debug for rb_ractor_struct {
3037 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3038 write ! (f , "rb_ractor_struct {{ pub: {:?}, sync: {:?}, receiving_mutex: {:?}, yield_atexit: {:?}, 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 . yield_atexit , 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)
3039 }
3040}
3041#[repr(C)]
3042#[derive(Debug, Copy, Clone)]
3043pub struct iseq_compile_data {
3044 pub err_info: VALUE,
3045 pub catch_table_ary: VALUE,
3046 pub start_label: *mut iseq_label_data,
3047 pub end_label: *mut iseq_label_data,
3048 pub redo_label: *mut iseq_label_data,
3049 pub current_block: *const rb_iseq_t,
3050 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
3051 pub node: iseq_compile_data__bindgen_ty_1,
3052 pub insn: iseq_compile_data__bindgen_ty_2,
3053 pub loopval_popped: ::std::os::raw::c_int,
3054 pub last_line: ::std::os::raw::c_int,
3055 pub label_no: ::std::os::raw::c_int,
3056 pub node_level: ::std::os::raw::c_int,
3057 pub isolated_depth: ::std::os::raw::c_int,
3058 pub ci_index: ::std::os::raw::c_uint,
3059 pub option: *const rb_compile_option_t,
3060 pub ivar_cache_table: *mut rb_id_table,
3061 pub builtin_function_table: *const rb_builtin_function,
3062}
3063#[repr(C)]
3064#[derive(Debug, Copy, Clone)]
3065pub struct iseq_compile_data__bindgen_ty_1 {
3066 pub storage_head: *mut iseq_compile_data_storage,
3067 pub storage_current: *mut iseq_compile_data_storage,
3068}
3069#[repr(C)]
3070#[derive(Debug, Copy, Clone)]
3071pub struct iseq_compile_data__bindgen_ty_2 {
3072 pub storage_head: *mut iseq_compile_data_storage,
3073 pub storage_current: *mut iseq_compile_data_storage,
3074}
3075#[repr(C)]
3076#[derive(Debug, Copy, Clone)]
3077pub struct rb_compile_option_struct {
3078 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
3079 pub debug_level: ::std::os::raw::c_int,
3080}
3081impl rb_compile_option_struct {
3082 #[inline]
3083 #[allow(unnecessary_transmutes)]
3084 pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
3085 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
3086 }
3087 #[inline]
3088 #[allow(unnecessary_transmutes)]
3089 pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
3090 unsafe {
3091 let val: u32 = ::std::mem::transmute(val);
3092 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
3093 }
3094 }
3095 #[inline]
3096 #[allow(unnecessary_transmutes)]
3097 pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
3098 unsafe {
3099 ::std::mem::transmute(
3100 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(
3101 ::std::ptr::addr_of!((*this)._bitfield_1),
3102 ) as u32,
3103 )
3104 }
3105 }
3106 #[inline]
3107 #[allow(unnecessary_transmutes)]
3108 pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3109 unsafe {
3110 let val: u32 = ::std::mem::transmute(val);
3111 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(
3112 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3113 val as u64,
3114 )
3115 }
3116 }
3117 #[inline]
3118 #[allow(unnecessary_transmutes)]
3119 pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
3120 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
3121 }
3122 #[inline]
3123 #[allow(unnecessary_transmutes)]
3124 pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
3125 unsafe {
3126 let val: u32 = ::std::mem::transmute(val);
3127 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
3128 }
3129 }
3130 #[inline]
3131 #[allow(unnecessary_transmutes)]
3132 pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3133 unsafe {
3134 ::std::mem::transmute(
3135 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(
3136 ::std::ptr::addr_of!((*this)._bitfield_1),
3137 ) as u32,
3138 )
3139 }
3140 }
3141 #[inline]
3142 #[allow(unnecessary_transmutes)]
3143 pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3144 unsafe {
3145 let val: u32 = ::std::mem::transmute(val);
3146 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(
3147 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3148 val as u64,
3149 )
3150 }
3151 }
3152 #[inline]
3153 #[allow(unnecessary_transmutes)]
3154 pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3155 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
3156 }
3157 #[inline]
3158 #[allow(unnecessary_transmutes)]
3159 pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3160 unsafe {
3161 let val: u32 = ::std::mem::transmute(val);
3162 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
3163 }
3164 }
3165 #[inline]
3166 #[allow(unnecessary_transmutes)]
3167 pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3168 unsafe {
3169 ::std::mem::transmute(
3170 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(
3171 ::std::ptr::addr_of!((*this)._bitfield_1),
3172 ) as u32,
3173 )
3174 }
3175 }
3176 #[inline]
3177 #[allow(unnecessary_transmutes)]
3178 pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3179 unsafe {
3180 let val: u32 = ::std::mem::transmute(val);
3181 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(
3182 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3183 val as u64,
3184 )
3185 }
3186 }
3187 #[inline]
3188 #[allow(unnecessary_transmutes)]
3189 pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3190 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
3191 }
3192 #[inline]
3193 #[allow(unnecessary_transmutes)]
3194 pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3195 unsafe {
3196 let val: u32 = ::std::mem::transmute(val);
3197 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
3198 }
3199 }
3200 #[inline]
3201 #[allow(unnecessary_transmutes)]
3202 pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3203 unsafe {
3204 ::std::mem::transmute(
3205 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(
3206 ::std::ptr::addr_of!((*this)._bitfield_1),
3207 ) as u32,
3208 )
3209 }
3210 }
3211 #[inline]
3212 #[allow(unnecessary_transmutes)]
3213 pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3214 unsafe {
3215 let val: u32 = ::std::mem::transmute(val);
3216 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(
3217 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3218 val as u64,
3219 )
3220 }
3221 }
3222 #[inline]
3223 #[allow(unnecessary_transmutes)]
3224 pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3225 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
3226 }
3227 #[inline]
3228 #[allow(unnecessary_transmutes)]
3229 pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3230 unsafe {
3231 let val: u32 = ::std::mem::transmute(val);
3232 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
3233 }
3234 }
3235 #[inline]
3236 #[allow(unnecessary_transmutes)]
3237 pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3238 unsafe {
3239 ::std::mem::transmute(
3240 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(
3241 ::std::ptr::addr_of!((*this)._bitfield_1),
3242 ) as u32,
3243 )
3244 }
3245 }
3246 #[inline]
3247 #[allow(unnecessary_transmutes)]
3248 pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3249 unsafe {
3250 let val: u32 = ::std::mem::transmute(val);
3251 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(
3252 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3253 val as u64,
3254 )
3255 }
3256 }
3257 #[inline]
3258 #[allow(unnecessary_transmutes)]
3259 pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3260 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
3261 }
3262 #[inline]
3263 #[allow(unnecessary_transmutes)]
3264 pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3265 unsafe {
3266 let val: u32 = ::std::mem::transmute(val);
3267 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
3268 }
3269 }
3270 #[inline]
3271 #[allow(unnecessary_transmutes)]
3272 pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3273 unsafe {
3274 ::std::mem::transmute(
3275 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<5usize, 1u8>(
3276 ::std::ptr::addr_of!((*this)._bitfield_1),
3277 ) as u32,
3278 )
3279 }
3280 }
3281 #[inline]
3282 #[allow(unnecessary_transmutes)]
3283 pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3284 unsafe {
3285 let val: u32 = ::std::mem::transmute(val);
3286 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<5usize, 1u8>(
3287 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3288 val as u64,
3289 )
3290 }
3291 }
3292 #[inline]
3293 #[allow(unnecessary_transmutes)]
3294 pub fn stack_caching(&self) -> ::std::os::raw::c_uint {
3295 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
3296 }
3297 #[inline]
3298 #[allow(unnecessary_transmutes)]
3299 pub fn set_stack_caching(&mut self, val: ::std::os::raw::c_uint) {
3300 unsafe {
3301 let val: u32 = ::std::mem::transmute(val);
3302 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
3303 }
3304 }
3305 #[inline]
3306 #[allow(unnecessary_transmutes)]
3307 pub unsafe fn stack_caching_raw(this: *const Self) -> ::std::os::raw::c_uint {
3308 unsafe {
3309 ::std::mem::transmute(
3310 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<6usize, 1u8>(
3311 ::std::ptr::addr_of!((*this)._bitfield_1),
3312 ) as u32,
3313 )
3314 }
3315 }
3316 #[inline]
3317 #[allow(unnecessary_transmutes)]
3318 pub unsafe fn set_stack_caching_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3319 unsafe {
3320 let val: u32 = ::std::mem::transmute(val);
3321 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<6usize, 1u8>(
3322 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3323 val as u64,
3324 )
3325 }
3326 }
3327 #[inline]
3328 #[allow(unnecessary_transmutes)]
3329 pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3330 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
3331 }
3332 #[inline]
3333 #[allow(unnecessary_transmutes)]
3334 pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3335 unsafe {
3336 let val: u32 = ::std::mem::transmute(val);
3337 self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
3338 }
3339 }
3340 #[inline]
3341 #[allow(unnecessary_transmutes)]
3342 pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3343 unsafe {
3344 ::std::mem::transmute(
3345 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(
3346 ::std::ptr::addr_of!((*this)._bitfield_1),
3347 ) as u32,
3348 )
3349 }
3350 }
3351 #[inline]
3352 #[allow(unnecessary_transmutes)]
3353 pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3354 unsafe {
3355 let val: u32 = ::std::mem::transmute(val);
3356 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(
3357 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3358 val as u64,
3359 )
3360 }
3361 }
3362 #[inline]
3363 #[allow(unnecessary_transmutes)]
3364 pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3365 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) }
3366 }
3367 #[inline]
3368 #[allow(unnecessary_transmutes)]
3369 pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3370 unsafe {
3371 let val: u32 = ::std::mem::transmute(val);
3372 self._bitfield_1.set_const::<8usize, 1u8>(val as u64)
3373 }
3374 }
3375 #[inline]
3376 #[allow(unnecessary_transmutes)]
3377 pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3378 unsafe {
3379 ::std::mem::transmute(
3380 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(
3381 ::std::ptr::addr_of!((*this)._bitfield_1),
3382 ) as u32,
3383 )
3384 }
3385 }
3386 #[inline]
3387 #[allow(unnecessary_transmutes)]
3388 pub unsafe fn set_debug_frozen_string_literal_raw(
3389 this: *mut Self,
3390 val: ::std::os::raw::c_uint,
3391 ) {
3392 unsafe {
3393 let val: u32 = ::std::mem::transmute(val);
3394 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(
3395 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3396 val as u64,
3397 )
3398 }
3399 }
3400 #[inline]
3401 #[allow(unnecessary_transmutes)]
3402 pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3403 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u32) }
3404 }
3405 #[inline]
3406 #[allow(unnecessary_transmutes)]
3407 pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3408 unsafe {
3409 let val: u32 = ::std::mem::transmute(val);
3410 self._bitfield_1.set_const::<9usize, 1u8>(val as u64)
3411 }
3412 }
3413 #[inline]
3414 #[allow(unnecessary_transmutes)]
3415 pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3416 unsafe {
3417 ::std::mem::transmute(
3418 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(
3419 ::std::ptr::addr_of!((*this)._bitfield_1),
3420 ) as u32,
3421 )
3422 }
3423 }
3424 #[inline]
3425 #[allow(unnecessary_transmutes)]
3426 pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3427 unsafe {
3428 let val: u32 = ::std::mem::transmute(val);
3429 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(
3430 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3431 val as u64,
3432 )
3433 }
3434 }
3435 #[inline]
3436 #[allow(unnecessary_transmutes)]
3437 pub fn new_bitfield_1(
3438 inline_const_cache: ::std::os::raw::c_uint,
3439 peephole_optimization: ::std::os::raw::c_uint,
3440 tailcall_optimization: ::std::os::raw::c_uint,
3441 specialized_instruction: ::std::os::raw::c_uint,
3442 operands_unification: ::std::os::raw::c_uint,
3443 instructions_unification: ::std::os::raw::c_uint,
3444 stack_caching: ::std::os::raw::c_uint,
3445 frozen_string_literal: ::std::os::raw::c_uint,
3446 debug_frozen_string_literal: ::std::os::raw::c_uint,
3447 coverage_enabled: ::std::os::raw::c_uint,
3448 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3449 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3450 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
3451 let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3452 inline_const_cache as u64
3453 });
3454 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
3455 let peephole_optimization: u32 =
3456 unsafe { ::std::mem::transmute(peephole_optimization) };
3457 peephole_optimization as u64
3458 });
3459 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
3460 let tailcall_optimization: u32 =
3461 unsafe { ::std::mem::transmute(tailcall_optimization) };
3462 tailcall_optimization as u64
3463 });
3464 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
3465 let specialized_instruction: u32 =
3466 unsafe { ::std::mem::transmute(specialized_instruction) };
3467 specialized_instruction as u64
3468 });
3469 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
3470 let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3471 operands_unification as u64
3472 });
3473 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
3474 let instructions_unification: u32 =
3475 unsafe { ::std::mem::transmute(instructions_unification) };
3476 instructions_unification as u64
3477 });
3478 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
3479 let stack_caching: u32 = unsafe { ::std::mem::transmute(stack_caching) };
3480 stack_caching as u64
3481 });
3482 __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
3483 let frozen_string_literal: u32 =
3484 unsafe { ::std::mem::transmute(frozen_string_literal) };
3485 frozen_string_literal as u64
3486 });
3487 __bindgen_bitfield_unit.set_const::<8usize, 1u8>({
3488 let debug_frozen_string_literal: u32 =
3489 unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3490 debug_frozen_string_literal as u64
3491 });
3492 __bindgen_bitfield_unit.set_const::<9usize, 1u8>({
3493 let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3494 coverage_enabled as u64
3495 });
3496 __bindgen_bitfield_unit
3497 }
3498}
3499#[repr(C)]
3500#[derive(Debug, Copy, Clone)]
3501pub struct iseq_insn_info_entry {
3502 pub line_no: ::std::os::raw::c_int,
3503 pub events: rb_event_flag_t,
3504}
3505#[repr(C)]
3506#[derive(Debug, Copy, Clone)]
3507pub struct iseq_catch_table_entry {
3508 pub type_: iseq_catch_table_entry_catch_type,
3509 pub iseq: *mut rb_iseq_t,
3510 pub start: ::std::os::raw::c_uint,
3511 pub end: ::std::os::raw::c_uint,
3512 pub cont: ::std::os::raw::c_uint,
3513 pub sp: ::std::os::raw::c_uint,
3514}
3515pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
3516 3;
3517pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
3518 5;
3519pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
3520pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
3521pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
3522pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
3523pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
3524#[repr(C, packed)]
3525pub struct iseq_catch_table {
3526 pub size: ::std::os::raw::c_uint,
3527 pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3528}
3529#[repr(C)]
3530#[derive(Debug)]
3531pub struct iseq_compile_data_storage {
3532 pub next: *mut iseq_compile_data_storage,
3533 pub pos: ::std::os::raw::c_uint,
3534 pub size: ::std::os::raw::c_uint,
3535 pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3536}
3537#[repr(C)]
3538#[derive(Debug, Copy, Clone)]
3539pub struct rb_iv_index_tbl_entry {
3540 pub _address: u8,
3541}
3542#[repr(C)]
3543#[derive(Debug, Copy, Clone)]
3544pub struct succ_index_table {
3545 pub _address: u8,
3546}
3547#[repr(C)]
3548#[derive(Debug, Copy, Clone)]
3549pub struct rb_call_data {
3550 pub _address: u8,
3551}
3552#[repr(C)]
3553#[derive(Debug, Copy, Clone)]
3554pub struct rb_event_hook_struct {
3555 pub _address: u8,
3556}
3557#[repr(C)]
3558#[derive(Debug, Copy, Clone)]
3559pub struct rb_postponed_job_struct {
3560 pub _address: u8,
3561}
3562#[repr(C)]
3563#[derive(Debug, Copy, Clone)]
3564pub struct RVALUE {
3565 pub _address: u8,
3566}
3567#[repr(C)]
3568#[derive(Debug, Copy, Clone)]
3569pub struct heap_page {
3570 pub _address: u8,
3571}
3572#[repr(C)]
3573#[derive(Debug, Copy, Clone)]
3574pub struct iseq_label_data {
3575 pub _address: u8,
3576}
3577#[repr(C)]
3578#[derive(Debug, Copy, Clone)]
3579pub struct iseq_compile_data_ensure_node_stack {
3580 pub _address: u8,
3581}