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}
696#[repr(C)]
697#[derive(Debug, Copy, Clone)]
698pub struct rb_fiber_struct {
699 _unused: [u8; 0],
700}
701pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
702pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
703pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
704pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
705pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
706pub type rb_method_visibility_t = ::std::os::raw::c_uint;
707#[repr(C)]
708#[repr(align(4))]
709#[derive(Debug, Copy, Clone)]
710pub struct rb_scope_visi_struct {
711 pub _bitfield_align_1: [u8; 0],
712 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
713 pub __bindgen_padding_0: [u8; 3usize],
714}
715impl rb_scope_visi_struct {
716 #[inline]
717 pub fn method_visi(&self) -> rb_method_visibility_t {
718 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) }
719 }
720 #[inline]
721 pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
722 unsafe {
723 let val: u32 = ::std::mem::transmute(val);
724 self._bitfield_1.set(0usize, 3u8, val as u64)
725 }
726 }
727 #[inline]
728 pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
729 unsafe {
730 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
731 ::std::ptr::addr_of!((*this)._bitfield_1),
732 0usize,
733 3u8,
734 ) as u32)
735 }
736 }
737 #[inline]
738 pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
739 unsafe {
740 let val: u32 = ::std::mem::transmute(val);
741 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
742 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
743 0usize,
744 3u8,
745 val as u64,
746 )
747 }
748 }
749 #[inline]
750 pub fn module_func(&self) -> ::std::os::raw::c_uint {
751 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
752 }
753 #[inline]
754 pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
755 unsafe {
756 let val: u32 = ::std::mem::transmute(val);
757 self._bitfield_1.set(3usize, 1u8, val as u64)
758 }
759 }
760 #[inline]
761 pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
762 unsafe {
763 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
764 ::std::ptr::addr_of!((*this)._bitfield_1),
765 3usize,
766 1u8,
767 ) as u32)
768 }
769 }
770 #[inline]
771 pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
772 unsafe {
773 let val: u32 = ::std::mem::transmute(val);
774 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
775 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
776 3usize,
777 1u8,
778 val as u64,
779 )
780 }
781 }
782 #[inline]
783 pub fn new_bitfield_1(
784 method_visi: rb_method_visibility_t,
785 module_func: ::std::os::raw::c_uint,
786 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
787 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
788 __bindgen_bitfield_unit.set(0usize, 3u8, {
789 let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
790 method_visi as u64
791 });
792 __bindgen_bitfield_unit.set(3usize, 1u8, {
793 let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
794 module_func as u64
795 });
796 __bindgen_bitfield_unit
797 }
798}
799pub type rb_scope_visibility_t = rb_scope_visi_struct;
800#[repr(C)]
801#[derive(Debug, Copy, Clone)]
802pub struct rb_cref_struct {
803 pub flags: VALUE,
804 pub refinements: VALUE,
805 pub klass: VALUE,
806 pub next: *mut rb_cref_struct,
807 pub scope_visi: rb_scope_visibility_t,
808}
809pub type rb_cref_t = rb_cref_struct;
810#[repr(C)]
811#[derive(Debug, Copy, Clone)]
812pub struct rb_method_entry_struct {
813 pub flags: VALUE,
814 pub defined_class: VALUE,
815 pub def: *mut rb_method_definition_struct,
816 pub called_id: ID,
817 pub owner: VALUE,
818}
819#[repr(C)]
820#[derive(Debug, Copy, Clone)]
821pub struct rb_callable_method_entry_struct {
822 pub flags: VALUE,
823 pub defined_class: VALUE,
824 pub def: *mut rb_method_definition_struct,
825 pub called_id: ID,
826 pub owner: VALUE,
827}
828pub type rb_callable_method_entry_t = rb_callable_method_entry_struct;
829pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
830pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
831pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
832pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
833pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
834pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
835pub const rb_method_type_t_VM_METHOD_TYPE_ALIAS: rb_method_type_t = 6;
836pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 7;
837pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 8;
838pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 9;
839pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 10;
840pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 11;
841pub type rb_method_type_t = ::std::os::raw::c_uint;
842pub type rb_iseq_t = rb_iseq_struct;
843#[repr(C)]
844#[derive(Debug, Copy, Clone)]
845pub struct rb_method_iseq_struct {
846 pub iseqptr: *const rb_iseq_t,
847 pub cref: *mut rb_cref_t,
848}
849pub type rb_method_iseq_t = rb_method_iseq_struct;
850#[repr(C)]
851#[derive(Debug, Copy, Clone)]
852pub struct rb_method_cfunc_struct {
853 pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
854 pub invoker: ::std::option::Option<
855 unsafe extern "C" fn(
856 func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
857 recv: VALUE,
858 argc: ::std::os::raw::c_int,
859 argv: *const VALUE,
860 ) -> VALUE,
861 >,
862 pub argc: ::std::os::raw::c_int,
863}
864pub type rb_method_cfunc_t = rb_method_cfunc_struct;
865#[repr(C)]
866#[derive(Debug, Copy, Clone)]
867pub struct rb_method_attr_struct {
868 pub id: ID,
869 pub location: VALUE,
870}
871pub type rb_method_attr_t = rb_method_attr_struct;
872#[repr(C)]
873#[derive(Debug, Copy, Clone)]
874pub struct rb_method_alias_struct {
875 pub original_me: *const rb_method_entry_struct,
876}
877pub type rb_method_alias_t = rb_method_alias_struct;
878#[repr(C)]
879#[derive(Debug, Copy, Clone)]
880pub struct rb_method_refined_struct {
881 pub orig_me: *const rb_method_entry_struct,
882 pub owner: VALUE,
883}
884pub type rb_method_refined_t = rb_method_refined_struct;
885#[repr(C)]
886#[derive(Debug, Copy, Clone)]
887pub struct rb_method_bmethod_struct {
888 pub proc_: VALUE,
889 pub hooks: *mut rb_hook_list_struct,
890}
891pub type rb_method_bmethod_t = rb_method_bmethod_struct;
892pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND: method_optimized_type = 0;
893pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL: method_optimized_type = 1;
894pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_BLOCK_CALL: method_optimized_type = 2;
895pub const method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX: method_optimized_type = 3;
896pub type method_optimized_type = ::std::os::raw::c_uint;
897#[repr(C, packed)]
898#[derive(Copy, Clone)]
899pub struct rb_method_definition_struct {
900 pub _bitfield_align_1: [u8; 0],
901 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
902 pub body: rb_method_definition_struct__bindgen_ty_1,
903 pub original_id: ID,
904}
905#[repr(C)]
906#[derive(Copy, Clone)]
907pub union rb_method_definition_struct__bindgen_ty_1 {
908 pub iseq: rb_method_iseq_t,
909 pub cfunc: rb_method_cfunc_t,
910 pub attr: rb_method_attr_t,
911 pub alias: rb_method_alias_t,
912 pub refined: rb_method_refined_t,
913 pub bmethod: rb_method_bmethod_t,
914 pub optimize_type: method_optimized_type,
915}
916impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
917 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
918 write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
919 }
920}
921impl rb_method_definition_struct {
922 #[inline]
923 pub fn type_(&self) -> rb_method_type_t {
924 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
925 }
926 #[inline]
927 pub fn set_type(&mut self, val: rb_method_type_t) {
928 unsafe {
929 let val: u32 = ::std::mem::transmute(val);
930 self._bitfield_1.set(0usize, 4u8, val as u64)
931 }
932 }
933 #[inline]
934 pub unsafe fn type__raw(this: *const Self) -> rb_method_type_t {
935 unsafe {
936 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
937 ::std::ptr::addr_of!((*this)._bitfield_1),
938 0usize,
939 4u8,
940 ) as u32)
941 }
942 }
943 #[inline]
944 pub unsafe fn set_type_raw(this: *mut Self, val: rb_method_type_t) {
945 unsafe {
946 let val: u32 = ::std::mem::transmute(val);
947 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
948 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
949 0usize,
950 4u8,
951 val as u64,
952 )
953 }
954 }
955 #[inline]
956 pub fn alias_count(&self) -> ::std::os::raw::c_int {
957 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) }
958 }
959 #[inline]
960 pub fn set_alias_count(&mut self, val: ::std::os::raw::c_int) {
961 unsafe {
962 let val: u32 = ::std::mem::transmute(val);
963 self._bitfield_1.set(4usize, 28u8, val as u64)
964 }
965 }
966 #[inline]
967 pub unsafe fn alias_count_raw(this: *const Self) -> ::std::os::raw::c_int {
968 unsafe {
969 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
970 ::std::ptr::addr_of!((*this)._bitfield_1),
971 4usize,
972 28u8,
973 ) as u32)
974 }
975 }
976 #[inline]
977 pub unsafe fn set_alias_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
978 unsafe {
979 let val: u32 = ::std::mem::transmute(val);
980 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
981 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
982 4usize,
983 28u8,
984 val as u64,
985 )
986 }
987 }
988 #[inline]
989 pub fn complemented_count(&self) -> ::std::os::raw::c_int {
990 unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 28u8) as u32) }
991 }
992 #[inline]
993 pub fn set_complemented_count(&mut self, val: ::std::os::raw::c_int) {
994 unsafe {
995 let val: u32 = ::std::mem::transmute(val);
996 self._bitfield_1.set(32usize, 28u8, val as u64)
997 }
998 }
999 #[inline]
1000 pub unsafe fn complemented_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1001 unsafe {
1002 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1003 ::std::ptr::addr_of!((*this)._bitfield_1),
1004 32usize,
1005 28u8,
1006 ) as u32)
1007 }
1008 }
1009 #[inline]
1010 pub unsafe fn set_complemented_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1011 unsafe {
1012 let val: u32 = ::std::mem::transmute(val);
1013 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1014 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1015 32usize,
1016 28u8,
1017 val as u64,
1018 )
1019 }
1020 }
1021 #[inline]
1022 pub fn new_bitfield_1(
1023 type_: rb_method_type_t,
1024 alias_count: ::std::os::raw::c_int,
1025 complemented_count: ::std::os::raw::c_int,
1026 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
1027 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
1028 __bindgen_bitfield_unit.set(0usize, 4u8, {
1029 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1030 type_ as u64
1031 });
1032 __bindgen_bitfield_unit.set(4usize, 28u8, {
1033 let alias_count: u32 = unsafe { ::std::mem::transmute(alias_count) };
1034 alias_count as u64
1035 });
1036 __bindgen_bitfield_unit.set(32usize, 28u8, {
1037 let complemented_count: u32 = unsafe { ::std::mem::transmute(complemented_count) };
1038 complemented_count as u64
1039 });
1040 __bindgen_bitfield_unit
1041 }
1042}
1043pub type rb_atomic_t = ::std::os::raw::c_uint;
1044#[repr(C)]
1045#[derive(Debug, Copy, Clone)]
1046pub struct list_node {
1047 pub next: *mut list_node,
1048 pub prev: *mut list_node,
1049}
1050#[repr(C)]
1051#[derive(Debug, Copy, Clone)]
1052pub struct list_head {
1053 pub n: list_node,
1054}
1055pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
1056pub type rb_nativethread_id_t = pthread_t;
1057pub type rb_nativethread_lock_t = pthread_mutex_t;
1058pub type rb_nativethread_cond_t = pthread_cond_t;
1059#[repr(C)]
1060#[derive(Copy, Clone)]
1061pub struct native_thread_data_struct {
1062 pub node: native_thread_data_struct__bindgen_ty_1,
1063 pub cond: native_thread_data_struct__bindgen_ty_2,
1064}
1065#[repr(C)]
1066#[derive(Copy, Clone)]
1067pub union native_thread_data_struct__bindgen_ty_1 {
1068 pub ubf: list_node,
1069 pub gvl: list_node,
1070}
1071impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_1 {
1072 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1073 write!(f, "native_thread_data_struct__bindgen_ty_1 {{ union }}")
1074 }
1075}
1076#[repr(C)]
1077#[derive(Copy, Clone)]
1078pub union native_thread_data_struct__bindgen_ty_2 {
1079 pub intr: rb_nativethread_cond_t,
1080 pub gvlq: rb_nativethread_cond_t,
1081}
1082impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_2 {
1083 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1084 write!(f, "native_thread_data_struct__bindgen_ty_2 {{ union }}")
1085 }
1086}
1087impl ::std::fmt::Debug for native_thread_data_struct {
1088 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1089 write!(
1090 f,
1091 "native_thread_data_struct {{ node: {:?}, cond: {:?} }}",
1092 self.node, self.cond
1093 )
1094 }
1095}
1096pub type native_thread_data_t = native_thread_data_struct;
1097#[repr(C)]
1098#[derive(Copy, Clone)]
1099pub struct rb_global_vm_lock_struct {
1100 pub owner: *const rb_thread_struct,
1101 pub lock: rb_nativethread_lock_t,
1102 pub waitq: list_head,
1103 pub timer: *const rb_thread_struct,
1104 pub timer_err: ::std::os::raw::c_int,
1105 pub switch_cond: rb_nativethread_cond_t,
1106 pub switch_wait_cond: rb_nativethread_cond_t,
1107 pub need_yield: ::std::os::raw::c_int,
1108 pub wait_yield: ::std::os::raw::c_int,
1109}
1110impl ::std::fmt::Debug for rb_global_vm_lock_struct {
1111 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1112 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)
1113 }
1114}
1115pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
1116#[repr(C)]
1117#[derive(Debug, Copy, Clone)]
1118pub struct __jmp_buf_tag {
1119 pub __jmpbuf: __jmp_buf,
1120 pub __mask_was_saved: ::std::os::raw::c_int,
1121 pub __saved_mask: __sigset_t,
1122}
1123pub type jmp_buf = [__jmp_buf_tag; 1usize];
1124pub type rb_snum_t = ::std::os::raw::c_long;
1125pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1126pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1127pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1128pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1129pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1130pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1131pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1132pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1133pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1134pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1135pub type ruby_tag_type = ::std::os::raw::c_uint;
1136pub type rb_compile_option_t = rb_compile_option_struct;
1137#[repr(C)]
1138#[derive(Copy, Clone)]
1139pub struct iseq_inline_cache_entry {
1140 pub ic_serial: rb_serial_t,
1141 pub ic_cref: *const rb_cref_t,
1142 pub ic_value: iseq_inline_cache_entry__bindgen_ty_1,
1143}
1144#[repr(C)]
1145#[derive(Copy, Clone)]
1146pub union iseq_inline_cache_entry__bindgen_ty_1 {
1147 pub index: usize,
1148 pub value: VALUE,
1149}
1150impl ::std::fmt::Debug for iseq_inline_cache_entry__bindgen_ty_1 {
1151 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1152 write!(f, "iseq_inline_cache_entry__bindgen_ty_1 {{ union }}")
1153 }
1154}
1155impl ::std::fmt::Debug for iseq_inline_cache_entry {
1156 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1157 write!(
1158 f,
1159 "iseq_inline_cache_entry {{ ic_serial: {:?}, ic_cref: {:?}, ic_value: {:?} }}",
1160 self.ic_serial, self.ic_cref, self.ic_value
1161 )
1162 }
1163}
1164#[repr(C)]
1165#[derive(Copy, Clone)]
1166pub union iseq_inline_storage_entry {
1167 pub once: iseq_inline_storage_entry__bindgen_ty_1,
1168 pub cache: iseq_inline_cache_entry,
1169}
1170#[repr(C)]
1171#[derive(Debug, Copy, Clone)]
1172pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1173 pub running_thread: *mut rb_thread_struct,
1174 pub value: VALUE,
1175}
1176impl ::std::fmt::Debug for iseq_inline_storage_entry {
1177 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1178 write!(f, "iseq_inline_storage_entry {{ union }}")
1179 }
1180}
1181pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
1182pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
1183pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
1184pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
1185pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
1186pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
1187pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
1188pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
1189pub type method_missing_reason = ::std::os::raw::c_uint;
1190#[repr(C)]
1191#[derive(Debug, Copy, Clone)]
1192pub struct rb_call_info {
1193 pub mid: ID,
1194 pub flag: ::std::os::raw::c_uint,
1195 pub orig_argc: ::std::os::raw::c_int,
1196}
1197#[repr(C)]
1198#[derive(Debug, Copy, Clone)]
1199pub struct rb_calling_info {
1200 pub block_handler: VALUE,
1201 pub recv: VALUE,
1202 pub argc: ::std::os::raw::c_int,
1203}
1204pub type vm_call_handler = ::std::option::Option<
1205 unsafe extern "C" fn(
1206 ec: *mut rb_execution_context_struct,
1207 cfp: *mut rb_control_frame_struct,
1208 calling: *mut rb_calling_info,
1209 ci: *const rb_call_info,
1210 cc: *mut rb_call_cache,
1211 ) -> VALUE,
1212>;
1213#[repr(C)]
1214#[derive(Copy, Clone)]
1215pub struct rb_call_cache {
1216 pub method_state: rb_serial_t,
1217 pub class_serial: rb_serial_t,
1218 pub me: *const rb_callable_method_entry_t,
1219 pub call: vm_call_handler,
1220 pub aux: rb_call_cache__bindgen_ty_1,
1221}
1222#[repr(C)]
1223#[derive(Copy, Clone)]
1224pub union rb_call_cache__bindgen_ty_1 {
1225 pub index: ::std::os::raw::c_uint,
1226 pub method_missing_reason: method_missing_reason,
1227 pub inc_sp: ::std::os::raw::c_int,
1228}
1229impl ::std::fmt::Debug for rb_call_cache__bindgen_ty_1 {
1230 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1231 write!(f, "rb_call_cache__bindgen_ty_1 {{ union }}")
1232 }
1233}
1234impl ::std::fmt::Debug for rb_call_cache {
1235 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1236 write ! (f , "rb_call_cache {{ method_state: {:?}, class_serial: {:?}, me: {:?}, call: {:?}, aux: {:?} }}" , self . method_state , self . class_serial , self . me , self . call , self . aux)
1237 }
1238}
1239#[repr(C)]
1240#[derive(Debug, Copy, Clone)]
1241pub struct rb_iseq_location_struct {
1242 pub pathobj: VALUE,
1243 pub base_label: VALUE,
1244 pub label: VALUE,
1245 pub first_lineno: VALUE,
1246 pub node_id: ::std::os::raw::c_int,
1247 pub code_location: rb_code_location_t,
1248}
1249pub type rb_iseq_location_t = rb_iseq_location_struct;
1250#[repr(C)]
1251#[derive(Debug, Copy, Clone)]
1252pub struct rb_mjit_unit {
1253 _unused: [u8; 0],
1254}
1255#[repr(C)]
1256#[derive(Debug, Copy, Clone)]
1257pub struct rb_iseq_constant_body {
1258 pub type_: rb_iseq_constant_body_iseq_type,
1259 pub iseq_size: ::std::os::raw::c_uint,
1260 pub iseq_encoded: *const VALUE,
1261 pub param: rb_iseq_constant_body__bindgen_ty_1,
1262 pub location: rb_iseq_location_t,
1263 pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1264 pub local_table: *const ID,
1265 pub catch_table: *const iseq_catch_table,
1266 pub parent_iseq: *const rb_iseq_struct,
1267 pub local_iseq: *mut rb_iseq_struct,
1268 pub is_entries: *mut iseq_inline_storage_entry,
1269 pub ci_entries: *mut rb_call_info,
1270 pub cc_entries: *mut rb_call_cache,
1271 pub variable: rb_iseq_constant_body__bindgen_ty_2,
1272 pub local_table_size: ::std::os::raw::c_uint,
1273 pub is_size: ::std::os::raw::c_uint,
1274 pub ci_size: ::std::os::raw::c_uint,
1275 pub ci_kw_size: ::std::os::raw::c_uint,
1276 pub stack_max: ::std::os::raw::c_uint,
1277 pub jit_func: ::std::option::Option<
1278 unsafe extern "C" fn(
1279 arg1: *mut rb_execution_context_struct,
1280 arg2: *mut rb_control_frame_struct,
1281 ) -> VALUE,
1282 >,
1283 pub total_calls: ::std::os::raw::c_ulong,
1284 pub jit_unit: *mut rb_mjit_unit,
1285 pub catch_except_p: ::std::os::raw::c_char,
1286}
1287pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_TOP: rb_iseq_constant_body_iseq_type = 0;
1288pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_constant_body_iseq_type = 1;
1289pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_constant_body_iseq_type = 2;
1290pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_constant_body_iseq_type = 3;
1291pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_constant_body_iseq_type = 4;
1292pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_constant_body_iseq_type = 5;
1293pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_constant_body_iseq_type = 6;
1294pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_constant_body_iseq_type = 7;
1295pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_constant_body_iseq_type = 8;
1296pub type rb_iseq_constant_body_iseq_type = ::std::os::raw::c_uint;
1297#[repr(C)]
1298#[derive(Debug, Copy, Clone)]
1299pub struct rb_iseq_constant_body__bindgen_ty_1 {
1300 pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1301 pub size: ::std::os::raw::c_uint,
1302 pub lead_num: ::std::os::raw::c_int,
1303 pub opt_num: ::std::os::raw::c_int,
1304 pub rest_start: ::std::os::raw::c_int,
1305 pub post_start: ::std::os::raw::c_int,
1306 pub post_num: ::std::os::raw::c_int,
1307 pub block_start: ::std::os::raw::c_int,
1308 pub opt_table: *const VALUE,
1309 pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1310}
1311#[repr(C)]
1312#[repr(align(4))]
1313#[derive(Debug, Copy, Clone)]
1314pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1315 pub _bitfield_align_1: [u8; 0],
1316 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1317 pub __bindgen_padding_0: [u8; 3usize],
1318}
1319impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1320 #[inline]
1321 pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1322 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1323 }
1324 #[inline]
1325 pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1326 unsafe {
1327 let val: u32 = ::std::mem::transmute(val);
1328 self._bitfield_1.set(0usize, 1u8, val as u64)
1329 }
1330 }
1331 #[inline]
1332 pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1333 unsafe {
1334 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1335 ::std::ptr::addr_of!((*this)._bitfield_1),
1336 0usize,
1337 1u8,
1338 ) as u32)
1339 }
1340 }
1341 #[inline]
1342 pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1343 unsafe {
1344 let val: u32 = ::std::mem::transmute(val);
1345 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1346 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1347 0usize,
1348 1u8,
1349 val as u64,
1350 )
1351 }
1352 }
1353 #[inline]
1354 pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1355 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1356 }
1357 #[inline]
1358 pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1359 unsafe {
1360 let val: u32 = ::std::mem::transmute(val);
1361 self._bitfield_1.set(1usize, 1u8, val as u64)
1362 }
1363 }
1364 #[inline]
1365 pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1366 unsafe {
1367 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1368 ::std::ptr::addr_of!((*this)._bitfield_1),
1369 1usize,
1370 1u8,
1371 ) as u32)
1372 }
1373 }
1374 #[inline]
1375 pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1376 unsafe {
1377 let val: u32 = ::std::mem::transmute(val);
1378 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1379 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1380 1usize,
1381 1u8,
1382 val as u64,
1383 )
1384 }
1385 }
1386 #[inline]
1387 pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1388 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1389 }
1390 #[inline]
1391 pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1392 unsafe {
1393 let val: u32 = ::std::mem::transmute(val);
1394 self._bitfield_1.set(2usize, 1u8, val as u64)
1395 }
1396 }
1397 #[inline]
1398 pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1399 unsafe {
1400 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1401 ::std::ptr::addr_of!((*this)._bitfield_1),
1402 2usize,
1403 1u8,
1404 ) as u32)
1405 }
1406 }
1407 #[inline]
1408 pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1409 unsafe {
1410 let val: u32 = ::std::mem::transmute(val);
1411 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1412 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1413 2usize,
1414 1u8,
1415 val as u64,
1416 )
1417 }
1418 }
1419 #[inline]
1420 pub fn has_post(&self) -> ::std::os::raw::c_uint {
1421 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1422 }
1423 #[inline]
1424 pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1425 unsafe {
1426 let val: u32 = ::std::mem::transmute(val);
1427 self._bitfield_1.set(3usize, 1u8, val as u64)
1428 }
1429 }
1430 #[inline]
1431 pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1432 unsafe {
1433 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1434 ::std::ptr::addr_of!((*this)._bitfield_1),
1435 3usize,
1436 1u8,
1437 ) as u32)
1438 }
1439 }
1440 #[inline]
1441 pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1442 unsafe {
1443 let val: u32 = ::std::mem::transmute(val);
1444 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1445 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1446 3usize,
1447 1u8,
1448 val as u64,
1449 )
1450 }
1451 }
1452 #[inline]
1453 pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1454 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1455 }
1456 #[inline]
1457 pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1458 unsafe {
1459 let val: u32 = ::std::mem::transmute(val);
1460 self._bitfield_1.set(4usize, 1u8, val as u64)
1461 }
1462 }
1463 #[inline]
1464 pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1465 unsafe {
1466 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1467 ::std::ptr::addr_of!((*this)._bitfield_1),
1468 4usize,
1469 1u8,
1470 ) as u32)
1471 }
1472 }
1473 #[inline]
1474 pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1475 unsafe {
1476 let val: u32 = ::std::mem::transmute(val);
1477 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1478 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1479 4usize,
1480 1u8,
1481 val as u64,
1482 )
1483 }
1484 }
1485 #[inline]
1486 pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1487 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1488 }
1489 #[inline]
1490 pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1491 unsafe {
1492 let val: u32 = ::std::mem::transmute(val);
1493 self._bitfield_1.set(5usize, 1u8, val as u64)
1494 }
1495 }
1496 #[inline]
1497 pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1498 unsafe {
1499 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1500 ::std::ptr::addr_of!((*this)._bitfield_1),
1501 5usize,
1502 1u8,
1503 ) as u32)
1504 }
1505 }
1506 #[inline]
1507 pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1508 unsafe {
1509 let val: u32 = ::std::mem::transmute(val);
1510 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1511 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1512 5usize,
1513 1u8,
1514 val as u64,
1515 )
1516 }
1517 }
1518 #[inline]
1519 pub fn has_block(&self) -> ::std::os::raw::c_uint {
1520 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1521 }
1522 #[inline]
1523 pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1524 unsafe {
1525 let val: u32 = ::std::mem::transmute(val);
1526 self._bitfield_1.set(6usize, 1u8, val as u64)
1527 }
1528 }
1529 #[inline]
1530 pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1531 unsafe {
1532 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1533 ::std::ptr::addr_of!((*this)._bitfield_1),
1534 6usize,
1535 1u8,
1536 ) as u32)
1537 }
1538 }
1539 #[inline]
1540 pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1541 unsafe {
1542 let val: u32 = ::std::mem::transmute(val);
1543 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1544 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1545 6usize,
1546 1u8,
1547 val as u64,
1548 )
1549 }
1550 }
1551 #[inline]
1552 pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1553 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1554 }
1555 #[inline]
1556 pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1557 unsafe {
1558 let val: u32 = ::std::mem::transmute(val);
1559 self._bitfield_1.set(7usize, 1u8, val as u64)
1560 }
1561 }
1562 #[inline]
1563 pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1564 unsafe {
1565 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1566 ::std::ptr::addr_of!((*this)._bitfield_1),
1567 7usize,
1568 1u8,
1569 ) as u32)
1570 }
1571 }
1572 #[inline]
1573 pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1574 unsafe {
1575 let val: u32 = ::std::mem::transmute(val);
1576 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1577 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1578 7usize,
1579 1u8,
1580 val as u64,
1581 )
1582 }
1583 }
1584 #[inline]
1585 pub fn new_bitfield_1(
1586 has_lead: ::std::os::raw::c_uint,
1587 has_opt: ::std::os::raw::c_uint,
1588 has_rest: ::std::os::raw::c_uint,
1589 has_post: ::std::os::raw::c_uint,
1590 has_kw: ::std::os::raw::c_uint,
1591 has_kwrest: ::std::os::raw::c_uint,
1592 has_block: ::std::os::raw::c_uint,
1593 ambiguous_param0: ::std::os::raw::c_uint,
1594 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1595 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1596 __bindgen_bitfield_unit.set(0usize, 1u8, {
1597 let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1598 has_lead as u64
1599 });
1600 __bindgen_bitfield_unit.set(1usize, 1u8, {
1601 let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1602 has_opt as u64
1603 });
1604 __bindgen_bitfield_unit.set(2usize, 1u8, {
1605 let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1606 has_rest as u64
1607 });
1608 __bindgen_bitfield_unit.set(3usize, 1u8, {
1609 let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1610 has_post as u64
1611 });
1612 __bindgen_bitfield_unit.set(4usize, 1u8, {
1613 let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1614 has_kw as u64
1615 });
1616 __bindgen_bitfield_unit.set(5usize, 1u8, {
1617 let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1618 has_kwrest as u64
1619 });
1620 __bindgen_bitfield_unit.set(6usize, 1u8, {
1621 let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1622 has_block as u64
1623 });
1624 __bindgen_bitfield_unit.set(7usize, 1u8, {
1625 let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
1626 ambiguous_param0 as u64
1627 });
1628 __bindgen_bitfield_unit
1629 }
1630}
1631#[repr(C)]
1632#[derive(Debug, Copy, Clone)]
1633pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
1634 pub num: ::std::os::raw::c_int,
1635 pub required_num: ::std::os::raw::c_int,
1636 pub bits_start: ::std::os::raw::c_int,
1637 pub rest_start: ::std::os::raw::c_int,
1638 pub table: *const ID,
1639 pub default_values: *const VALUE,
1640}
1641#[repr(C)]
1642#[derive(Debug, Copy, Clone)]
1643pub struct rb_iseq_constant_body_iseq_insn_info {
1644 pub body: *const iseq_insn_info_entry,
1645 pub positions: *mut ::std::os::raw::c_uint,
1646 pub size: ::std::os::raw::c_uint,
1647 pub succ_index_table: *mut succ_index_table,
1648}
1649#[repr(C)]
1650#[derive(Debug, Copy, Clone)]
1651pub struct rb_iseq_constant_body__bindgen_ty_2 {
1652 pub flip_count: rb_snum_t,
1653 pub coverage: VALUE,
1654 pub pc2branchindex: VALUE,
1655 pub original_iseq: *mut VALUE,
1656}
1657#[repr(C)]
1658#[derive(Copy, Clone)]
1659pub struct rb_iseq_struct {
1660 pub flags: VALUE,
1661 pub wrapper: VALUE,
1662 pub body: *mut rb_iseq_constant_body,
1663 pub aux: rb_iseq_struct__bindgen_ty_1,
1664}
1665#[repr(C)]
1666#[derive(Copy, Clone)]
1667pub union rb_iseq_struct__bindgen_ty_1 {
1668 pub compile_data: *mut iseq_compile_data,
1669 pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
1670 pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
1671}
1672#[repr(C)]
1673#[derive(Debug, Copy, Clone)]
1674pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
1675 pub obj: VALUE,
1676 pub index: ::std::os::raw::c_int,
1677}
1678#[repr(C)]
1679#[derive(Debug, Copy, Clone)]
1680pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
1681 pub local_hooks: *mut rb_hook_list_struct,
1682 pub global_trace_events: rb_event_flag_t,
1683}
1684impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
1685 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1686 write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
1687 }
1688}
1689impl ::std::fmt::Debug for rb_iseq_struct {
1690 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1691 write!(
1692 f,
1693 "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
1694 self.flags, self.wrapper, self.body, self.aux
1695 )
1696 }
1697}
1698pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
1699#[repr(C)]
1700#[derive(Debug, Copy, Clone)]
1701pub struct rb_at_exit_list {
1702 pub func: rb_vm_at_exit_func,
1703 pub next: *mut rb_at_exit_list,
1704}
1705#[repr(C)]
1706#[derive(Debug, Copy, Clone)]
1707pub struct rb_objspace {
1708 _unused: [u8; 0],
1709}
1710#[repr(C)]
1711#[derive(Debug, Copy, Clone)]
1712pub struct rb_hook_list_struct {
1713 pub hooks: *mut rb_event_hook_struct,
1714 pub events: rb_event_flag_t,
1715 pub need_clean: ::std::os::raw::c_uint,
1716 pub running: ::std::os::raw::c_uint,
1717}
1718pub type rb_hook_list_t = rb_hook_list_struct;
1719#[repr(C)]
1720#[derive(Copy, Clone)]
1721pub struct rb_vm_struct {
1722 pub self_: VALUE,
1723 pub gvl: rb_global_vm_lock_t,
1724 pub main_thread: *mut rb_thread_struct,
1725 pub running_thread: *const rb_thread_struct,
1726 pub main_altstack: *mut ::std::os::raw::c_void,
1727 pub fork_gen: rb_serial_t,
1728 pub waitpid_lock: rb_nativethread_lock_t,
1729 pub waiting_pids: list_head,
1730 pub waiting_grps: list_head,
1731 pub waiting_fds: list_head,
1732 pub living_threads: list_head,
1733 pub thgroup_default: VALUE,
1734 pub living_thread_num: ::std::os::raw::c_int,
1735 pub _bitfield_align_1: [u8; 0],
1736 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1737 pub sleeper: ::std::os::raw::c_int,
1738 pub mark_object_ary: VALUE,
1739 pub special_exceptions: [VALUE; 5usize],
1740 pub top_self: VALUE,
1741 pub load_path: VALUE,
1742 pub load_path_snapshot: VALUE,
1743 pub load_path_check_cache: VALUE,
1744 pub expanded_load_path: VALUE,
1745 pub loaded_features: VALUE,
1746 pub loaded_features_snapshot: VALUE,
1747 pub loaded_features_index: *mut st_table,
1748 pub loading_table: *mut st_table,
1749 pub trap_list: rb_vm_struct__bindgen_ty_1,
1750 pub global_hooks: rb_hook_list_t,
1751 pub ensure_rollback_table: *mut st_table,
1752 pub postponed_job_buffer: *mut rb_postponed_job_struct,
1753 pub postponed_job_index: ::std::os::raw::c_int,
1754 pub src_encoding_index: ::std::os::raw::c_int,
1755 pub workqueue: list_head,
1756 pub workqueue_lock: rb_nativethread_lock_t,
1757 pub verbose: VALUE,
1758 pub debug: VALUE,
1759 pub orig_progname: VALUE,
1760 pub progname: VALUE,
1761 pub coverages: VALUE,
1762 pub coverage_mode: ::std::os::raw::c_int,
1763 pub defined_module_hash: VALUE,
1764 pub objspace: *mut rb_objspace,
1765 pub at_exit: *mut rb_at_exit_list,
1766 pub defined_strings: *mut VALUE,
1767 pub frozen_strings: *mut st_table,
1768 pub default_params: rb_vm_struct__bindgen_ty_2,
1769 pub redefined_flag: [::std::os::raw::c_short; 28usize],
1770}
1771#[repr(C)]
1772#[derive(Debug, Copy, Clone)]
1773pub struct rb_vm_struct__bindgen_ty_1 {
1774 pub cmd: [VALUE; 65usize],
1775 pub safe: [::std::os::raw::c_uchar; 65usize],
1776}
1777#[repr(C)]
1778#[derive(Debug, Copy, Clone)]
1779pub struct rb_vm_struct__bindgen_ty_2 {
1780 pub thread_vm_stack_size: usize,
1781 pub thread_machine_stack_size: usize,
1782 pub fiber_vm_stack_size: usize,
1783 pub fiber_machine_stack_size: usize,
1784}
1785impl ::std::fmt::Debug for rb_vm_struct {
1786 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1787 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)
1788 }
1789}
1790impl rb_vm_struct {
1791 #[inline]
1792 pub fn running(&self) -> ::std::os::raw::c_uint {
1793 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1794 }
1795 #[inline]
1796 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
1797 unsafe {
1798 let val: u32 = ::std::mem::transmute(val);
1799 self._bitfield_1.set(0usize, 1u8, val as u64)
1800 }
1801 }
1802 #[inline]
1803 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
1804 unsafe {
1805 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1806 ::std::ptr::addr_of!((*this)._bitfield_1),
1807 0usize,
1808 1u8,
1809 ) as u32)
1810 }
1811 }
1812 #[inline]
1813 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1814 unsafe {
1815 let val: u32 = ::std::mem::transmute(val);
1816 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1817 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1818 0usize,
1819 1u8,
1820 val as u64,
1821 )
1822 }
1823 }
1824 #[inline]
1825 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
1826 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1827 }
1828 #[inline]
1829 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1830 unsafe {
1831 let val: u32 = ::std::mem::transmute(val);
1832 self._bitfield_1.set(1usize, 1u8, val as u64)
1833 }
1834 }
1835 #[inline]
1836 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1837 unsafe {
1838 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1839 ::std::ptr::addr_of!((*this)._bitfield_1),
1840 1usize,
1841 1u8,
1842 ) as u32)
1843 }
1844 }
1845 #[inline]
1846 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1847 unsafe {
1848 let val: u32 = ::std::mem::transmute(val);
1849 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1850 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1851 1usize,
1852 1u8,
1853 val as u64,
1854 )
1855 }
1856 }
1857 #[inline]
1858 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
1859 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1860 }
1861 #[inline]
1862 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
1863 unsafe {
1864 let val: u32 = ::std::mem::transmute(val);
1865 self._bitfield_1.set(2usize, 1u8, val as u64)
1866 }
1867 }
1868 #[inline]
1869 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
1870 unsafe {
1871 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1872 ::std::ptr::addr_of!((*this)._bitfield_1),
1873 2usize,
1874 1u8,
1875 ) as u32)
1876 }
1877 }
1878 #[inline]
1879 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1880 unsafe {
1881 let val: u32 = ::std::mem::transmute(val);
1882 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1883 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1884 2usize,
1885 1u8,
1886 val as u64,
1887 )
1888 }
1889 }
1890 #[inline]
1891 pub fn safe_level_(&self) -> ::std::os::raw::c_uint {
1892 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1893 }
1894 #[inline]
1895 pub fn set_safe_level_(&mut self, val: ::std::os::raw::c_uint) {
1896 unsafe {
1897 let val: u32 = ::std::mem::transmute(val);
1898 self._bitfield_1.set(3usize, 1u8, val as u64)
1899 }
1900 }
1901 #[inline]
1902 pub unsafe fn safe_level__raw(this: *const Self) -> ::std::os::raw::c_uint {
1903 unsafe {
1904 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1905 ::std::ptr::addr_of!((*this)._bitfield_1),
1906 3usize,
1907 1u8,
1908 ) as u32)
1909 }
1910 }
1911 #[inline]
1912 pub unsafe fn set_safe_level__raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1913 unsafe {
1914 let val: u32 = ::std::mem::transmute(val);
1915 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1916 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1917 3usize,
1918 1u8,
1919 val as u64,
1920 )
1921 }
1922 }
1923 #[inline]
1924 pub fn new_bitfield_1(
1925 running: ::std::os::raw::c_uint,
1926 thread_abort_on_exception: ::std::os::raw::c_uint,
1927 thread_report_on_exception: ::std::os::raw::c_uint,
1928 safe_level_: ::std::os::raw::c_uint,
1929 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1930 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1931 __bindgen_bitfield_unit.set(0usize, 1u8, {
1932 let running: u32 = unsafe { ::std::mem::transmute(running) };
1933 running as u64
1934 });
1935 __bindgen_bitfield_unit.set(1usize, 1u8, {
1936 let thread_abort_on_exception: u32 =
1937 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
1938 thread_abort_on_exception as u64
1939 });
1940 __bindgen_bitfield_unit.set(2usize, 1u8, {
1941 let thread_report_on_exception: u32 =
1942 unsafe { ::std::mem::transmute(thread_report_on_exception) };
1943 thread_report_on_exception as u64
1944 });
1945 __bindgen_bitfield_unit.set(3usize, 1u8, {
1946 let safe_level_: u32 = unsafe { ::std::mem::transmute(safe_level_) };
1947 safe_level_ as u64
1948 });
1949 __bindgen_bitfield_unit
1950 }
1951}
1952pub type rb_vm_t = rb_vm_struct;
1953#[repr(C)]
1954#[derive(Debug, Copy, Clone)]
1955pub struct rb_control_frame_struct {
1956 pub pc: *const VALUE,
1957 pub sp: *mut VALUE,
1958 pub iseq: *const rb_iseq_t,
1959 pub self_: VALUE,
1960 pub ep: *const VALUE,
1961 pub block_code: *const ::std::os::raw::c_void,
1962 pub bp: *const VALUE,
1963}
1964pub type rb_control_frame_t = rb_control_frame_struct;
1965pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
1966pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
1967pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
1968pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
1969pub type rb_thread_status = ::std::os::raw::c_uint;
1970pub type rb_jmpbuf_t = jmp_buf;
1971#[repr(C)]
1972#[derive(Debug, Copy, Clone)]
1973pub struct rb_vm_tag {
1974 pub tag: VALUE,
1975 pub retval: VALUE,
1976 pub buf: rb_jmpbuf_t,
1977 pub prev: *mut rb_vm_tag,
1978 pub state: ruby_tag_type,
1979}
1980#[repr(C)]
1981#[derive(Debug, Copy, Clone)]
1982pub struct rb_vm_protect_tag {
1983 pub prev: *mut rb_vm_protect_tag,
1984}
1985#[repr(C)]
1986#[derive(Debug, Copy, Clone)]
1987pub struct rb_unblock_callback {
1988 pub func: rb_unblock_function_t,
1989 pub arg: *mut ::std::os::raw::c_void,
1990}
1991#[repr(C)]
1992#[derive(Debug, Copy, Clone)]
1993pub struct rb_mutex_struct {
1994 _unused: [u8; 0],
1995}
1996#[repr(C)]
1997#[derive(Debug, Copy, Clone)]
1998pub struct rb_thread_list_struct {
1999 pub next: *mut rb_thread_list_struct,
2000 pub th: *mut rb_thread_struct,
2001}
2002pub type rb_thread_list_t = rb_thread_list_struct;
2003#[repr(C)]
2004#[derive(Debug, Copy, Clone)]
2005pub struct rb_ensure_entry {
2006 pub marker: VALUE,
2007 pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
2008 pub data2: VALUE,
2009}
2010#[repr(C)]
2011#[derive(Debug, Copy, Clone)]
2012pub struct rb_ensure_list {
2013 pub next: *mut rb_ensure_list,
2014 pub entry: rb_ensure_entry,
2015}
2016pub type rb_ensure_list_t = rb_ensure_list;
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}