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