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