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 = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize);
40 Self::extract_bit(byte, index)
41 }
42 #[inline]
43 fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
44 let bit_index = if cfg!(target_endian = "big") {
45 7 - (index % 8)
46 } else {
47 index % 8
48 };
49 let mask = 1 << bit_index;
50 if val {
51 byte | mask
52 } else {
53 byte & !mask
54 }
55 }
56 #[inline]
57 pub fn set_bit(&mut self, index: usize, val: bool) {
58 debug_assert!(index / 8 < self.storage.as_ref().len());
59 let byte_index = index / 8;
60 let byte = &mut self.storage.as_mut()[byte_index];
61 *byte = Self::change_bit(*byte, index, val);
62 }
63 #[inline]
64 pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
65 debug_assert!(index / 8 < core::mem::size_of::<Storage>());
66 let byte_index = index / 8;
67 let byte =
68 (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize);
69 *byte = Self::change_bit(*byte, index, val);
70 }
71 #[inline]
72 pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
73 debug_assert!(bit_width <= 64);
74 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
75 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
76 let mut val = 0;
77 for i in 0..(bit_width as usize) {
78 if self.get_bit(i + bit_offset) {
79 let index = if cfg!(target_endian = "big") {
80 bit_width as usize - 1 - i
81 } else {
82 i
83 };
84 val |= 1 << index;
85 }
86 }
87 val
88 }
89 #[inline]
90 pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
91 debug_assert!(bit_width <= 64);
92 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
93 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
94 let mut val = 0;
95 for i in 0..(bit_width as usize) {
96 if Self::raw_get_bit(this, i + bit_offset) {
97 let index = if cfg!(target_endian = "big") {
98 bit_width as usize - 1 - i
99 } else {
100 i
101 };
102 val |= 1 << index;
103 }
104 }
105 val
106 }
107 #[inline]
108 pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
109 debug_assert!(bit_width <= 64);
110 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
111 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
112 for i in 0..(bit_width as usize) {
113 let mask = 1 << i;
114 let val_bit_is_set = val & mask == mask;
115 let index = if cfg!(target_endian = "big") {
116 bit_width as usize - 1 - i
117 } else {
118 i
119 };
120 self.set_bit(index + bit_offset, val_bit_is_set);
121 }
122 }
123 #[inline]
124 pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
125 debug_assert!(bit_width <= 64);
126 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
127 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
128 for i in 0..(bit_width as usize) {
129 let mask = 1 << i;
130 let val_bit_is_set = val & mask == mask;
131 let index = if cfg!(target_endian = "big") {
132 bit_width as usize - 1 - i
133 } else {
134 i
135 };
136 Self::raw_set_bit(this, index + bit_offset, val_bit_is_set);
137 }
138 }
139}
140pub type __clockid_t = ::std::os::raw::c_int;
141pub type clockid_t = __clockid_t;
142#[repr(C)]
143#[derive(Debug, Copy, Clone)]
144pub struct __sigset_t {
145 pub __val: [usize; 16usize],
146}
147#[repr(C)]
148#[derive(Debug, Copy, Clone)]
149pub struct __pthread_internal_list {
150 pub __prev: *mut __pthread_internal_list,
151 pub __next: *mut __pthread_internal_list,
152}
153pub type __pthread_list_t = __pthread_internal_list;
154#[repr(C)]
155#[derive(Debug, Copy, Clone)]
156pub struct __pthread_mutex_s {
157 pub __lock: ::std::os::raw::c_int,
158 pub __count: ::std::os::raw::c_uint,
159 pub __owner: ::std::os::raw::c_int,
160 pub __nusers: ::std::os::raw::c_uint,
161 pub __kind: ::std::os::raw::c_int,
162 pub __spins: ::std::os::raw::c_short,
163 pub __elision: ::std::os::raw::c_short,
164 pub __list: __pthread_list_t,
165}
166#[repr(C)]
167#[derive(Copy, Clone)]
168pub struct __pthread_cond_s {
169 pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
170 pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
171 pub __g_refs: [::std::os::raw::c_uint; 2usize],
172 pub __g_size: [::std::os::raw::c_uint; 2usize],
173 pub __g1_orig_size: ::std::os::raw::c_uint,
174 pub __wrefs: ::std::os::raw::c_uint,
175 pub __g_signals: [::std::os::raw::c_uint; 2usize],
176}
177#[repr(C)]
178#[derive(Copy, Clone)]
179pub union __pthread_cond_s__bindgen_ty_1 {
180 pub __wseq: ::std::os::raw::c_ulonglong,
181 pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
182}
183#[repr(C)]
184#[derive(Debug, Copy, Clone)]
185pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
186 pub __low: ::std::os::raw::c_uint,
187 pub __high: ::std::os::raw::c_uint,
188}
189impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_1 {
190 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
191 write!(f, "__pthread_cond_s__bindgen_ty_1 {{ union }}")
192 }
193}
194#[repr(C)]
195#[derive(Copy, Clone)]
196pub union __pthread_cond_s__bindgen_ty_2 {
197 pub __g1_start: ::std::os::raw::c_ulonglong,
198 pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
199}
200#[repr(C)]
201#[derive(Debug, Copy, Clone)]
202pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
203 pub __low: ::std::os::raw::c_uint,
204 pub __high: ::std::os::raw::c_uint,
205}
206impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_2 {
207 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
208 write!(f, "__pthread_cond_s__bindgen_ty_2 {{ union }}")
209 }
210}
211impl ::std::fmt::Debug for __pthread_cond_s {
212 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
213 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)
214 }
215}
216pub type pthread_t = usize;
217#[repr(C)]
218#[derive(Copy, Clone)]
219pub union pthread_mutex_t {
220 pub __data: __pthread_mutex_s,
221 pub __size: [::std::os::raw::c_char; 40usize],
222 pub __align: ::std::os::raw::c_long,
223}
224impl ::std::fmt::Debug for pthread_mutex_t {
225 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
226 write!(f, "pthread_mutex_t {{ union }}")
227 }
228}
229#[repr(C)]
230#[derive(Copy, Clone)]
231pub union pthread_cond_t {
232 pub __data: __pthread_cond_s,
233 pub __size: [::std::os::raw::c_char; 48usize],
234 pub __align: ::std::os::raw::c_longlong,
235}
236impl ::std::fmt::Debug for pthread_cond_t {
237 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
238 write!(f, "pthread_cond_t {{ union }}")
239 }
240}
241pub type VALUE = usize;
242pub type ID = usize;
243pub const ruby_fl_type_RUBY_FL_WB_PROTECTED: ruby_fl_type = 32;
244pub const ruby_fl_type_RUBY_FL_PROMOTED0: ruby_fl_type = 32;
245pub const ruby_fl_type_RUBY_FL_PROMOTED1: ruby_fl_type = 64;
246pub const ruby_fl_type_RUBY_FL_PROMOTED: ruby_fl_type = 96;
247pub const ruby_fl_type_RUBY_FL_FINALIZE: ruby_fl_type = 128;
248pub const ruby_fl_type_RUBY_FL_TAINT: ruby_fl_type = 256;
249pub const ruby_fl_type_RUBY_FL_UNTRUSTED: ruby_fl_type = 256;
250pub const ruby_fl_type_RUBY_FL_EXIVAR: ruby_fl_type = 1024;
251pub const ruby_fl_type_RUBY_FL_FREEZE: ruby_fl_type = 2048;
252pub const ruby_fl_type_RUBY_FL_USHIFT: ruby_fl_type = 12;
253pub const ruby_fl_type_RUBY_FL_USER0: ruby_fl_type = 4096;
254pub const ruby_fl_type_RUBY_FL_USER1: ruby_fl_type = 8192;
255pub const ruby_fl_type_RUBY_FL_USER2: ruby_fl_type = 16384;
256pub const ruby_fl_type_RUBY_FL_USER3: ruby_fl_type = 32768;
257pub const ruby_fl_type_RUBY_FL_USER4: ruby_fl_type = 65536;
258pub const ruby_fl_type_RUBY_FL_USER5: ruby_fl_type = 131072;
259pub const ruby_fl_type_RUBY_FL_USER6: ruby_fl_type = 262144;
260pub const ruby_fl_type_RUBY_FL_USER7: ruby_fl_type = 524288;
261pub const ruby_fl_type_RUBY_FL_USER8: ruby_fl_type = 1048576;
262pub const ruby_fl_type_RUBY_FL_USER9: ruby_fl_type = 2097152;
263pub const ruby_fl_type_RUBY_FL_USER10: ruby_fl_type = 4194304;
264pub const ruby_fl_type_RUBY_FL_USER11: ruby_fl_type = 8388608;
265pub const ruby_fl_type_RUBY_FL_USER12: ruby_fl_type = 16777216;
266pub const ruby_fl_type_RUBY_FL_USER13: ruby_fl_type = 33554432;
267pub const ruby_fl_type_RUBY_FL_USER14: ruby_fl_type = 67108864;
268pub const ruby_fl_type_RUBY_FL_USER15: ruby_fl_type = 134217728;
269pub const ruby_fl_type_RUBY_FL_USER16: ruby_fl_type = 268435456;
270pub const ruby_fl_type_RUBY_FL_USER17: ruby_fl_type = 536870912;
271pub const ruby_fl_type_RUBY_FL_USER18: ruby_fl_type = 1073741824;
272pub const ruby_fl_type_RUBY_FL_USER19: ruby_fl_type = -2147483648;
273pub const ruby_fl_type_RUBY_ELTS_SHARED: ruby_fl_type = 16384;
274pub const ruby_fl_type_RUBY_FL_DUPPED: ruby_fl_type = 1311;
275pub const ruby_fl_type_RUBY_FL_SINGLETON: ruby_fl_type = 4096;
276pub type ruby_fl_type = ::std::os::raw::c_int;
277#[repr(C)]
278#[derive(Debug, Copy, Clone)]
279pub struct RBasic {
280 pub flags: VALUE,
281 pub klass: VALUE,
282}
283#[repr(C)]
284#[derive(Copy, Clone)]
285pub struct RString {
286 pub basic: RBasic,
287 pub as_: RString__bindgen_ty_1,
288}
289#[repr(C)]
290#[derive(Copy, Clone)]
291pub union RString__bindgen_ty_1 {
292 pub heap: RString__bindgen_ty_1__bindgen_ty_1,
293 pub ary: [::std::os::raw::c_char; 24usize],
294}
295#[repr(C)]
296#[derive(Copy, Clone)]
297pub struct RString__bindgen_ty_1__bindgen_ty_1 {
298 pub len: ::std::os::raw::c_long,
299 pub ptr: *mut ::std::os::raw::c_char,
300 pub aux: RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
301}
302#[repr(C)]
303#[derive(Copy, Clone)]
304pub union RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
305 pub capa: ::std::os::raw::c_long,
306 pub shared: VALUE,
307}
308impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
309 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
310 write!(
311 f,
312 "RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
313 )
314 }
315}
316impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1 {
317 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
318 write!(
319 f,
320 "RString__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, ptr: {:?}, aux: {:?} }}",
321 self.len, self.ptr, self.aux
322 )
323 }
324}
325impl ::std::fmt::Debug for RString__bindgen_ty_1 {
326 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
327 write!(f, "RString__bindgen_ty_1 {{ union }}")
328 }
329}
330impl ::std::fmt::Debug for RString {
331 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
332 write!(
333 f,
334 "RString {{ basic: {:?}, as: {:?} }}",
335 self.basic, self.as_
336 )
337 }
338}
339#[repr(C)]
340#[derive(Copy, Clone)]
341pub struct RArray {
342 pub basic: RBasic,
343 pub as_: RArray__bindgen_ty_1,
344}
345#[repr(C)]
346#[derive(Copy, Clone)]
347pub union RArray__bindgen_ty_1 {
348 pub heap: RArray__bindgen_ty_1__bindgen_ty_1,
349 pub ary: [VALUE; 3usize],
350}
351#[repr(C)]
352#[derive(Copy, Clone)]
353pub struct RArray__bindgen_ty_1__bindgen_ty_1 {
354 pub len: ::std::os::raw::c_long,
355 pub aux: RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
356 pub ptr: *const VALUE,
357}
358#[repr(C)]
359#[derive(Copy, Clone)]
360pub union RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
361 pub capa: ::std::os::raw::c_long,
362 pub shared: VALUE,
363}
364impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
365 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
366 write!(
367 f,
368 "RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
369 )
370 }
371}
372impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1 {
373 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
374 write!(
375 f,
376 "RArray__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, aux: {:?}, ptr: {:?} }}",
377 self.len, self.aux, self.ptr
378 )
379 }
380}
381impl ::std::fmt::Debug for RArray__bindgen_ty_1 {
382 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
383 write!(f, "RArray__bindgen_ty_1 {{ union }}")
384 }
385}
386impl ::std::fmt::Debug for RArray {
387 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
388 write!(
389 f,
390 "RArray {{ basic: {:?}, as: {:?} }}",
391 self.basic, self.as_
392 )
393 }
394}
395pub type st_data_t = usize;
396pub type st_index_t = st_data_t;
397#[repr(C)]
398#[derive(Debug, Copy, Clone)]
399pub struct st_hash_type {
400 pub compare: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
401 pub hash: ::std::option::Option<unsafe extern "C" fn() -> st_index_t>,
402}
403#[repr(C)]
404#[derive(Debug, Copy, Clone)]
405pub struct st_table_entry {
406 _unused: [u8; 0],
407}
408#[repr(C)]
409#[derive(Debug, Copy, Clone)]
410pub struct st_table {
411 pub entry_power: ::std::os::raw::c_uchar,
412 pub bin_power: ::std::os::raw::c_uchar,
413 pub size_ind: ::std::os::raw::c_uchar,
414 pub rebuilds_num: ::std::os::raw::c_uint,
415 pub type_: *const st_hash_type,
416 pub num_entries: st_index_t,
417 pub bins: *mut st_index_t,
418 pub entries_start: st_index_t,
419 pub entries_bound: st_index_t,
420 pub entries: *mut st_table_entry,
421}
422pub type rb_unblock_function_t =
423 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
424pub type rb_event_flag_t = u32;
425#[repr(C)]
426#[derive(Debug, Copy, Clone)]
427pub struct rb_code_location_struct {
428 pub lineno: ::std::os::raw::c_int,
429 pub column: ::std::os::raw::c_int,
430}
431pub type rb_code_location_t = rb_code_location_struct;
432#[repr(C)]
433#[derive(Debug, Copy, Clone)]
434pub struct rb_code_range_struct {
435 pub first_loc: rb_code_location_t,
436 pub last_loc: rb_code_location_t,
437}
438pub type rb_code_range_t = rb_code_range_struct;
439pub const ruby_id_types_RUBY_ID_STATIC_SYM: ruby_id_types = 1;
440pub const ruby_id_types_RUBY_ID_LOCAL: ruby_id_types = 0;
441pub const ruby_id_types_RUBY_ID_INSTANCE: ruby_id_types = 2;
442pub const ruby_id_types_RUBY_ID_GLOBAL: ruby_id_types = 6;
443pub const ruby_id_types_RUBY_ID_ATTRSET: ruby_id_types = 8;
444pub const ruby_id_types_RUBY_ID_CONST: ruby_id_types = 10;
445pub const ruby_id_types_RUBY_ID_CLASS: ruby_id_types = 12;
446pub const ruby_id_types_RUBY_ID_JUNK: ruby_id_types = 14;
447pub const ruby_id_types_RUBY_ID_INTERNAL: ruby_id_types = 14;
448pub const ruby_id_types_RUBY_ID_SCOPE_SHIFT: ruby_id_types = 4;
449pub const ruby_id_types_RUBY_ID_SCOPE_MASK: ruby_id_types = 14;
450pub type ruby_id_types = ::std::os::raw::c_uint;
451pub const ruby_method_ids_idDot2: ruby_method_ids = 128;
452pub const ruby_method_ids_idDot3: ruby_method_ids = 129;
453pub const ruby_method_ids_idUPlus: ruby_method_ids = 130;
454pub const ruby_method_ids_idUMinus: ruby_method_ids = 131;
455pub const ruby_method_ids_idPow: ruby_method_ids = 132;
456pub const ruby_method_ids_idCmp: ruby_method_ids = 133;
457pub const ruby_method_ids_idPLUS: ruby_method_ids = 43;
458pub const ruby_method_ids_idMINUS: ruby_method_ids = 45;
459pub const ruby_method_ids_idMULT: ruby_method_ids = 42;
460pub const ruby_method_ids_idDIV: ruby_method_ids = 47;
461pub const ruby_method_ids_idMOD: ruby_method_ids = 37;
462pub const ruby_method_ids_idLTLT: ruby_method_ids = 134;
463pub const ruby_method_ids_idGTGT: ruby_method_ids = 135;
464pub const ruby_method_ids_idLT: ruby_method_ids = 60;
465pub const ruby_method_ids_idLE: ruby_method_ids = 136;
466pub const ruby_method_ids_idGT: ruby_method_ids = 62;
467pub const ruby_method_ids_idGE: ruby_method_ids = 137;
468pub const ruby_method_ids_idEq: ruby_method_ids = 138;
469pub const ruby_method_ids_idEqq: ruby_method_ids = 139;
470pub const ruby_method_ids_idNeq: ruby_method_ids = 140;
471pub const ruby_method_ids_idNot: ruby_method_ids = 33;
472pub const ruby_method_ids_idBackquote: ruby_method_ids = 96;
473pub const ruby_method_ids_idEqTilde: ruby_method_ids = 141;
474pub const ruby_method_ids_idNeqTilde: ruby_method_ids = 142;
475pub const ruby_method_ids_idAREF: ruby_method_ids = 143;
476pub const ruby_method_ids_idASET: ruby_method_ids = 144;
477pub const ruby_method_ids_idCOLON2: ruby_method_ids = 145;
478pub const ruby_method_ids_idANDOP: ruby_method_ids = 146;
479pub const ruby_method_ids_idOROP: ruby_method_ids = 147;
480pub const ruby_method_ids_idANDDOT: ruby_method_ids = 148;
481pub const ruby_method_ids_tPRESERVED_ID_BEGIN: ruby_method_ids = 148;
482pub const ruby_method_ids_idNULL: ruby_method_ids = 149;
483pub const ruby_method_ids_idEmptyP: ruby_method_ids = 150;
484pub const ruby_method_ids_idEqlP: ruby_method_ids = 151;
485pub const ruby_method_ids_idRespond_to: ruby_method_ids = 152;
486pub const ruby_method_ids_idRespond_to_missing: ruby_method_ids = 153;
487pub const ruby_method_ids_idIFUNC: ruby_method_ids = 154;
488pub const ruby_method_ids_idCFUNC: ruby_method_ids = 155;
489pub const ruby_method_ids_id_core_set_method_alias: ruby_method_ids = 156;
490pub const ruby_method_ids_id_core_set_variable_alias: ruby_method_ids = 157;
491pub const ruby_method_ids_id_core_undef_method: ruby_method_ids = 158;
492pub const ruby_method_ids_id_core_define_method: ruby_method_ids = 159;
493pub const ruby_method_ids_id_core_define_singleton_method: ruby_method_ids = 160;
494pub const ruby_method_ids_id_core_set_postexe: ruby_method_ids = 161;
495pub const ruby_method_ids_id_core_hash_from_ary: ruby_method_ids = 162;
496pub const ruby_method_ids_id_core_hash_merge_ary: ruby_method_ids = 163;
497pub const ruby_method_ids_id_core_hash_merge_ptr: ruby_method_ids = 164;
498pub const ruby_method_ids_id_core_hash_merge_kwd: ruby_method_ids = 165;
499pub const ruby_method_ids_id_debug_created_info: ruby_method_ids = 166;
500pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 167;
501pub const ruby_method_ids_tTOKEN_LOCAL_BEGIN: ruby_method_ids = 166;
502pub const ruby_method_ids_tMax: ruby_method_ids = 167;
503pub const ruby_method_ids_tMin: ruby_method_ids = 168;
504pub const ruby_method_ids_tFreeze: ruby_method_ids = 169;
505pub const ruby_method_ids_tInspect: ruby_method_ids = 170;
506pub const ruby_method_ids_tIntern: ruby_method_ids = 171;
507pub const ruby_method_ids_tObject_id: ruby_method_ids = 172;
508pub const ruby_method_ids_tConst_missing: ruby_method_ids = 173;
509pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 174;
510pub const ruby_method_ids_tMethod_added: ruby_method_ids = 175;
511pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 176;
512pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 177;
513pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 178;
514pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 179;
515pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 180;
516pub const ruby_method_ids_tLength: ruby_method_ids = 181;
517pub const ruby_method_ids_tSize: ruby_method_ids = 182;
518pub const ruby_method_ids_tGets: ruby_method_ids = 183;
519pub const ruby_method_ids_tSucc: ruby_method_ids = 184;
520pub const ruby_method_ids_tEach: ruby_method_ids = 185;
521pub const ruby_method_ids_tProc: ruby_method_ids = 186;
522pub const ruby_method_ids_tLambda: ruby_method_ids = 187;
523pub const ruby_method_ids_tSend: ruby_method_ids = 188;
524pub const ruby_method_ids_t__send__: ruby_method_ids = 189;
525pub const ruby_method_ids_t__attached__: ruby_method_ids = 190;
526pub const ruby_method_ids_tInitialize: ruby_method_ids = 191;
527pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 192;
528pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 193;
529pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 194;
530pub const ruby_method_ids_tTo_int: ruby_method_ids = 195;
531pub const ruby_method_ids_tTo_ary: ruby_method_ids = 196;
532pub const ruby_method_ids_tTo_str: ruby_method_ids = 197;
533pub const ruby_method_ids_tTo_sym: ruby_method_ids = 198;
534pub const ruby_method_ids_tTo_hash: ruby_method_ids = 199;
535pub const ruby_method_ids_tTo_proc: ruby_method_ids = 200;
536pub const ruby_method_ids_tTo_io: ruby_method_ids = 201;
537pub const ruby_method_ids_tTo_a: ruby_method_ids = 202;
538pub const ruby_method_ids_tTo_s: ruby_method_ids = 203;
539pub const ruby_method_ids_tTo_i: ruby_method_ids = 204;
540pub const ruby_method_ids_tTo_r: ruby_method_ids = 205;
541pub const ruby_method_ids_tBt: ruby_method_ids = 206;
542pub const ruby_method_ids_tBt_locations: ruby_method_ids = 207;
543pub const ruby_method_ids_tCall: ruby_method_ids = 208;
544pub const ruby_method_ids_tMesg: ruby_method_ids = 209;
545pub const ruby_method_ids_tException: ruby_method_ids = 210;
546pub const ruby_method_ids_tNOT: ruby_method_ids = 211;
547pub const ruby_method_ids_tAND: ruby_method_ids = 212;
548pub const ruby_method_ids_tOR: ruby_method_ids = 213;
549pub const ruby_method_ids_tUScore: ruby_method_ids = 214;
550pub const ruby_method_ids_tTOKEN_LOCAL_END: ruby_method_ids = 215;
551pub const ruby_method_ids_tTOKEN_INSTANCE_BEGIN: ruby_method_ids = 214;
552pub const ruby_method_ids_tTOKEN_INSTANCE_END: ruby_method_ids = 215;
553pub const ruby_method_ids_tTOKEN_GLOBAL_BEGIN: ruby_method_ids = 214;
554pub const ruby_method_ids_tLASTLINE: ruby_method_ids = 215;
555pub const ruby_method_ids_tBACKREF: ruby_method_ids = 216;
556pub const ruby_method_ids_tTOKEN_GLOBAL_END: ruby_method_ids = 217;
557pub const ruby_method_ids_tTOKEN_CONST_BEGIN: ruby_method_ids = 216;
558pub const ruby_method_ids_tTOKEN_CONST_END: ruby_method_ids = 217;
559pub const ruby_method_ids_tTOKEN_CLASS_BEGIN: ruby_method_ids = 216;
560pub const ruby_method_ids_tTOKEN_CLASS_END: ruby_method_ids = 217;
561pub const ruby_method_ids_tTOKEN_ATTRSET_BEGIN: ruby_method_ids = 216;
562pub const ruby_method_ids_tTOKEN_ATTRSET_END: ruby_method_ids = 217;
563pub const ruby_method_ids_tNEXT_ID: ruby_method_ids = 217;
564pub const ruby_method_ids_idMax: ruby_method_ids = 2673;
565pub const ruby_method_ids_idMin: ruby_method_ids = 2689;
566pub const ruby_method_ids_idFreeze: ruby_method_ids = 2705;
567pub const ruby_method_ids_idInspect: ruby_method_ids = 2721;
568pub const ruby_method_ids_idIntern: ruby_method_ids = 2737;
569pub const ruby_method_ids_idObject_id: ruby_method_ids = 2753;
570pub const ruby_method_ids_idConst_missing: ruby_method_ids = 2769;
571pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 2785;
572pub const ruby_method_ids_idMethod_added: ruby_method_ids = 2801;
573pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 2817;
574pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 2833;
575pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 2849;
576pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 2865;
577pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 2881;
578pub const ruby_method_ids_idLength: ruby_method_ids = 2897;
579pub const ruby_method_ids_idSize: ruby_method_ids = 2913;
580pub const ruby_method_ids_idGets: ruby_method_ids = 2929;
581pub const ruby_method_ids_idSucc: ruby_method_ids = 2945;
582pub const ruby_method_ids_idEach: ruby_method_ids = 2961;
583pub const ruby_method_ids_idProc: ruby_method_ids = 2977;
584pub const ruby_method_ids_idLambda: ruby_method_ids = 2993;
585pub const ruby_method_ids_idSend: ruby_method_ids = 3009;
586pub const ruby_method_ids_id__send__: ruby_method_ids = 3025;
587pub const ruby_method_ids_id__attached__: ruby_method_ids = 3041;
588pub const ruby_method_ids_idInitialize: ruby_method_ids = 3057;
589pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 3073;
590pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 3089;
591pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 3105;
592pub const ruby_method_ids_idTo_int: ruby_method_ids = 3121;
593pub const ruby_method_ids_idTo_ary: ruby_method_ids = 3137;
594pub const ruby_method_ids_idTo_str: ruby_method_ids = 3153;
595pub const ruby_method_ids_idTo_sym: ruby_method_ids = 3169;
596pub const ruby_method_ids_idTo_hash: ruby_method_ids = 3185;
597pub const ruby_method_ids_idTo_proc: ruby_method_ids = 3201;
598pub const ruby_method_ids_idTo_io: ruby_method_ids = 3217;
599pub const ruby_method_ids_idTo_a: ruby_method_ids = 3233;
600pub const ruby_method_ids_idTo_s: ruby_method_ids = 3249;
601pub const ruby_method_ids_idTo_i: ruby_method_ids = 3265;
602pub const ruby_method_ids_idTo_r: ruby_method_ids = 3281;
603pub const ruby_method_ids_idBt: ruby_method_ids = 3297;
604pub const ruby_method_ids_idBt_locations: ruby_method_ids = 3313;
605pub const ruby_method_ids_idCall: ruby_method_ids = 3329;
606pub const ruby_method_ids_idMesg: ruby_method_ids = 3345;
607pub const ruby_method_ids_idException: ruby_method_ids = 3361;
608pub const ruby_method_ids_idNOT: ruby_method_ids = 3377;
609pub const ruby_method_ids_idAND: ruby_method_ids = 3393;
610pub const ruby_method_ids_idOR: ruby_method_ids = 3409;
611pub const ruby_method_ids_idUScore: ruby_method_ids = 3425;
612pub const ruby_method_ids_idLASTLINE: ruby_method_ids = 3447;
613pub const ruby_method_ids_idBACKREF: ruby_method_ids = 3463;
614pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 166;
615pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 10;
616pub type ruby_method_ids = ::std::os::raw::c_uint;
617pub type rb_serial_t = ::std::os::raw::c_ulonglong;
618pub const imemo_type_imemo_env: imemo_type = 0;
619pub const imemo_type_imemo_cref: imemo_type = 1;
620pub const imemo_type_imemo_svar: imemo_type = 2;
621pub const imemo_type_imemo_throw_data: imemo_type = 3;
622pub const imemo_type_imemo_ifunc: imemo_type = 4;
623pub const imemo_type_imemo_memo: imemo_type = 5;
624pub const imemo_type_imemo_ment: imemo_type = 6;
625pub const imemo_type_imemo_iseq: imemo_type = 7;
626pub const imemo_type_imemo_alloc: imemo_type = 8;
627pub const imemo_type_imemo_ast: imemo_type = 9;
628pub const imemo_type_imemo_parser_strterm: imemo_type = 10;
629pub type imemo_type = ::std::os::raw::c_uint;
630#[repr(C)]
631#[derive(Debug, Copy, Clone)]
632pub struct vm_svar {
633 pub flags: VALUE,
634 pub cref_or_me: VALUE,
635 pub lastline: VALUE,
636 pub backref: VALUE,
637 pub others: VALUE,
638}
639pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
640pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
641pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
642pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
643pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
644pub type rb_method_visibility_t = ::std::os::raw::c_uint;
645#[repr(C)]
646#[repr(align(4))]
647#[derive(Debug, Copy, Clone)]
648pub struct rb_scope_visi_struct {
649 pub _bitfield_align_1: [u8; 0],
650 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
651 pub __bindgen_padding_0: [u8; 3usize],
652}
653impl rb_scope_visi_struct {
654 #[inline]
655 pub fn method_visi(&self) -> rb_method_visibility_t {
656 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) }
657 }
658 #[inline]
659 pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
660 unsafe {
661 let val: u32 = ::std::mem::transmute(val);
662 self._bitfield_1.set(0usize, 3u8, val as u64)
663 }
664 }
665 #[inline]
666 pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
667 unsafe {
668 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
669 ::std::ptr::addr_of!((*this)._bitfield_1),
670 0usize,
671 3u8,
672 ) as u32)
673 }
674 }
675 #[inline]
676 pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
677 unsafe {
678 let val: u32 = ::std::mem::transmute(val);
679 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
680 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
681 0usize,
682 3u8,
683 val as u64,
684 )
685 }
686 }
687 #[inline]
688 pub fn module_func(&self) -> ::std::os::raw::c_uint {
689 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
690 }
691 #[inline]
692 pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
693 unsafe {
694 let val: u32 = ::std::mem::transmute(val);
695 self._bitfield_1.set(3usize, 1u8, val as u64)
696 }
697 }
698 #[inline]
699 pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
700 unsafe {
701 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
702 ::std::ptr::addr_of!((*this)._bitfield_1),
703 3usize,
704 1u8,
705 ) as u32)
706 }
707 }
708 #[inline]
709 pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
710 unsafe {
711 let val: u32 = ::std::mem::transmute(val);
712 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
713 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
714 3usize,
715 1u8,
716 val as u64,
717 )
718 }
719 }
720 #[inline]
721 pub fn new_bitfield_1(
722 method_visi: rb_method_visibility_t,
723 module_func: ::std::os::raw::c_uint,
724 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
725 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
726 __bindgen_bitfield_unit.set(0usize, 3u8, {
727 let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
728 method_visi as u64
729 });
730 __bindgen_bitfield_unit.set(3usize, 1u8, {
731 let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
732 module_func as u64
733 });
734 __bindgen_bitfield_unit
735 }
736}
737pub type rb_scope_visibility_t = rb_scope_visi_struct;
738#[repr(C)]
739#[derive(Debug, Copy, Clone)]
740pub struct rb_cref_struct {
741 pub flags: VALUE,
742 pub refinements: VALUE,
743 pub klass: VALUE,
744 pub next: *mut rb_cref_struct,
745 pub scope_visi: rb_scope_visibility_t,
746}
747pub type rb_cref_t = rb_cref_struct;
748#[repr(C)]
749#[derive(Debug, Copy, Clone)]
750pub struct rb_method_entry_struct {
751 pub flags: VALUE,
752 pub defined_class: VALUE,
753 pub def: *mut rb_method_definition_struct,
754 pub called_id: ID,
755 pub owner: VALUE,
756}
757#[repr(C)]
758#[derive(Debug, Copy, Clone)]
759pub struct rb_callable_method_entry_struct {
760 pub flags: VALUE,
761 pub defined_class: VALUE,
762 pub def: *mut rb_method_definition_struct,
763 pub called_id: ID,
764 pub owner: VALUE,
765}
766pub type rb_callable_method_entry_t = rb_callable_method_entry_struct;
767pub type rb_iseq_t = rb_iseq_struct;
768#[repr(C)]
769#[derive(Debug, Copy, Clone)]
770pub struct rb_method_iseq_struct {
771 pub iseqptr: *const rb_iseq_t,
772 pub cref: *mut rb_cref_t,
773}
774pub type rb_method_iseq_t = rb_method_iseq_struct;
775#[repr(C)]
776#[derive(Debug, Copy, Clone)]
777pub struct rb_method_cfunc_struct {
778 pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
779 pub invoker: ::std::option::Option<
780 unsafe extern "C" fn(
781 func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
782 recv: VALUE,
783 argc: ::std::os::raw::c_int,
784 argv: *const VALUE,
785 ) -> VALUE,
786 >,
787 pub argc: ::std::os::raw::c_int,
788}
789pub type rb_method_cfunc_t = rb_method_cfunc_struct;
790#[repr(C)]
791#[derive(Debug, Copy, Clone)]
792pub struct rb_method_attr_struct {
793 pub id: ID,
794 pub location: VALUE,
795}
796pub type rb_method_attr_t = rb_method_attr_struct;
797#[repr(C)]
798#[derive(Debug, Copy, Clone)]
799pub struct rb_method_alias_struct {
800 pub original_me: *const rb_method_entry_struct,
801}
802pub type rb_method_alias_t = rb_method_alias_struct;
803#[repr(C)]
804#[derive(Debug, Copy, Clone)]
805pub struct rb_method_refined_struct {
806 pub orig_me: *const rb_method_entry_struct,
807 pub owner: VALUE,
808}
809pub type rb_method_refined_t = rb_method_refined_struct;
810pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND: method_optimized_type = 0;
811pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL: method_optimized_type = 1;
812pub const method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX: method_optimized_type = 2;
813pub type method_optimized_type = ::std::os::raw::c_uint;
814#[repr(C, packed)]
815#[derive(Copy, Clone)]
816pub struct rb_method_definition_struct {
817 pub _bitfield_align_1: [u8; 0],
818 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
819 pub body: rb_method_definition_struct__bindgen_ty_1,
820 pub original_id: ID,
821}
822#[repr(C)]
823#[derive(Copy, Clone)]
824pub union rb_method_definition_struct__bindgen_ty_1 {
825 pub iseq: rb_method_iseq_t,
826 pub cfunc: rb_method_cfunc_t,
827 pub attr: rb_method_attr_t,
828 pub alias: rb_method_alias_t,
829 pub refined: rb_method_refined_t,
830 pub proc_: VALUE,
831 pub optimize_type: method_optimized_type,
832}
833impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
834 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
835 write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
836 }
837}
838impl rb_method_definition_struct {
839 #[inline]
840 pub fn type_(&self) -> ::std::os::raw::c_uint {
841 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
842 }
843 #[inline]
844 pub fn set_type(&mut self, val: ::std::os::raw::c_uint) {
845 unsafe {
846 let val: u32 = ::std::mem::transmute(val);
847 self._bitfield_1.set(0usize, 4u8, val as u64)
848 }
849 }
850 #[inline]
851 pub unsafe fn type__raw(this: *const Self) -> ::std::os::raw::c_uint {
852 unsafe {
853 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
854 ::std::ptr::addr_of!((*this)._bitfield_1),
855 0usize,
856 4u8,
857 ) as u32)
858 }
859 }
860 #[inline]
861 pub unsafe fn set_type_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
862 unsafe {
863 let val: u32 = ::std::mem::transmute(val);
864 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
865 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
866 0usize,
867 4u8,
868 val as u64,
869 )
870 }
871 }
872 #[inline]
873 pub fn alias_count(&self) -> ::std::os::raw::c_int {
874 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) }
875 }
876 #[inline]
877 pub fn set_alias_count(&mut self, val: ::std::os::raw::c_int) {
878 unsafe {
879 let val: u32 = ::std::mem::transmute(val);
880 self._bitfield_1.set(4usize, 28u8, val as u64)
881 }
882 }
883 #[inline]
884 pub unsafe fn alias_count_raw(this: *const Self) -> ::std::os::raw::c_int {
885 unsafe {
886 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
887 ::std::ptr::addr_of!((*this)._bitfield_1),
888 4usize,
889 28u8,
890 ) as u32)
891 }
892 }
893 #[inline]
894 pub unsafe fn set_alias_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
895 unsafe {
896 let val: u32 = ::std::mem::transmute(val);
897 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
898 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
899 4usize,
900 28u8,
901 val as u64,
902 )
903 }
904 }
905 #[inline]
906 pub fn complemented_count(&self) -> ::std::os::raw::c_int {
907 unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 28u8) as u32) }
908 }
909 #[inline]
910 pub fn set_complemented_count(&mut self, val: ::std::os::raw::c_int) {
911 unsafe {
912 let val: u32 = ::std::mem::transmute(val);
913 self._bitfield_1.set(32usize, 28u8, val as u64)
914 }
915 }
916 #[inline]
917 pub unsafe fn complemented_count_raw(this: *const Self) -> ::std::os::raw::c_int {
918 unsafe {
919 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
920 ::std::ptr::addr_of!((*this)._bitfield_1),
921 32usize,
922 28u8,
923 ) as u32)
924 }
925 }
926 #[inline]
927 pub unsafe fn set_complemented_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
928 unsafe {
929 let val: u32 = ::std::mem::transmute(val);
930 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
931 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
932 32usize,
933 28u8,
934 val as u64,
935 )
936 }
937 }
938 #[inline]
939 pub fn new_bitfield_1(
940 type_: ::std::os::raw::c_uint,
941 alias_count: ::std::os::raw::c_int,
942 complemented_count: ::std::os::raw::c_int,
943 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
944 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
945 __bindgen_bitfield_unit.set(0usize, 4u8, {
946 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
947 type_ as u64
948 });
949 __bindgen_bitfield_unit.set(4usize, 28u8, {
950 let alias_count: u32 = unsafe { ::std::mem::transmute(alias_count) };
951 alias_count as u64
952 });
953 __bindgen_bitfield_unit.set(32usize, 28u8, {
954 let complemented_count: u32 = unsafe { ::std::mem::transmute(complemented_count) };
955 complemented_count as u64
956 });
957 __bindgen_bitfield_unit
958 }
959}
960pub type rb_atomic_t = ::std::os::raw::c_uint;
961#[repr(C)]
962#[derive(Debug, Copy, Clone)]
963pub struct list_node {
964 pub next: *mut list_node,
965 pub prev: *mut list_node,
966}
967#[repr(C)]
968#[derive(Debug, Copy, Clone)]
969pub struct list_head {
970 pub n: list_node,
971}
972pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
973pub type rb_nativethread_id_t = pthread_t;
974pub type rb_nativethread_lock_t = pthread_mutex_t;
975#[repr(C)]
976#[derive(Copy, Clone)]
977pub struct rb_thread_cond_struct {
978 pub cond: pthread_cond_t,
979 pub clockid: clockid_t,
980}
981impl ::std::fmt::Debug for rb_thread_cond_struct {
982 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
983 write!(
984 f,
985 "rb_thread_cond_struct {{ cond: {:?}, clockid: {:?} }}",
986 self.cond, self.clockid
987 )
988 }
989}
990pub type rb_nativethread_cond_t = rb_thread_cond_struct;
991#[repr(C)]
992#[derive(Copy, Clone)]
993pub struct native_thread_data_struct {
994 pub ubf_list: list_node,
995 pub sleep_cond: rb_nativethread_cond_t,
996}
997impl ::std::fmt::Debug for native_thread_data_struct {
998 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
999 write!(
1000 f,
1001 "native_thread_data_struct {{ ubf_list: {:?}, sleep_cond: {:?} }}",
1002 self.ubf_list, self.sleep_cond
1003 )
1004 }
1005}
1006pub type native_thread_data_t = native_thread_data_struct;
1007#[repr(C)]
1008#[derive(Copy, Clone)]
1009pub struct rb_global_vm_lock_struct {
1010 pub acquired: ::std::os::raw::c_ulong,
1011 pub lock: rb_nativethread_lock_t,
1012 pub waiting: ::std::os::raw::c_ulong,
1013 pub cond: rb_nativethread_cond_t,
1014 pub switch_cond: rb_nativethread_cond_t,
1015 pub switch_wait_cond: rb_nativethread_cond_t,
1016 pub need_yield: ::std::os::raw::c_int,
1017 pub wait_yield: ::std::os::raw::c_int,
1018}
1019impl ::std::fmt::Debug for rb_global_vm_lock_struct {
1020 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1021 write ! (f , "rb_global_vm_lock_struct {{ acquired: {:?}, lock: {:?}, waiting: {:?}, cond: {:?}, switch_cond: {:?}, switch_wait_cond: {:?}, need_yield: {:?}, wait_yield: {:?} }}" , self . acquired , self . lock , self . waiting , self . cond , self . switch_cond , self . switch_wait_cond , self . need_yield , self . wait_yield)
1022 }
1023}
1024pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
1025#[repr(C)]
1026#[derive(Debug, Copy, Clone)]
1027pub struct __jmp_buf_tag {
1028 pub __jmpbuf: __jmp_buf,
1029 pub __mask_was_saved: ::std::os::raw::c_int,
1030 pub __saved_mask: __sigset_t,
1031}
1032pub type jmp_buf = [__jmp_buf_tag; 1usize];
1033pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1034pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1035pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1036pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1037pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1038pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1039pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1040pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1041pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1042pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1043pub type ruby_tag_type = ::std::os::raw::c_uint;
1044pub type rb_compile_option_t = rb_compile_option_struct;
1045#[repr(C)]
1046#[derive(Copy, Clone)]
1047pub struct iseq_inline_cache_entry {
1048 pub ic_serial: rb_serial_t,
1049 pub ic_cref: *const rb_cref_t,
1050 pub ic_value: iseq_inline_cache_entry__bindgen_ty_1,
1051}
1052#[repr(C)]
1053#[derive(Copy, Clone)]
1054pub union iseq_inline_cache_entry__bindgen_ty_1 {
1055 pub index: usize,
1056 pub value: VALUE,
1057}
1058impl ::std::fmt::Debug for iseq_inline_cache_entry__bindgen_ty_1 {
1059 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1060 write!(f, "iseq_inline_cache_entry__bindgen_ty_1 {{ union }}")
1061 }
1062}
1063impl ::std::fmt::Debug for iseq_inline_cache_entry {
1064 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1065 write!(
1066 f,
1067 "iseq_inline_cache_entry {{ ic_serial: {:?}, ic_cref: {:?}, ic_value: {:?} }}",
1068 self.ic_serial, self.ic_cref, self.ic_value
1069 )
1070 }
1071}
1072#[repr(C)]
1073#[derive(Copy, Clone)]
1074pub union iseq_inline_storage_entry {
1075 pub once: iseq_inline_storage_entry__bindgen_ty_1,
1076 pub cache: iseq_inline_cache_entry,
1077}
1078#[repr(C)]
1079#[derive(Debug, Copy, Clone)]
1080pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1081 pub running_thread: *mut rb_thread_struct,
1082 pub value: VALUE,
1083}
1084impl ::std::fmt::Debug for iseq_inline_storage_entry {
1085 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1086 write!(f, "iseq_inline_storage_entry {{ union }}")
1087 }
1088}
1089pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
1090pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
1091pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
1092pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
1093pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
1094pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
1095pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
1096pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
1097pub type method_missing_reason = ::std::os::raw::c_uint;
1098#[repr(C)]
1099#[derive(Debug, Copy, Clone)]
1100pub struct rb_call_info {
1101 pub mid: ID,
1102 pub flag: ::std::os::raw::c_uint,
1103 pub orig_argc: ::std::os::raw::c_int,
1104}
1105#[repr(C)]
1106#[derive(Debug, Copy, Clone)]
1107pub struct rb_calling_info {
1108 pub block_handler: VALUE,
1109 pub recv: VALUE,
1110 pub argc: ::std::os::raw::c_int,
1111}
1112pub type vm_call_handler = ::std::option::Option<
1113 unsafe extern "C" fn(
1114 ec: *mut rb_execution_context_struct,
1115 cfp: *mut rb_control_frame_struct,
1116 calling: *mut rb_calling_info,
1117 ci: *const rb_call_info,
1118 cc: *mut rb_call_cache,
1119 ) -> VALUE,
1120>;
1121#[repr(C)]
1122#[derive(Copy, Clone)]
1123pub struct rb_call_cache {
1124 pub method_state: rb_serial_t,
1125 pub class_serial: rb_serial_t,
1126 pub me: *const rb_callable_method_entry_t,
1127 pub call: vm_call_handler,
1128 pub aux: rb_call_cache__bindgen_ty_1,
1129}
1130#[repr(C)]
1131#[derive(Copy, Clone)]
1132pub union rb_call_cache__bindgen_ty_1 {
1133 pub index: ::std::os::raw::c_uint,
1134 pub method_missing_reason: method_missing_reason,
1135 pub inc_sp: ::std::os::raw::c_int,
1136}
1137impl ::std::fmt::Debug for rb_call_cache__bindgen_ty_1 {
1138 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1139 write!(f, "rb_call_cache__bindgen_ty_1 {{ union }}")
1140 }
1141}
1142impl ::std::fmt::Debug for rb_call_cache {
1143 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1144 write ! (f , "rb_call_cache {{ method_state: {:?}, class_serial: {:?}, me: {:?}, call: {:?}, aux: {:?} }}" , self . method_state , self . class_serial , self . me , self . call , self . aux)
1145 }
1146}
1147#[repr(C)]
1148#[derive(Debug, Copy, Clone)]
1149pub struct rb_iseq_location_struct {
1150 pub pathobj: VALUE,
1151 pub base_label: VALUE,
1152 pub label: VALUE,
1153 pub first_lineno: VALUE,
1154 pub code_range: rb_code_range_t,
1155}
1156pub type rb_iseq_location_t = rb_iseq_location_struct;
1157#[repr(C)]
1158#[derive(Debug, Copy, Clone)]
1159pub struct rb_iseq_constant_body {
1160 pub type_: rb_iseq_constant_body_iseq_type,
1161 pub iseq_size: ::std::os::raw::c_uint,
1162 pub iseq_encoded: *const VALUE,
1163 pub param: rb_iseq_constant_body__bindgen_ty_1,
1164 pub location: rb_iseq_location_t,
1165 pub insns_info: *const iseq_insn_info_entry,
1166 pub local_table: *const ID,
1167 pub catch_table: *const iseq_catch_table,
1168 pub parent_iseq: *const rb_iseq_struct,
1169 pub local_iseq: *mut rb_iseq_struct,
1170 pub is_entries: *mut iseq_inline_storage_entry,
1171 pub ci_entries: *mut rb_call_info,
1172 pub cc_entries: *mut rb_call_cache,
1173 pub mark_ary: VALUE,
1174 pub local_table_size: ::std::os::raw::c_uint,
1175 pub is_size: ::std::os::raw::c_uint,
1176 pub ci_size: ::std::os::raw::c_uint,
1177 pub ci_kw_size: ::std::os::raw::c_uint,
1178 pub insns_info_size: ::std::os::raw::c_uint,
1179 pub stack_max: ::std::os::raw::c_uint,
1180}
1181pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_TOP: rb_iseq_constant_body_iseq_type = 0;
1182pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_constant_body_iseq_type = 1;
1183pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_constant_body_iseq_type = 2;
1184pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_constant_body_iseq_type = 3;
1185pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_constant_body_iseq_type = 4;
1186pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_constant_body_iseq_type = 5;
1187pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_constant_body_iseq_type = 6;
1188pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_constant_body_iseq_type = 7;
1189pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_DEFINED_GUARD: rb_iseq_constant_body_iseq_type =
1190 8;
1191pub type rb_iseq_constant_body_iseq_type = ::std::os::raw::c_uint;
1192#[repr(C)]
1193#[derive(Debug, Copy, Clone)]
1194pub struct rb_iseq_constant_body__bindgen_ty_1 {
1195 pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1196 pub size: ::std::os::raw::c_uint,
1197 pub lead_num: ::std::os::raw::c_int,
1198 pub opt_num: ::std::os::raw::c_int,
1199 pub rest_start: ::std::os::raw::c_int,
1200 pub post_start: ::std::os::raw::c_int,
1201 pub post_num: ::std::os::raw::c_int,
1202 pub block_start: ::std::os::raw::c_int,
1203 pub opt_table: *const VALUE,
1204 pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1205}
1206#[repr(C)]
1207#[repr(align(4))]
1208#[derive(Debug, Copy, Clone)]
1209pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1210 pub _bitfield_align_1: [u8; 0],
1211 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1212 pub __bindgen_padding_0: [u8; 3usize],
1213}
1214impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1215 #[inline]
1216 pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1217 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1218 }
1219 #[inline]
1220 pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1221 unsafe {
1222 let val: u32 = ::std::mem::transmute(val);
1223 self._bitfield_1.set(0usize, 1u8, val as u64)
1224 }
1225 }
1226 #[inline]
1227 pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1228 unsafe {
1229 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1230 ::std::ptr::addr_of!((*this)._bitfield_1),
1231 0usize,
1232 1u8,
1233 ) as u32)
1234 }
1235 }
1236 #[inline]
1237 pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1238 unsafe {
1239 let val: u32 = ::std::mem::transmute(val);
1240 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1241 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1242 0usize,
1243 1u8,
1244 val as u64,
1245 )
1246 }
1247 }
1248 #[inline]
1249 pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1250 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1251 }
1252 #[inline]
1253 pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1254 unsafe {
1255 let val: u32 = ::std::mem::transmute(val);
1256 self._bitfield_1.set(1usize, 1u8, val as u64)
1257 }
1258 }
1259 #[inline]
1260 pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1261 unsafe {
1262 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1263 ::std::ptr::addr_of!((*this)._bitfield_1),
1264 1usize,
1265 1u8,
1266 ) as u32)
1267 }
1268 }
1269 #[inline]
1270 pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1271 unsafe {
1272 let val: u32 = ::std::mem::transmute(val);
1273 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1274 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1275 1usize,
1276 1u8,
1277 val as u64,
1278 )
1279 }
1280 }
1281 #[inline]
1282 pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1283 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1284 }
1285 #[inline]
1286 pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1287 unsafe {
1288 let val: u32 = ::std::mem::transmute(val);
1289 self._bitfield_1.set(2usize, 1u8, val as u64)
1290 }
1291 }
1292 #[inline]
1293 pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1294 unsafe {
1295 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1296 ::std::ptr::addr_of!((*this)._bitfield_1),
1297 2usize,
1298 1u8,
1299 ) as u32)
1300 }
1301 }
1302 #[inline]
1303 pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1304 unsafe {
1305 let val: u32 = ::std::mem::transmute(val);
1306 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1307 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1308 2usize,
1309 1u8,
1310 val as u64,
1311 )
1312 }
1313 }
1314 #[inline]
1315 pub fn has_post(&self) -> ::std::os::raw::c_uint {
1316 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1317 }
1318 #[inline]
1319 pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1320 unsafe {
1321 let val: u32 = ::std::mem::transmute(val);
1322 self._bitfield_1.set(3usize, 1u8, val as u64)
1323 }
1324 }
1325 #[inline]
1326 pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1327 unsafe {
1328 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1329 ::std::ptr::addr_of!((*this)._bitfield_1),
1330 3usize,
1331 1u8,
1332 ) as u32)
1333 }
1334 }
1335 #[inline]
1336 pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1337 unsafe {
1338 let val: u32 = ::std::mem::transmute(val);
1339 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1340 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1341 3usize,
1342 1u8,
1343 val as u64,
1344 )
1345 }
1346 }
1347 #[inline]
1348 pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1349 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1350 }
1351 #[inline]
1352 pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1353 unsafe {
1354 let val: u32 = ::std::mem::transmute(val);
1355 self._bitfield_1.set(4usize, 1u8, val as u64)
1356 }
1357 }
1358 #[inline]
1359 pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1360 unsafe {
1361 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1362 ::std::ptr::addr_of!((*this)._bitfield_1),
1363 4usize,
1364 1u8,
1365 ) as u32)
1366 }
1367 }
1368 #[inline]
1369 pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1370 unsafe {
1371 let val: u32 = ::std::mem::transmute(val);
1372 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1373 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1374 4usize,
1375 1u8,
1376 val as u64,
1377 )
1378 }
1379 }
1380 #[inline]
1381 pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1382 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1383 }
1384 #[inline]
1385 pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1386 unsafe {
1387 let val: u32 = ::std::mem::transmute(val);
1388 self._bitfield_1.set(5usize, 1u8, val as u64)
1389 }
1390 }
1391 #[inline]
1392 pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1393 unsafe {
1394 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1395 ::std::ptr::addr_of!((*this)._bitfield_1),
1396 5usize,
1397 1u8,
1398 ) as u32)
1399 }
1400 }
1401 #[inline]
1402 pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1403 unsafe {
1404 let val: u32 = ::std::mem::transmute(val);
1405 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1406 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1407 5usize,
1408 1u8,
1409 val as u64,
1410 )
1411 }
1412 }
1413 #[inline]
1414 pub fn has_block(&self) -> ::std::os::raw::c_uint {
1415 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1416 }
1417 #[inline]
1418 pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1419 unsafe {
1420 let val: u32 = ::std::mem::transmute(val);
1421 self._bitfield_1.set(6usize, 1u8, val as u64)
1422 }
1423 }
1424 #[inline]
1425 pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1426 unsafe {
1427 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1428 ::std::ptr::addr_of!((*this)._bitfield_1),
1429 6usize,
1430 1u8,
1431 ) as u32)
1432 }
1433 }
1434 #[inline]
1435 pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1436 unsafe {
1437 let val: u32 = ::std::mem::transmute(val);
1438 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1439 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1440 6usize,
1441 1u8,
1442 val as u64,
1443 )
1444 }
1445 }
1446 #[inline]
1447 pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1448 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1449 }
1450 #[inline]
1451 pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1452 unsafe {
1453 let val: u32 = ::std::mem::transmute(val);
1454 self._bitfield_1.set(7usize, 1u8, val as u64)
1455 }
1456 }
1457 #[inline]
1458 pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1459 unsafe {
1460 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1461 ::std::ptr::addr_of!((*this)._bitfield_1),
1462 7usize,
1463 1u8,
1464 ) as u32)
1465 }
1466 }
1467 #[inline]
1468 pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1469 unsafe {
1470 let val: u32 = ::std::mem::transmute(val);
1471 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1472 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1473 7usize,
1474 1u8,
1475 val as u64,
1476 )
1477 }
1478 }
1479 #[inline]
1480 pub fn new_bitfield_1(
1481 has_lead: ::std::os::raw::c_uint,
1482 has_opt: ::std::os::raw::c_uint,
1483 has_rest: ::std::os::raw::c_uint,
1484 has_post: ::std::os::raw::c_uint,
1485 has_kw: ::std::os::raw::c_uint,
1486 has_kwrest: ::std::os::raw::c_uint,
1487 has_block: ::std::os::raw::c_uint,
1488 ambiguous_param0: ::std::os::raw::c_uint,
1489 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1490 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1491 __bindgen_bitfield_unit.set(0usize, 1u8, {
1492 let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1493 has_lead as u64
1494 });
1495 __bindgen_bitfield_unit.set(1usize, 1u8, {
1496 let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1497 has_opt as u64
1498 });
1499 __bindgen_bitfield_unit.set(2usize, 1u8, {
1500 let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1501 has_rest as u64
1502 });
1503 __bindgen_bitfield_unit.set(3usize, 1u8, {
1504 let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1505 has_post as u64
1506 });
1507 __bindgen_bitfield_unit.set(4usize, 1u8, {
1508 let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1509 has_kw as u64
1510 });
1511 __bindgen_bitfield_unit.set(5usize, 1u8, {
1512 let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1513 has_kwrest as u64
1514 });
1515 __bindgen_bitfield_unit.set(6usize, 1u8, {
1516 let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1517 has_block as u64
1518 });
1519 __bindgen_bitfield_unit.set(7usize, 1u8, {
1520 let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
1521 ambiguous_param0 as u64
1522 });
1523 __bindgen_bitfield_unit
1524 }
1525}
1526#[repr(C)]
1527#[derive(Debug, Copy, Clone)]
1528pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
1529 pub num: ::std::os::raw::c_int,
1530 pub required_num: ::std::os::raw::c_int,
1531 pub bits_start: ::std::os::raw::c_int,
1532 pub rest_start: ::std::os::raw::c_int,
1533 pub table: *const ID,
1534 pub default_values: *const VALUE,
1535}
1536#[repr(C)]
1537#[derive(Copy, Clone)]
1538pub struct rb_iseq_struct {
1539 pub flags: VALUE,
1540 pub reserved1: VALUE,
1541 pub body: *mut rb_iseq_constant_body,
1542 pub aux: rb_iseq_struct__bindgen_ty_1,
1543}
1544#[repr(C)]
1545#[derive(Copy, Clone)]
1546pub union rb_iseq_struct__bindgen_ty_1 {
1547 pub compile_data: *mut iseq_compile_data,
1548 pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
1549 pub trace_events: rb_event_flag_t,
1550}
1551#[repr(C)]
1552#[derive(Debug, Copy, Clone)]
1553pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
1554 pub obj: VALUE,
1555 pub index: ::std::os::raw::c_int,
1556}
1557impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
1558 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1559 write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
1560 }
1561}
1562impl ::std::fmt::Debug for rb_iseq_struct {
1563 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1564 write!(
1565 f,
1566 "rb_iseq_struct {{ flags: {:?}, reserved1: {:?}, body: {:?}, aux: {:?} }}",
1567 self.flags, self.reserved1, self.body, self.aux
1568 )
1569 }
1570}
1571pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
1572#[repr(C)]
1573#[derive(Debug, Copy, Clone)]
1574pub struct rb_at_exit_list {
1575 pub func: rb_vm_at_exit_func,
1576 pub next: *mut rb_at_exit_list,
1577}
1578#[repr(C)]
1579#[derive(Debug, Copy, Clone)]
1580pub struct rb_objspace {
1581 _unused: [u8; 0],
1582}
1583#[repr(C)]
1584#[derive(Debug, Copy, Clone)]
1585pub struct rb_hook_list_struct {
1586 pub hooks: *mut rb_event_hook_struct,
1587 pub events: rb_event_flag_t,
1588 pub need_clean: ::std::os::raw::c_int,
1589}
1590pub type rb_hook_list_t = rb_hook_list_struct;
1591#[repr(C)]
1592#[derive(Copy, Clone)]
1593pub struct rb_vm_struct {
1594 pub self_: VALUE,
1595 pub gvl: rb_global_vm_lock_t,
1596 pub thread_destruct_lock: rb_nativethread_lock_t,
1597 pub main_thread: *mut rb_thread_struct,
1598 pub running_thread: *mut rb_thread_struct,
1599 pub fork_gen: rb_serial_t,
1600 pub waiting_fds: list_head,
1601 pub living_threads: list_head,
1602 pub living_thread_num: usize,
1603 pub thgroup_default: VALUE,
1604 pub _bitfield_align_1: [u8; 0],
1605 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1606 pub trace_running: ::std::os::raw::c_int,
1607 pub sleeper: ::std::os::raw::c_int,
1608 pub mark_object_ary: VALUE,
1609 pub special_exceptions: [VALUE; 5usize],
1610 pub top_self: VALUE,
1611 pub load_path: VALUE,
1612 pub load_path_snapshot: VALUE,
1613 pub load_path_check_cache: VALUE,
1614 pub expanded_load_path: VALUE,
1615 pub loaded_features: VALUE,
1616 pub loaded_features_snapshot: VALUE,
1617 pub loaded_features_index: *mut st_table,
1618 pub loading_table: *mut st_table,
1619 pub trap_list: rb_vm_struct__bindgen_ty_1,
1620 pub event_hooks: rb_hook_list_t,
1621 pub ensure_rollback_table: *mut st_table,
1622 pub postponed_job_buffer: *mut rb_postponed_job_struct,
1623 pub postponed_job_index: ::std::os::raw::c_int,
1624 pub src_encoding_index: ::std::os::raw::c_int,
1625 pub verbose: VALUE,
1626 pub debug: VALUE,
1627 pub orig_progname: VALUE,
1628 pub progname: VALUE,
1629 pub coverages: VALUE,
1630 pub coverage_mode: ::std::os::raw::c_int,
1631 pub defined_module_hash: VALUE,
1632 pub objspace: *mut rb_objspace,
1633 pub at_exit: *mut rb_at_exit_list,
1634 pub defined_strings: *mut VALUE,
1635 pub frozen_strings: *mut st_table,
1636 pub default_params: rb_vm_struct__bindgen_ty_2,
1637 pub redefined_flag: [::std::os::raw::c_short; 25usize],
1638}
1639#[repr(C)]
1640#[derive(Debug, Copy, Clone)]
1641pub struct rb_vm_struct__bindgen_ty_1 {
1642 pub cmd: [VALUE; 65usize],
1643 pub safe: [::std::os::raw::c_uchar; 65usize],
1644}
1645#[repr(C)]
1646#[derive(Debug, Copy, Clone)]
1647pub struct rb_vm_struct__bindgen_ty_2 {
1648 pub thread_vm_stack_size: usize,
1649 pub thread_machine_stack_size: usize,
1650 pub fiber_vm_stack_size: usize,
1651 pub fiber_machine_stack_size: usize,
1652}
1653impl ::std::fmt::Debug for rb_vm_struct {
1654 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1655 write ! (f , "rb_vm_struct {{ self: {:?}, gvl: {:?}, thread_destruct_lock: {:?}, main_thread: {:?}, running_thread: {:?}, fork_gen: {:?}, waiting_fds: {:?}, living_threads: {:?}, thgroup_default: {:?}, running : {:?}, thread_abort_on_exception : {:?}, thread_report_on_exception : {:?}, trace_running: {:?}, sleeper: {:?}, 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: {:?}, event_hooks: {:?}, ensure_rollback_table: {:?}, postponed_job_buffer: {:?}, postponed_job_index: {:?}, src_encoding_index: {:?}, verbose: {:?}, debug: {:?}, orig_progname: {:?}, progname: {:?}, coverages: {:?}, coverage_mode: {:?}, defined_module_hash: {:?}, objspace: {:?}, at_exit: {:?}, defined_strings: {:?}, frozen_strings: {:?}, default_params: {:?}, redefined_flag: {:?} }}" , self . self_ , self . gvl , self . thread_destruct_lock , self . main_thread , self . running_thread , self . fork_gen , self . waiting_fds , self . living_threads , self . thgroup_default , self . running () , self . thread_abort_on_exception () , self . thread_report_on_exception () , self . trace_running , self . sleeper , 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 . event_hooks , self . ensure_rollback_table , self . postponed_job_buffer , self . postponed_job_index , self . src_encoding_index , self . verbose , self . debug , 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 . default_params , self . redefined_flag)
1656 }
1657}
1658impl rb_vm_struct {
1659 #[inline]
1660 pub fn running(&self) -> ::std::os::raw::c_uint {
1661 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1662 }
1663 #[inline]
1664 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
1665 unsafe {
1666 let val: u32 = ::std::mem::transmute(val);
1667 self._bitfield_1.set(0usize, 1u8, val as u64)
1668 }
1669 }
1670 #[inline]
1671 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
1672 unsafe {
1673 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1674 ::std::ptr::addr_of!((*this)._bitfield_1),
1675 0usize,
1676 1u8,
1677 ) as u32)
1678 }
1679 }
1680 #[inline]
1681 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1682 unsafe {
1683 let val: u32 = ::std::mem::transmute(val);
1684 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1685 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1686 0usize,
1687 1u8,
1688 val as u64,
1689 )
1690 }
1691 }
1692 #[inline]
1693 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
1694 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1695 }
1696 #[inline]
1697 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1698 unsafe {
1699 let val: u32 = ::std::mem::transmute(val);
1700 self._bitfield_1.set(1usize, 1u8, val as u64)
1701 }
1702 }
1703 #[inline]
1704 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1705 unsafe {
1706 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1707 ::std::ptr::addr_of!((*this)._bitfield_1),
1708 1usize,
1709 1u8,
1710 ) as u32)
1711 }
1712 }
1713 #[inline]
1714 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1715 unsafe {
1716 let val: u32 = ::std::mem::transmute(val);
1717 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1718 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1719 1usize,
1720 1u8,
1721 val as u64,
1722 )
1723 }
1724 }
1725 #[inline]
1726 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
1727 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1728 }
1729 #[inline]
1730 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1731 unsafe {
1732 let val: u32 = ::std::mem::transmute(val);
1733 self._bitfield_1.set(2usize, 1u8, val as u64)
1734 }
1735 }
1736 #[inline]
1737 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1738 unsafe {
1739 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1740 ::std::ptr::addr_of!((*this)._bitfield_1),
1741 2usize,
1742 1u8,
1743 ) as u32)
1744 }
1745 }
1746 #[inline]
1747 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1748 unsafe {
1749 let val: u32 = ::std::mem::transmute(val);
1750 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1751 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1752 2usize,
1753 1u8,
1754 val as u64,
1755 )
1756 }
1757 }
1758 #[inline]
1759 pub fn new_bitfield_1(
1760 running: ::std::os::raw::c_uint,
1761 thread_abort_on_exception: ::std::os::raw::c_uint,
1762 thread_report_on_exception: ::std::os::raw::c_uint,
1763 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1764 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1765 __bindgen_bitfield_unit.set(0usize, 1u8, {
1766 let running: u32 = unsafe { ::std::mem::transmute(running) };
1767 running as u64
1768 });
1769 __bindgen_bitfield_unit.set(1usize, 1u8, {
1770 let thread_abort_on_exception: u32 =
1771 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
1772 thread_abort_on_exception as u64
1773 });
1774 __bindgen_bitfield_unit.set(2usize, 1u8, {
1775 let thread_report_on_exception: u32 =
1776 unsafe { ::std::mem::transmute(thread_report_on_exception) };
1777 thread_report_on_exception as u64
1778 });
1779 __bindgen_bitfield_unit
1780 }
1781}
1782pub type rb_vm_t = rb_vm_struct;
1783#[repr(C)]
1784#[derive(Debug, Copy, Clone)]
1785pub struct rb_control_frame_struct {
1786 pub pc: *const VALUE,
1787 pub sp: *mut VALUE,
1788 pub iseq: *const rb_iseq_t,
1789 pub self_: VALUE,
1790 pub ep: *const VALUE,
1791 pub block_code: *const ::std::os::raw::c_void,
1792}
1793pub type rb_control_frame_t = rb_control_frame_struct;
1794pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
1795pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
1796pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
1797pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
1798pub type rb_thread_status = ::std::os::raw::c_uint;
1799pub type rb_jmpbuf_t = jmp_buf;
1800#[repr(C)]
1801#[derive(Debug, Copy, Clone)]
1802pub struct rb_vm_tag {
1803 pub tag: VALUE,
1804 pub retval: VALUE,
1805 pub buf: rb_jmpbuf_t,
1806 pub prev: *mut rb_vm_tag,
1807 pub state: ruby_tag_type,
1808}
1809#[repr(C)]
1810#[derive(Debug, Copy, Clone)]
1811pub struct rb_vm_protect_tag {
1812 pub prev: *mut rb_vm_protect_tag,
1813}
1814#[repr(C)]
1815#[derive(Debug, Copy, Clone)]
1816pub struct rb_unblock_callback {
1817 pub func: rb_unblock_function_t,
1818 pub arg: *mut ::std::os::raw::c_void,
1819}
1820#[repr(C)]
1821#[derive(Debug, Copy, Clone)]
1822pub struct rb_mutex_struct {
1823 _unused: [u8; 0],
1824}
1825#[repr(C)]
1826#[derive(Debug, Copy, Clone)]
1827pub struct rb_thread_list_struct {
1828 pub next: *mut rb_thread_list_struct,
1829 pub th: *mut rb_thread_struct,
1830}
1831pub type rb_thread_list_t = rb_thread_list_struct;
1832#[repr(C)]
1833#[derive(Debug, Copy, Clone)]
1834pub struct rb_ensure_entry {
1835 pub marker: VALUE,
1836 pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1837 pub data2: VALUE,
1838}
1839#[repr(C)]
1840#[derive(Debug, Copy, Clone)]
1841pub struct rb_ensure_list {
1842 pub next: *mut rb_ensure_list,
1843 pub entry: rb_ensure_entry,
1844}
1845pub type rb_ensure_list_t = rb_ensure_list;
1846#[repr(C)]
1847#[derive(Debug, Copy, Clone)]
1848pub struct rb_fiber_struct {
1849 _unused: [u8; 0],
1850}
1851pub type rb_fiber_t = rb_fiber_struct;
1852#[repr(C)]
1853#[derive(Debug, Copy, Clone)]
1854pub struct rb_execution_context_struct {
1855 pub vm_stack: *mut VALUE,
1856 pub vm_stack_size: usize,
1857 pub cfp: *mut rb_control_frame_t,
1858 pub tag: *mut rb_vm_tag,
1859 pub protect_tag: *mut rb_vm_protect_tag,
1860 pub safe_level: ::std::os::raw::c_int,
1861 pub raised_flag: ::std::os::raw::c_int,
1862 pub interrupt_flag: rb_atomic_t,
1863 pub interrupt_mask: ::std::os::raw::c_ulong,
1864 pub fiber_ptr: *mut rb_fiber_t,
1865 pub thread_ptr: *mut rb_thread_struct,
1866 pub local_storage: *mut st_table,
1867 pub local_storage_recursive_hash: VALUE,
1868 pub local_storage_recursive_hash_for_trace: VALUE,
1869 pub root_lep: *const VALUE,
1870 pub root_svar: VALUE,
1871 pub ensure_list: *mut rb_ensure_list_t,
1872 pub trace_arg: *mut rb_trace_arg_struct,
1873 pub errinfo: VALUE,
1874 pub passed_block_handler: VALUE,
1875 pub passed_bmethod_me: *const rb_callable_method_entry_t,
1876 pub method_missing_reason: method_missing_reason,
1877 pub machine: rb_execution_context_struct__bindgen_ty_1,
1878}
1879#[repr(C)]
1880#[derive(Debug, Copy, Clone)]
1881pub struct rb_execution_context_struct__bindgen_ty_1 {
1882 pub stack_start: *mut VALUE,
1883 pub stack_end: *mut VALUE,
1884 pub stack_maxsize: usize,
1885 pub regs: jmp_buf,
1886}
1887pub type rb_execution_context_t = rb_execution_context_struct;
1888#[repr(C)]
1889#[derive(Copy, Clone)]
1890pub struct rb_thread_struct {
1891 pub vmlt_node: list_node,
1892 pub self_: VALUE,
1893 pub vm: *mut rb_vm_t,
1894 pub ec: *mut rb_execution_context_t,
1895 pub last_status: VALUE,
1896 pub calling: *mut rb_calling_info,
1897 pub top_self: VALUE,
1898 pub top_wrapper: VALUE,
1899 pub thread_id: rb_nativethread_id_t,
1900 pub status: rb_thread_status,
1901 pub to_kill: ::std::os::raw::c_int,
1902 pub priority: ::std::os::raw::c_int,
1903 pub native_thread_data: native_thread_data_t,
1904 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
1905 pub thgroup: VALUE,
1906 pub value: VALUE,
1907 pub pending_interrupt_queue: VALUE,
1908 pub pending_interrupt_mask_stack: VALUE,
1909 pub pending_interrupt_queue_checked: ::std::os::raw::c_int,
1910 pub interrupt_lock: rb_nativethread_lock_t,
1911 pub unblock: rb_unblock_callback,
1912 pub locking_mutex: VALUE,
1913 pub keeping_mutexes: *mut rb_mutex_struct,
1914 pub join_list: *mut rb_thread_list_t,
1915 pub first_proc: VALUE,
1916 pub first_args: VALUE,
1917 pub first_func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1918 pub stat_insn_usage: VALUE,
1919 pub root_fiber: *mut rb_fiber_t,
1920 pub root_jmpbuf: rb_jmpbuf_t,
1921 pub _bitfield_align_1: [u8; 0],
1922 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1923 pub altstack: *mut ::std::os::raw::c_void,
1924 pub running_time_us: u32,
1925 pub name: VALUE,
1926}
1927impl ::std::fmt::Debug for rb_thread_struct {
1928 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1929 write ! (f , "rb_thread_struct {{ vmlt_node: {:?}, self: {:?}, vm: {:?}, ec: {:?}, last_status: {:?}, calling: {:?}, top_self: {:?}, top_wrapper: {:?}, thread_id: {:?}, status: {:?}, to_kill: {:?}, priority: {:?}, native_thread_data: {:?}, blocking_region_buffer: {:?}, thgroup: {:?}, value: {:?}, pending_interrupt_queue: {:?}, pending_interrupt_mask_stack: {:?}, pending_interrupt_queue_checked: {:?}, interrupt_lock: {:?}, unblock: {:?}, locking_mutex: {:?}, keeping_mutexes: {:?}, join_list: {:?}, first_proc: {:?}, first_args: {:?}, first_func: {:?}, stat_insn_usage: {:?}, root_fiber: {:?}, root_jmpbuf: {:?}, abort_on_exception : {:?}, report_on_exception : {:?}, altstack: {:?}, name: {:?} }}" , self . vmlt_node , self . self_ , self . vm , self . ec , self . last_status , self . calling , self . top_self , self . top_wrapper , self . thread_id , self . status , self . to_kill , self . priority , self . native_thread_data , self . blocking_region_buffer , self . thgroup , self . value , self . pending_interrupt_queue , self . pending_interrupt_mask_stack , self . pending_interrupt_queue_checked , self . interrupt_lock , self . unblock , self . locking_mutex , self . keeping_mutexes , self . join_list , self . first_proc , self . first_args , self . first_func , self . stat_insn_usage , self . root_fiber , self . root_jmpbuf , self . abort_on_exception () , self . report_on_exception () , self . altstack , self . name)
1930 }
1931}
1932impl rb_thread_struct {
1933 #[inline]
1934 pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
1935 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1936 }
1937 #[inline]
1938 pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1939 unsafe {
1940 let val: u32 = ::std::mem::transmute(val);
1941 self._bitfield_1.set(0usize, 1u8, val as u64)
1942 }
1943 }
1944 #[inline]
1945 pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1946 unsafe {
1947 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1948 ::std::ptr::addr_of!((*this)._bitfield_1),
1949 0usize,
1950 1u8,
1951 ) as u32)
1952 }
1953 }
1954 #[inline]
1955 pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1956 unsafe {
1957 let val: u32 = ::std::mem::transmute(val);
1958 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1959 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1960 0usize,
1961 1u8,
1962 val as u64,
1963 )
1964 }
1965 }
1966 #[inline]
1967 pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
1968 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1969 }
1970 #[inline]
1971 pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1972 unsafe {
1973 let val: u32 = ::std::mem::transmute(val);
1974 self._bitfield_1.set(1usize, 1u8, val as u64)
1975 }
1976 }
1977 #[inline]
1978 pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1979 unsafe {
1980 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1981 ::std::ptr::addr_of!((*this)._bitfield_1),
1982 1usize,
1983 1u8,
1984 ) as u32)
1985 }
1986 }
1987 #[inline]
1988 pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1989 unsafe {
1990 let val: u32 = ::std::mem::transmute(val);
1991 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1992 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1993 1usize,
1994 1u8,
1995 val as u64,
1996 )
1997 }
1998 }
1999 #[inline]
2000 pub fn new_bitfield_1(
2001 abort_on_exception: ::std::os::raw::c_uint,
2002 report_on_exception: ::std::os::raw::c_uint,
2003 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2004 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2005 __bindgen_bitfield_unit.set(0usize, 1u8, {
2006 let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2007 abort_on_exception as u64
2008 });
2009 __bindgen_bitfield_unit.set(1usize, 1u8, {
2010 let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2011 report_on_exception as u64
2012 });
2013 __bindgen_bitfield_unit
2014 }
2015}
2016pub type rb_thread_t = rb_thread_struct;
2017#[repr(C)]
2018#[derive(Debug, Copy, Clone)]
2019pub struct rb_trace_arg_struct {
2020 pub event: rb_event_flag_t,
2021 pub ec: *mut rb_execution_context_t,
2022 pub cfp: *const rb_control_frame_t,
2023 pub self_: VALUE,
2024 pub id: ID,
2025 pub called_id: ID,
2026 pub klass: VALUE,
2027 pub data: VALUE,
2028 pub klass_solved: ::std::os::raw::c_int,
2029 pub lineno: ::std::os::raw::c_int,
2030 pub path: VALUE,
2031}
2032#[repr(C)]
2033#[derive(Debug, Copy, Clone)]
2034pub struct iseq_compile_data {
2035 pub err_info: VALUE,
2036 pub mark_ary: VALUE,
2037 pub catch_table_ary: VALUE,
2038 pub start_label: *mut iseq_label_data,
2039 pub end_label: *mut iseq_label_data,
2040 pub redo_label: *mut iseq_label_data,
2041 pub current_block: *const rb_iseq_t,
2042 pub ensure_node: VALUE,
2043 pub for_iseq: VALUE,
2044 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2045 pub loopval_popped: ::std::os::raw::c_int,
2046 pub cached_const: ::std::os::raw::c_int,
2047 pub storage_head: *mut iseq_compile_data_storage,
2048 pub storage_current: *mut iseq_compile_data_storage,
2049 pub last_line: ::std::os::raw::c_int,
2050 pub label_no: ::std::os::raw::c_int,
2051 pub node_level: ::std::os::raw::c_int,
2052 pub ci_index: ::std::os::raw::c_uint,
2053 pub ci_kw_index: ::std::os::raw::c_uint,
2054 pub option: *const rb_compile_option_t,
2055 pub ivar_cache_table: *mut rb_id_table,
2056}
2057#[repr(C)]
2058#[derive(Debug, Copy, Clone)]
2059pub struct rb_compile_option_struct {
2060 pub _bitfield_align_1: [u8; 0],
2061 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2062 pub debug_level: ::std::os::raw::c_int,
2063}
2064impl rb_compile_option_struct {
2065 #[inline]
2066 pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
2067 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2068 }
2069 #[inline]
2070 pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
2071 unsafe {
2072 let val: u32 = ::std::mem::transmute(val);
2073 self._bitfield_1.set(0usize, 1u8, val as u64)
2074 }
2075 }
2076 #[inline]
2077 pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
2078 unsafe {
2079 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2080 ::std::ptr::addr_of!((*this)._bitfield_1),
2081 0usize,
2082 1u8,
2083 ) as u32)
2084 }
2085 }
2086 #[inline]
2087 pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2088 unsafe {
2089 let val: u32 = ::std::mem::transmute(val);
2090 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2091 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2092 0usize,
2093 1u8,
2094 val as u64,
2095 )
2096 }
2097 }
2098 #[inline]
2099 pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
2100 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2101 }
2102 #[inline]
2103 pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
2104 unsafe {
2105 let val: u32 = ::std::mem::transmute(val);
2106 self._bitfield_1.set(1usize, 1u8, val as u64)
2107 }
2108 }
2109 #[inline]
2110 pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2111 unsafe {
2112 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2113 ::std::ptr::addr_of!((*this)._bitfield_1),
2114 1usize,
2115 1u8,
2116 ) as u32)
2117 }
2118 }
2119 #[inline]
2120 pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2121 unsafe {
2122 let val: u32 = ::std::mem::transmute(val);
2123 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2124 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2125 1usize,
2126 1u8,
2127 val as u64,
2128 )
2129 }
2130 }
2131 #[inline]
2132 pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
2133 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2134 }
2135 #[inline]
2136 pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
2137 unsafe {
2138 let val: u32 = ::std::mem::transmute(val);
2139 self._bitfield_1.set(2usize, 1u8, val as u64)
2140 }
2141 }
2142 #[inline]
2143 pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2144 unsafe {
2145 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2146 ::std::ptr::addr_of!((*this)._bitfield_1),
2147 2usize,
2148 1u8,
2149 ) as u32)
2150 }
2151 }
2152 #[inline]
2153 pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2154 unsafe {
2155 let val: u32 = ::std::mem::transmute(val);
2156 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2157 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2158 2usize,
2159 1u8,
2160 val as u64,
2161 )
2162 }
2163 }
2164 #[inline]
2165 pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
2166 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2167 }
2168 #[inline]
2169 pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
2170 unsafe {
2171 let val: u32 = ::std::mem::transmute(val);
2172 self._bitfield_1.set(3usize, 1u8, val as u64)
2173 }
2174 }
2175 #[inline]
2176 pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
2177 unsafe {
2178 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2179 ::std::ptr::addr_of!((*this)._bitfield_1),
2180 3usize,
2181 1u8,
2182 ) as u32)
2183 }
2184 }
2185 #[inline]
2186 pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2187 unsafe {
2188 let val: u32 = ::std::mem::transmute(val);
2189 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2190 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2191 3usize,
2192 1u8,
2193 val as u64,
2194 )
2195 }
2196 }
2197 #[inline]
2198 pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
2199 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2200 }
2201 #[inline]
2202 pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
2203 unsafe {
2204 let val: u32 = ::std::mem::transmute(val);
2205 self._bitfield_1.set(4usize, 1u8, val as u64)
2206 }
2207 }
2208 #[inline]
2209 pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2210 unsafe {
2211 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2212 ::std::ptr::addr_of!((*this)._bitfield_1),
2213 4usize,
2214 1u8,
2215 ) as u32)
2216 }
2217 }
2218 #[inline]
2219 pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2220 unsafe {
2221 let val: u32 = ::std::mem::transmute(val);
2222 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2223 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2224 4usize,
2225 1u8,
2226 val as u64,
2227 )
2228 }
2229 }
2230 #[inline]
2231 pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
2232 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2233 }
2234 #[inline]
2235 pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
2236 unsafe {
2237 let val: u32 = ::std::mem::transmute(val);
2238 self._bitfield_1.set(5usize, 1u8, val as u64)
2239 }
2240 }
2241 #[inline]
2242 pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2243 unsafe {
2244 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2245 ::std::ptr::addr_of!((*this)._bitfield_1),
2246 5usize,
2247 1u8,
2248 ) as u32)
2249 }
2250 }
2251 #[inline]
2252 pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2253 unsafe {
2254 let val: u32 = ::std::mem::transmute(val);
2255 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2256 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2257 5usize,
2258 1u8,
2259 val as u64,
2260 )
2261 }
2262 }
2263 #[inline]
2264 pub fn stack_caching(&self) -> ::std::os::raw::c_uint {
2265 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
2266 }
2267 #[inline]
2268 pub fn set_stack_caching(&mut self, val: ::std::os::raw::c_uint) {
2269 unsafe {
2270 let val: u32 = ::std::mem::transmute(val);
2271 self._bitfield_1.set(6usize, 1u8, val as u64)
2272 }
2273 }
2274 #[inline]
2275 pub unsafe fn stack_caching_raw(this: *const Self) -> ::std::os::raw::c_uint {
2276 unsafe {
2277 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2278 ::std::ptr::addr_of!((*this)._bitfield_1),
2279 6usize,
2280 1u8,
2281 ) as u32)
2282 }
2283 }
2284 #[inline]
2285 pub unsafe fn set_stack_caching_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2286 unsafe {
2287 let val: u32 = ::std::mem::transmute(val);
2288 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2289 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2290 6usize,
2291 1u8,
2292 val as u64,
2293 )
2294 }
2295 }
2296 #[inline]
2297 pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
2298 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
2299 }
2300 #[inline]
2301 pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
2302 unsafe {
2303 let val: u32 = ::std::mem::transmute(val);
2304 self._bitfield_1.set(7usize, 1u8, val as u64)
2305 }
2306 }
2307 #[inline]
2308 pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
2309 unsafe {
2310 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2311 ::std::ptr::addr_of!((*this)._bitfield_1),
2312 7usize,
2313 1u8,
2314 ) as u32)
2315 }
2316 }
2317 #[inline]
2318 pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2319 unsafe {
2320 let val: u32 = ::std::mem::transmute(val);
2321 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2322 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2323 7usize,
2324 1u8,
2325 val as u64,
2326 )
2327 }
2328 }
2329 #[inline]
2330 pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
2331 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
2332 }
2333 #[inline]
2334 pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
2335 unsafe {
2336 let val: u32 = ::std::mem::transmute(val);
2337 self._bitfield_1.set(8usize, 1u8, val as u64)
2338 }
2339 }
2340 #[inline]
2341 pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
2342 unsafe {
2343 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2344 ::std::ptr::addr_of!((*this)._bitfield_1),
2345 8usize,
2346 1u8,
2347 ) as u32)
2348 }
2349 }
2350 #[inline]
2351 pub unsafe fn set_debug_frozen_string_literal_raw(
2352 this: *mut Self,
2353 val: ::std::os::raw::c_uint,
2354 ) {
2355 unsafe {
2356 let val: u32 = ::std::mem::transmute(val);
2357 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2358 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2359 8usize,
2360 1u8,
2361 val as u64,
2362 )
2363 }
2364 }
2365 #[inline]
2366 pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
2367 unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
2368 }
2369 #[inline]
2370 pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
2371 unsafe {
2372 let val: u32 = ::std::mem::transmute(val);
2373 self._bitfield_1.set(9usize, 1u8, val as u64)
2374 }
2375 }
2376 #[inline]
2377 pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
2378 unsafe {
2379 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2380 ::std::ptr::addr_of!((*this)._bitfield_1),
2381 9usize,
2382 1u8,
2383 ) as u32)
2384 }
2385 }
2386 #[inline]
2387 pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2388 unsafe {
2389 let val: u32 = ::std::mem::transmute(val);
2390 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2391 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2392 9usize,
2393 1u8,
2394 val as u64,
2395 )
2396 }
2397 }
2398 #[inline]
2399 pub fn new_bitfield_1(
2400 inline_const_cache: ::std::os::raw::c_uint,
2401 peephole_optimization: ::std::os::raw::c_uint,
2402 tailcall_optimization: ::std::os::raw::c_uint,
2403 specialized_instruction: ::std::os::raw::c_uint,
2404 operands_unification: ::std::os::raw::c_uint,
2405 instructions_unification: ::std::os::raw::c_uint,
2406 stack_caching: ::std::os::raw::c_uint,
2407 frozen_string_literal: ::std::os::raw::c_uint,
2408 debug_frozen_string_literal: ::std::os::raw::c_uint,
2409 coverage_enabled: ::std::os::raw::c_uint,
2410 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2411 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2412 __bindgen_bitfield_unit.set(0usize, 1u8, {
2413 let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
2414 inline_const_cache as u64
2415 });
2416 __bindgen_bitfield_unit.set(1usize, 1u8, {
2417 let peephole_optimization: u32 =
2418 unsafe { ::std::mem::transmute(peephole_optimization) };
2419 peephole_optimization as u64
2420 });
2421 __bindgen_bitfield_unit.set(2usize, 1u8, {
2422 let tailcall_optimization: u32 =
2423 unsafe { ::std::mem::transmute(tailcall_optimization) };
2424 tailcall_optimization as u64
2425 });
2426 __bindgen_bitfield_unit.set(3usize, 1u8, {
2427 let specialized_instruction: u32 =
2428 unsafe { ::std::mem::transmute(specialized_instruction) };
2429 specialized_instruction as u64
2430 });
2431 __bindgen_bitfield_unit.set(4usize, 1u8, {
2432 let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
2433 operands_unification as u64
2434 });
2435 __bindgen_bitfield_unit.set(5usize, 1u8, {
2436 let instructions_unification: u32 =
2437 unsafe { ::std::mem::transmute(instructions_unification) };
2438 instructions_unification as u64
2439 });
2440 __bindgen_bitfield_unit.set(6usize, 1u8, {
2441 let stack_caching: u32 = unsafe { ::std::mem::transmute(stack_caching) };
2442 stack_caching as u64
2443 });
2444 __bindgen_bitfield_unit.set(7usize, 1u8, {
2445 let frozen_string_literal: u32 =
2446 unsafe { ::std::mem::transmute(frozen_string_literal) };
2447 frozen_string_literal as u64
2448 });
2449 __bindgen_bitfield_unit.set(8usize, 1u8, {
2450 let debug_frozen_string_literal: u32 =
2451 unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
2452 debug_frozen_string_literal as u64
2453 });
2454 __bindgen_bitfield_unit.set(9usize, 1u8, {
2455 let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
2456 coverage_enabled as u64
2457 });
2458 __bindgen_bitfield_unit
2459 }
2460}
2461#[repr(C)]
2462#[derive(Debug, Copy, Clone)]
2463pub struct iseq_insn_info_entry {
2464 pub position: ::std::os::raw::c_uint,
2465 pub line_no: ::std::os::raw::c_int,
2466 pub events: rb_event_flag_t,
2467}
2468#[repr(C)]
2469#[derive(Debug, Copy, Clone)]
2470pub struct iseq_catch_table_entry {
2471 pub type_: iseq_catch_table_entry_catch_type,
2472 pub iseq: *const rb_iseq_t,
2473 pub start: ::std::os::raw::c_uint,
2474 pub end: ::std::os::raw::c_uint,
2475 pub cont: ::std::os::raw::c_uint,
2476 pub sp: ::std::os::raw::c_uint,
2477}
2478pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
2479 3;
2480pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
2481 5;
2482pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
2483pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
2484pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
2485pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
2486pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
2487#[repr(C, packed)]
2488#[derive(Copy, Clone)]
2489pub struct iseq_catch_table {
2490 pub size: ::std::os::raw::c_uint,
2491 pub entries: [iseq_catch_table_entry; 1usize],
2492}
2493#[repr(C)]
2494#[derive(Debug, Copy, Clone)]
2495pub struct iseq_compile_data_storage {
2496 pub next: *mut iseq_compile_data_storage,
2497 pub pos: ::std::os::raw::c_uint,
2498 pub size: ::std::os::raw::c_uint,
2499 pub buff: [::std::os::raw::c_char; 1usize],
2500}
2501#[repr(C)]
2502#[derive(Debug, Copy, Clone)]
2503pub struct rb_id_table {
2504 pub _address: u8,
2505}
2506#[repr(C)]
2507#[derive(Debug, Copy, Clone)]
2508pub struct rb_event_hook_struct {
2509 pub _address: u8,
2510}
2511#[repr(C)]
2512#[derive(Debug, Copy, Clone)]
2513pub struct rb_postponed_job_struct {
2514 pub _address: u8,
2515}
2516#[repr(C)]
2517#[derive(Debug, Copy, Clone)]
2518pub struct iseq_label_data {
2519 pub _address: u8,
2520}
2521#[repr(C)]
2522#[derive(Debug, Copy, Clone)]
2523pub struct iseq_compile_data_ensure_node_stack {
2524 pub _address: u8,
2525}