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