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