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