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