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