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 waiting_fds: list_head,
1600 pub living_threads: list_head,
1601 pub living_thread_num: usize,
1602 pub thgroup_default: VALUE,
1603 pub _bitfield_align_1: [u8; 0],
1604 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1605 pub trace_running: ::std::os::raw::c_int,
1606 pub sleeper: ::std::os::raw::c_int,
1607 pub mark_object_ary: VALUE,
1608 pub special_exceptions: [VALUE; 5usize],
1609 pub top_self: VALUE,
1610 pub load_path: VALUE,
1611 pub load_path_snapshot: VALUE,
1612 pub load_path_check_cache: VALUE,
1613 pub expanded_load_path: VALUE,
1614 pub loaded_features: VALUE,
1615 pub loaded_features_snapshot: VALUE,
1616 pub loaded_features_index: *mut st_table,
1617 pub loading_table: *mut st_table,
1618 pub trap_list: rb_vm_struct__bindgen_ty_1,
1619 pub event_hooks: rb_hook_list_t,
1620 pub ensure_rollback_table: *mut st_table,
1621 pub postponed_job_buffer: *mut rb_postponed_job_struct,
1622 pub postponed_job_index: ::std::os::raw::c_int,
1623 pub src_encoding_index: ::std::os::raw::c_int,
1624 pub verbose: VALUE,
1625 pub debug: VALUE,
1626 pub orig_progname: VALUE,
1627 pub progname: VALUE,
1628 pub coverages: VALUE,
1629 pub coverage_mode: ::std::os::raw::c_int,
1630 pub defined_module_hash: VALUE,
1631 pub objspace: *mut rb_objspace,
1632 pub at_exit: *mut rb_at_exit_list,
1633 pub defined_strings: *mut VALUE,
1634 pub frozen_strings: *mut st_table,
1635 pub default_params: rb_vm_struct__bindgen_ty_2,
1636 pub redefined_flag: [::std::os::raw::c_short; 25usize],
1637}
1638#[repr(C)]
1639#[derive(Debug, Copy, Clone)]
1640pub struct rb_vm_struct__bindgen_ty_1 {
1641 pub cmd: [VALUE; 65usize],
1642 pub safe: [::std::os::raw::c_uchar; 65usize],
1643}
1644#[repr(C)]
1645#[derive(Debug, Copy, Clone)]
1646pub struct rb_vm_struct__bindgen_ty_2 {
1647 pub thread_vm_stack_size: usize,
1648 pub thread_machine_stack_size: usize,
1649 pub fiber_vm_stack_size: usize,
1650 pub fiber_machine_stack_size: usize,
1651}
1652impl ::std::fmt::Debug for rb_vm_struct {
1653 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1654 write ! (f , "rb_vm_struct {{ self: {:?}, gvl: {:?}, thread_destruct_lock: {:?}, main_thread: {:?}, running_thread: {:?}, 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 . 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)
1655 }
1656}
1657impl rb_vm_struct {
1658 #[inline]
1659 pub fn running(&self) -> ::std::os::raw::c_uint {
1660 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1661 }
1662 #[inline]
1663 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
1664 unsafe {
1665 let val: u32 = ::std::mem::transmute(val);
1666 self._bitfield_1.set(0usize, 1u8, val as u64)
1667 }
1668 }
1669 #[inline]
1670 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
1671 unsafe {
1672 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1673 ::std::ptr::addr_of!((*this)._bitfield_1),
1674 0usize,
1675 1u8,
1676 ) as u32)
1677 }
1678 }
1679 #[inline]
1680 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1681 unsafe {
1682 let val: u32 = ::std::mem::transmute(val);
1683 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1684 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1685 0usize,
1686 1u8,
1687 val as u64,
1688 )
1689 }
1690 }
1691 #[inline]
1692 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
1693 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1694 }
1695 #[inline]
1696 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1697 unsafe {
1698 let val: u32 = ::std::mem::transmute(val);
1699 self._bitfield_1.set(1usize, 1u8, val as u64)
1700 }
1701 }
1702 #[inline]
1703 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1704 unsafe {
1705 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1706 ::std::ptr::addr_of!((*this)._bitfield_1),
1707 1usize,
1708 1u8,
1709 ) as u32)
1710 }
1711 }
1712 #[inline]
1713 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1714 unsafe {
1715 let val: u32 = ::std::mem::transmute(val);
1716 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1717 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1718 1usize,
1719 1u8,
1720 val as u64,
1721 )
1722 }
1723 }
1724 #[inline]
1725 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
1726 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1727 }
1728 #[inline]
1729 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1730 unsafe {
1731 let val: u32 = ::std::mem::transmute(val);
1732 self._bitfield_1.set(2usize, 1u8, val as u64)
1733 }
1734 }
1735 #[inline]
1736 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1737 unsafe {
1738 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1739 ::std::ptr::addr_of!((*this)._bitfield_1),
1740 2usize,
1741 1u8,
1742 ) as u32)
1743 }
1744 }
1745 #[inline]
1746 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1747 unsafe {
1748 let val: u32 = ::std::mem::transmute(val);
1749 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1750 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1751 2usize,
1752 1u8,
1753 val as u64,
1754 )
1755 }
1756 }
1757 #[inline]
1758 pub fn new_bitfield_1(
1759 running: ::std::os::raw::c_uint,
1760 thread_abort_on_exception: ::std::os::raw::c_uint,
1761 thread_report_on_exception: ::std::os::raw::c_uint,
1762 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1763 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1764 __bindgen_bitfield_unit.set(0usize, 1u8, {
1765 let running: u32 = unsafe { ::std::mem::transmute(running) };
1766 running as u64
1767 });
1768 __bindgen_bitfield_unit.set(1usize, 1u8, {
1769 let thread_abort_on_exception: u32 =
1770 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
1771 thread_abort_on_exception as u64
1772 });
1773 __bindgen_bitfield_unit.set(2usize, 1u8, {
1774 let thread_report_on_exception: u32 =
1775 unsafe { ::std::mem::transmute(thread_report_on_exception) };
1776 thread_report_on_exception as u64
1777 });
1778 __bindgen_bitfield_unit
1779 }
1780}
1781pub type rb_vm_t = rb_vm_struct;
1782#[repr(C)]
1783#[derive(Debug, Copy, Clone)]
1784pub struct rb_control_frame_struct {
1785 pub pc: *const VALUE,
1786 pub sp: *mut VALUE,
1787 pub iseq: *const rb_iseq_t,
1788 pub self_: VALUE,
1789 pub ep: *const VALUE,
1790 pub block_code: *const ::std::os::raw::c_void,
1791}
1792pub type rb_control_frame_t = rb_control_frame_struct;
1793pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
1794pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
1795pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
1796pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
1797pub type rb_thread_status = ::std::os::raw::c_uint;
1798pub type rb_jmpbuf_t = jmp_buf;
1799#[repr(C)]
1800#[derive(Debug, Copy, Clone)]
1801pub struct rb_vm_tag {
1802 pub tag: VALUE,
1803 pub retval: VALUE,
1804 pub buf: rb_jmpbuf_t,
1805 pub prev: *mut rb_vm_tag,
1806 pub state: ruby_tag_type,
1807}
1808#[repr(C)]
1809#[derive(Debug, Copy, Clone)]
1810pub struct rb_vm_protect_tag {
1811 pub prev: *mut rb_vm_protect_tag,
1812}
1813#[repr(C)]
1814#[derive(Debug, Copy, Clone)]
1815pub struct rb_unblock_callback {
1816 pub func: rb_unblock_function_t,
1817 pub arg: *mut ::std::os::raw::c_void,
1818}
1819#[repr(C)]
1820#[derive(Debug, Copy, Clone)]
1821pub struct rb_mutex_struct {
1822 _unused: [u8; 0],
1823}
1824#[repr(C)]
1825#[derive(Debug, Copy, Clone)]
1826pub struct rb_thread_list_struct {
1827 pub next: *mut rb_thread_list_struct,
1828 pub th: *mut rb_thread_struct,
1829}
1830pub type rb_thread_list_t = rb_thread_list_struct;
1831#[repr(C)]
1832#[derive(Debug, Copy, Clone)]
1833pub struct rb_ensure_entry {
1834 pub marker: VALUE,
1835 pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1836 pub data2: VALUE,
1837}
1838#[repr(C)]
1839#[derive(Debug, Copy, Clone)]
1840pub struct rb_ensure_list {
1841 pub next: *mut rb_ensure_list,
1842 pub entry: rb_ensure_entry,
1843}
1844pub type rb_ensure_list_t = rb_ensure_list;
1845#[repr(C)]
1846#[derive(Debug, Copy, Clone)]
1847pub struct rb_fiber_struct {
1848 _unused: [u8; 0],
1849}
1850pub type rb_fiber_t = rb_fiber_struct;
1851#[repr(C)]
1852#[derive(Debug, Copy, Clone)]
1853pub struct rb_execution_context_struct {
1854 pub vm_stack: *mut VALUE,
1855 pub vm_stack_size: usize,
1856 pub cfp: *mut rb_control_frame_t,
1857 pub tag: *mut rb_vm_tag,
1858 pub protect_tag: *mut rb_vm_protect_tag,
1859 pub safe_level: ::std::os::raw::c_int,
1860 pub raised_flag: ::std::os::raw::c_int,
1861 pub interrupt_flag: rb_atomic_t,
1862 pub interrupt_mask: ::std::os::raw::c_ulong,
1863 pub fiber_ptr: *mut rb_fiber_t,
1864 pub thread_ptr: *mut rb_thread_struct,
1865 pub local_storage: *mut st_table,
1866 pub local_storage_recursive_hash: VALUE,
1867 pub local_storage_recursive_hash_for_trace: VALUE,
1868 pub root_lep: *const VALUE,
1869 pub root_svar: VALUE,
1870 pub ensure_list: *mut rb_ensure_list_t,
1871 pub trace_arg: *mut rb_trace_arg_struct,
1872 pub errinfo: VALUE,
1873 pub passed_block_handler: VALUE,
1874 pub passed_bmethod_me: *const rb_callable_method_entry_t,
1875 pub method_missing_reason: method_missing_reason,
1876 pub machine: rb_execution_context_struct__bindgen_ty_1,
1877}
1878#[repr(C)]
1879#[derive(Debug, Copy, Clone)]
1880pub struct rb_execution_context_struct__bindgen_ty_1 {
1881 pub stack_start: *mut VALUE,
1882 pub stack_end: *mut VALUE,
1883 pub stack_maxsize: usize,
1884 pub regs: jmp_buf,
1885}
1886pub type rb_execution_context_t = rb_execution_context_struct;
1887#[repr(C)]
1888#[derive(Copy, Clone)]
1889pub struct rb_thread_struct {
1890 pub vmlt_node: list_node,
1891 pub self_: VALUE,
1892 pub vm: *mut rb_vm_t,
1893 pub ec: *mut rb_execution_context_t,
1894 pub last_status: VALUE,
1895 pub calling: *mut rb_calling_info,
1896 pub top_self: VALUE,
1897 pub top_wrapper: VALUE,
1898 pub thread_id: rb_nativethread_id_t,
1899 pub status: rb_thread_status,
1900 pub to_kill: ::std::os::raw::c_int,
1901 pub priority: ::std::os::raw::c_int,
1902 pub native_thread_data: native_thread_data_t,
1903 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
1904 pub thgroup: VALUE,
1905 pub value: VALUE,
1906 pub pending_interrupt_queue: VALUE,
1907 pub pending_interrupt_mask_stack: VALUE,
1908 pub pending_interrupt_queue_checked: ::std::os::raw::c_int,
1909 pub interrupt_lock: rb_nativethread_lock_t,
1910 pub unblock: rb_unblock_callback,
1911 pub locking_mutex: VALUE,
1912 pub keeping_mutexes: *mut rb_mutex_struct,
1913 pub join_list: *mut rb_thread_list_t,
1914 pub first_proc: VALUE,
1915 pub first_args: VALUE,
1916 pub first_func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1917 pub stat_insn_usage: VALUE,
1918 pub root_fiber: *mut rb_fiber_t,
1919 pub root_jmpbuf: rb_jmpbuf_t,
1920 pub _bitfield_align_1: [u8; 0],
1921 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1922 pub altstack: *mut ::std::os::raw::c_void,
1923 pub running_time_us: u32,
1924 pub name: VALUE,
1925}
1926impl ::std::fmt::Debug for rb_thread_struct {
1927 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1928 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)
1929 }
1930}
1931impl rb_thread_struct {
1932 #[inline]
1933 pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
1934 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1935 }
1936 #[inline]
1937 pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1938 unsafe {
1939 let val: u32 = ::std::mem::transmute(val);
1940 self._bitfield_1.set(0usize, 1u8, val as u64)
1941 }
1942 }
1943 #[inline]
1944 pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1945 unsafe {
1946 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1947 ::std::ptr::addr_of!((*this)._bitfield_1),
1948 0usize,
1949 1u8,
1950 ) as u32)
1951 }
1952 }
1953 #[inline]
1954 pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1955 unsafe {
1956 let val: u32 = ::std::mem::transmute(val);
1957 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1958 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1959 0usize,
1960 1u8,
1961 val as u64,
1962 )
1963 }
1964 }
1965 #[inline]
1966 pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
1967 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1968 }
1969 #[inline]
1970 pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1971 unsafe {
1972 let val: u32 = ::std::mem::transmute(val);
1973 self._bitfield_1.set(1usize, 1u8, val as u64)
1974 }
1975 }
1976 #[inline]
1977 pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1978 unsafe {
1979 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1980 ::std::ptr::addr_of!((*this)._bitfield_1),
1981 1usize,
1982 1u8,
1983 ) as u32)
1984 }
1985 }
1986 #[inline]
1987 pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1988 unsafe {
1989 let val: u32 = ::std::mem::transmute(val);
1990 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1991 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1992 1usize,
1993 1u8,
1994 val as u64,
1995 )
1996 }
1997 }
1998 #[inline]
1999 pub fn new_bitfield_1(
2000 abort_on_exception: ::std::os::raw::c_uint,
2001 report_on_exception: ::std::os::raw::c_uint,
2002 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2003 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2004 __bindgen_bitfield_unit.set(0usize, 1u8, {
2005 let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2006 abort_on_exception as u64
2007 });
2008 __bindgen_bitfield_unit.set(1usize, 1u8, {
2009 let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2010 report_on_exception as u64
2011 });
2012 __bindgen_bitfield_unit
2013 }
2014}
2015pub type rb_thread_t = rb_thread_struct;
2016#[repr(C)]
2017#[derive(Debug, Copy, Clone)]
2018pub struct rb_trace_arg_struct {
2019 pub event: rb_event_flag_t,
2020 pub ec: *mut rb_execution_context_t,
2021 pub cfp: *const rb_control_frame_t,
2022 pub self_: VALUE,
2023 pub id: ID,
2024 pub called_id: ID,
2025 pub klass: VALUE,
2026 pub data: VALUE,
2027 pub klass_solved: ::std::os::raw::c_int,
2028 pub lineno: ::std::os::raw::c_int,
2029 pub path: VALUE,
2030}
2031#[repr(C)]
2032#[derive(Debug, Copy, Clone)]
2033pub struct iseq_compile_data {
2034 pub err_info: VALUE,
2035 pub mark_ary: VALUE,
2036 pub catch_table_ary: VALUE,
2037 pub start_label: *mut iseq_label_data,
2038 pub end_label: *mut iseq_label_data,
2039 pub redo_label: *mut iseq_label_data,
2040 pub current_block: *const rb_iseq_t,
2041 pub ensure_node: VALUE,
2042 pub for_iseq: VALUE,
2043 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2044 pub loopval_popped: ::std::os::raw::c_int,
2045 pub cached_const: ::std::os::raw::c_int,
2046 pub storage_head: *mut iseq_compile_data_storage,
2047 pub storage_current: *mut iseq_compile_data_storage,
2048 pub last_line: ::std::os::raw::c_int,
2049 pub label_no: ::std::os::raw::c_int,
2050 pub node_level: ::std::os::raw::c_int,
2051 pub ci_index: ::std::os::raw::c_uint,
2052 pub ci_kw_index: ::std::os::raw::c_uint,
2053 pub option: *const rb_compile_option_t,
2054 pub ivar_cache_table: *mut rb_id_table,
2055}
2056#[repr(C)]
2057#[derive(Debug, Copy, Clone)]
2058pub struct rb_compile_option_struct {
2059 pub _bitfield_align_1: [u8; 0],
2060 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2061 pub debug_level: ::std::os::raw::c_int,
2062}
2063impl rb_compile_option_struct {
2064 #[inline]
2065 pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
2066 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2067 }
2068 #[inline]
2069 pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
2070 unsafe {
2071 let val: u32 = ::std::mem::transmute(val);
2072 self._bitfield_1.set(0usize, 1u8, val as u64)
2073 }
2074 }
2075 #[inline]
2076 pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
2077 unsafe {
2078 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2079 ::std::ptr::addr_of!((*this)._bitfield_1),
2080 0usize,
2081 1u8,
2082 ) as u32)
2083 }
2084 }
2085 #[inline]
2086 pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2087 unsafe {
2088 let val: u32 = ::std::mem::transmute(val);
2089 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2090 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2091 0usize,
2092 1u8,
2093 val as u64,
2094 )
2095 }
2096 }
2097 #[inline]
2098 pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
2099 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2100 }
2101 #[inline]
2102 pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
2103 unsafe {
2104 let val: u32 = ::std::mem::transmute(val);
2105 self._bitfield_1.set(1usize, 1u8, val as u64)
2106 }
2107 }
2108 #[inline]
2109 pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2110 unsafe {
2111 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2112 ::std::ptr::addr_of!((*this)._bitfield_1),
2113 1usize,
2114 1u8,
2115 ) as u32)
2116 }
2117 }
2118 #[inline]
2119 pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2120 unsafe {
2121 let val: u32 = ::std::mem::transmute(val);
2122 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2123 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2124 1usize,
2125 1u8,
2126 val as u64,
2127 )
2128 }
2129 }
2130 #[inline]
2131 pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
2132 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2133 }
2134 #[inline]
2135 pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
2136 unsafe {
2137 let val: u32 = ::std::mem::transmute(val);
2138 self._bitfield_1.set(2usize, 1u8, val as u64)
2139 }
2140 }
2141 #[inline]
2142 pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2143 unsafe {
2144 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2145 ::std::ptr::addr_of!((*this)._bitfield_1),
2146 2usize,
2147 1u8,
2148 ) as u32)
2149 }
2150 }
2151 #[inline]
2152 pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2153 unsafe {
2154 let val: u32 = ::std::mem::transmute(val);
2155 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2156 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2157 2usize,
2158 1u8,
2159 val as u64,
2160 )
2161 }
2162 }
2163 #[inline]
2164 pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
2165 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2166 }
2167 #[inline]
2168 pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
2169 unsafe {
2170 let val: u32 = ::std::mem::transmute(val);
2171 self._bitfield_1.set(3usize, 1u8, val as u64)
2172 }
2173 }
2174 #[inline]
2175 pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
2176 unsafe {
2177 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2178 ::std::ptr::addr_of!((*this)._bitfield_1),
2179 3usize,
2180 1u8,
2181 ) as u32)
2182 }
2183 }
2184 #[inline]
2185 pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2186 unsafe {
2187 let val: u32 = ::std::mem::transmute(val);
2188 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2189 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2190 3usize,
2191 1u8,
2192 val as u64,
2193 )
2194 }
2195 }
2196 #[inline]
2197 pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
2198 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2199 }
2200 #[inline]
2201 pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
2202 unsafe {
2203 let val: u32 = ::std::mem::transmute(val);
2204 self._bitfield_1.set(4usize, 1u8, val as u64)
2205 }
2206 }
2207 #[inline]
2208 pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2209 unsafe {
2210 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2211 ::std::ptr::addr_of!((*this)._bitfield_1),
2212 4usize,
2213 1u8,
2214 ) as u32)
2215 }
2216 }
2217 #[inline]
2218 pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2219 unsafe {
2220 let val: u32 = ::std::mem::transmute(val);
2221 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2222 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2223 4usize,
2224 1u8,
2225 val as u64,
2226 )
2227 }
2228 }
2229 #[inline]
2230 pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
2231 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2232 }
2233 #[inline]
2234 pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
2235 unsafe {
2236 let val: u32 = ::std::mem::transmute(val);
2237 self._bitfield_1.set(5usize, 1u8, val as u64)
2238 }
2239 }
2240 #[inline]
2241 pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2242 unsafe {
2243 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2244 ::std::ptr::addr_of!((*this)._bitfield_1),
2245 5usize,
2246 1u8,
2247 ) as u32)
2248 }
2249 }
2250 #[inline]
2251 pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2252 unsafe {
2253 let val: u32 = ::std::mem::transmute(val);
2254 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2255 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2256 5usize,
2257 1u8,
2258 val as u64,
2259 )
2260 }
2261 }
2262 #[inline]
2263 pub fn stack_caching(&self) -> ::std::os::raw::c_uint {
2264 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
2265 }
2266 #[inline]
2267 pub fn set_stack_caching(&mut self, val: ::std::os::raw::c_uint) {
2268 unsafe {
2269 let val: u32 = ::std::mem::transmute(val);
2270 self._bitfield_1.set(6usize, 1u8, val as u64)
2271 }
2272 }
2273 #[inline]
2274 pub unsafe fn stack_caching_raw(this: *const Self) -> ::std::os::raw::c_uint {
2275 unsafe {
2276 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2277 ::std::ptr::addr_of!((*this)._bitfield_1),
2278 6usize,
2279 1u8,
2280 ) as u32)
2281 }
2282 }
2283 #[inline]
2284 pub unsafe fn set_stack_caching_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2285 unsafe {
2286 let val: u32 = ::std::mem::transmute(val);
2287 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2288 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2289 6usize,
2290 1u8,
2291 val as u64,
2292 )
2293 }
2294 }
2295 #[inline]
2296 pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
2297 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
2298 }
2299 #[inline]
2300 pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
2301 unsafe {
2302 let val: u32 = ::std::mem::transmute(val);
2303 self._bitfield_1.set(7usize, 1u8, val as u64)
2304 }
2305 }
2306 #[inline]
2307 pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
2308 unsafe {
2309 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2310 ::std::ptr::addr_of!((*this)._bitfield_1),
2311 7usize,
2312 1u8,
2313 ) as u32)
2314 }
2315 }
2316 #[inline]
2317 pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2318 unsafe {
2319 let val: u32 = ::std::mem::transmute(val);
2320 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2321 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2322 7usize,
2323 1u8,
2324 val as u64,
2325 )
2326 }
2327 }
2328 #[inline]
2329 pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
2330 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
2331 }
2332 #[inline]
2333 pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
2334 unsafe {
2335 let val: u32 = ::std::mem::transmute(val);
2336 self._bitfield_1.set(8usize, 1u8, val as u64)
2337 }
2338 }
2339 #[inline]
2340 pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
2341 unsafe {
2342 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2343 ::std::ptr::addr_of!((*this)._bitfield_1),
2344 8usize,
2345 1u8,
2346 ) as u32)
2347 }
2348 }
2349 #[inline]
2350 pub unsafe fn set_debug_frozen_string_literal_raw(
2351 this: *mut Self,
2352 val: ::std::os::raw::c_uint,
2353 ) {
2354 unsafe {
2355 let val: u32 = ::std::mem::transmute(val);
2356 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2357 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2358 8usize,
2359 1u8,
2360 val as u64,
2361 )
2362 }
2363 }
2364 #[inline]
2365 pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
2366 unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
2367 }
2368 #[inline]
2369 pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
2370 unsafe {
2371 let val: u32 = ::std::mem::transmute(val);
2372 self._bitfield_1.set(9usize, 1u8, val as u64)
2373 }
2374 }
2375 #[inline]
2376 pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
2377 unsafe {
2378 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2379 ::std::ptr::addr_of!((*this)._bitfield_1),
2380 9usize,
2381 1u8,
2382 ) as u32)
2383 }
2384 }
2385 #[inline]
2386 pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2387 unsafe {
2388 let val: u32 = ::std::mem::transmute(val);
2389 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2390 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2391 9usize,
2392 1u8,
2393 val as u64,
2394 )
2395 }
2396 }
2397 #[inline]
2398 pub fn new_bitfield_1(
2399 inline_const_cache: ::std::os::raw::c_uint,
2400 peephole_optimization: ::std::os::raw::c_uint,
2401 tailcall_optimization: ::std::os::raw::c_uint,
2402 specialized_instruction: ::std::os::raw::c_uint,
2403 operands_unification: ::std::os::raw::c_uint,
2404 instructions_unification: ::std::os::raw::c_uint,
2405 stack_caching: ::std::os::raw::c_uint,
2406 frozen_string_literal: ::std::os::raw::c_uint,
2407 debug_frozen_string_literal: ::std::os::raw::c_uint,
2408 coverage_enabled: ::std::os::raw::c_uint,
2409 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2410 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2411 __bindgen_bitfield_unit.set(0usize, 1u8, {
2412 let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
2413 inline_const_cache as u64
2414 });
2415 __bindgen_bitfield_unit.set(1usize, 1u8, {
2416 let peephole_optimization: u32 =
2417 unsafe { ::std::mem::transmute(peephole_optimization) };
2418 peephole_optimization as u64
2419 });
2420 __bindgen_bitfield_unit.set(2usize, 1u8, {
2421 let tailcall_optimization: u32 =
2422 unsafe { ::std::mem::transmute(tailcall_optimization) };
2423 tailcall_optimization as u64
2424 });
2425 __bindgen_bitfield_unit.set(3usize, 1u8, {
2426 let specialized_instruction: u32 =
2427 unsafe { ::std::mem::transmute(specialized_instruction) };
2428 specialized_instruction as u64
2429 });
2430 __bindgen_bitfield_unit.set(4usize, 1u8, {
2431 let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
2432 operands_unification as u64
2433 });
2434 __bindgen_bitfield_unit.set(5usize, 1u8, {
2435 let instructions_unification: u32 =
2436 unsafe { ::std::mem::transmute(instructions_unification) };
2437 instructions_unification as u64
2438 });
2439 __bindgen_bitfield_unit.set(6usize, 1u8, {
2440 let stack_caching: u32 = unsafe { ::std::mem::transmute(stack_caching) };
2441 stack_caching as u64
2442 });
2443 __bindgen_bitfield_unit.set(7usize, 1u8, {
2444 let frozen_string_literal: u32 =
2445 unsafe { ::std::mem::transmute(frozen_string_literal) };
2446 frozen_string_literal as u64
2447 });
2448 __bindgen_bitfield_unit.set(8usize, 1u8, {
2449 let debug_frozen_string_literal: u32 =
2450 unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
2451 debug_frozen_string_literal as u64
2452 });
2453 __bindgen_bitfield_unit.set(9usize, 1u8, {
2454 let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
2455 coverage_enabled as u64
2456 });
2457 __bindgen_bitfield_unit
2458 }
2459}
2460#[repr(C)]
2461#[derive(Debug, Copy, Clone)]
2462pub struct iseq_insn_info_entry {
2463 pub position: ::std::os::raw::c_uint,
2464 pub line_no: ::std::os::raw::c_int,
2465 pub events: rb_event_flag_t,
2466}
2467#[repr(C)]
2468#[derive(Debug, Copy, Clone)]
2469pub struct iseq_catch_table_entry {
2470 pub type_: iseq_catch_table_entry_catch_type,
2471 pub iseq: *const rb_iseq_t,
2472 pub start: ::std::os::raw::c_uint,
2473 pub end: ::std::os::raw::c_uint,
2474 pub cont: ::std::os::raw::c_uint,
2475 pub sp: ::std::os::raw::c_uint,
2476}
2477pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
2478 3;
2479pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
2480 5;
2481pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
2482pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
2483pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
2484pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
2485pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
2486#[repr(C, packed)]
2487#[derive(Copy, Clone)]
2488pub struct iseq_catch_table {
2489 pub size: ::std::os::raw::c_uint,
2490 pub entries: [iseq_catch_table_entry; 1usize],
2491}
2492#[repr(C)]
2493#[derive(Debug, Copy, Clone)]
2494pub struct iseq_compile_data_storage {
2495 pub next: *mut iseq_compile_data_storage,
2496 pub pos: ::std::os::raw::c_uint,
2497 pub size: ::std::os::raw::c_uint,
2498 pub buff: [::std::os::raw::c_char; 1usize],
2499}
2500#[repr(C)]
2501#[derive(Debug, Copy, Clone)]
2502pub struct rb_id_table {
2503 pub _address: u8,
2504}
2505#[repr(C)]
2506#[derive(Debug, Copy, Clone)]
2507pub struct rb_event_hook_struct {
2508 pub _address: u8,
2509}
2510#[repr(C)]
2511#[derive(Debug, Copy, Clone)]
2512pub struct rb_postponed_job_struct {
2513 pub _address: u8,
2514}
2515#[repr(C)]
2516#[derive(Debug, Copy, Clone)]
2517pub struct iseq_label_data {
2518 pub _address: u8,
2519}
2520#[repr(C)]
2521#[derive(Debug, Copy, Clone)]
2522pub struct iseq_compile_data_ensure_node_stack {
2523 pub _address: u8,
2524}