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