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 ci_table: *mut st_table,
1972 pub negative_cme_table: *mut rb_id_table,
1973 pub overloaded_cme_table: *mut st_table,
1974 pub constant_cache: *mut rb_id_table,
1975 pub global_cc_cache_table: [*const rb_callcache; 1023usize],
1976 pub default_params: rb_vm_struct__bindgen_ty_3,
1977}
1978#[repr(C)]
1979#[derive(Copy, Clone)]
1980pub struct rb_vm_struct__bindgen_ty_1 {
1981 pub set: ccan_list_head,
1982 pub cnt: ::std::os::raw::c_uint,
1983 pub blocking_cnt: ::std::os::raw::c_uint,
1984 pub main_ractor: *mut rb_ractor_struct,
1985 pub main_thread: *mut rb_thread_struct,
1986 pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
1987 pub sched: rb_vm_struct__bindgen_ty_1__bindgen_ty_2,
1988}
1989#[repr(C)]
1990#[derive(Copy, Clone)]
1991pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
1992 pub lock: rb_nativethread_lock_t,
1993 pub lock_owner: *mut rb_ractor_struct,
1994 pub lock_rec: ::std::os::raw::c_uint,
1995 pub terminate_cond: rb_nativethread_cond_t,
1996 pub terminate_waiting: bool,
1997}
1998impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
1999 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2000 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)
2001 }
2002}
2003#[repr(C)]
2004#[derive(Copy, Clone)]
2005pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2006 pub lock: rb_nativethread_lock_t,
2007 pub lock_owner: *mut rb_ractor_struct,
2008 pub locked: bool,
2009 pub cond: rb_nativethread_cond_t,
2010 pub snt_cnt: ::std::os::raw::c_uint,
2011 pub dnt_cnt: ::std::os::raw::c_uint,
2012 pub running_cnt: ::std::os::raw::c_uint,
2013 pub max_cpu: ::std::os::raw::c_uint,
2014 pub grq: ccan_list_head,
2015 pub grq_cnt: ::std::os::raw::c_uint,
2016 pub running_threads: ccan_list_head,
2017 pub timeslice_threads: ccan_list_head,
2018 pub zombie_threads: ccan_list_head,
2019 pub timeslice_wait_inf: bool,
2020 pub barrier_complete_cond: rb_nativethread_cond_t,
2021 pub barrier_release_cond: rb_nativethread_cond_t,
2022 pub barrier_waiting: bool,
2023 pub barrier_waiting_cnt: ::std::os::raw::c_uint,
2024 pub barrier_serial: ::std::os::raw::c_uint,
2025}
2026impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2027 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2028 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)
2029 }
2030}
2031impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2032 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2033 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)
2034 }
2035}
2036#[repr(C)]
2037#[derive(Debug, Copy, Clone)]
2038pub struct rb_vm_struct__bindgen_ty_2 {
2039 pub cmd: [VALUE; 65usize],
2040}
2041#[repr(C)]
2042#[derive(Debug, Copy, Clone)]
2043pub struct rb_vm_struct__bindgen_ty_3 {
2044 pub thread_vm_stack_size: usize,
2045 pub thread_machine_stack_size: usize,
2046 pub fiber_vm_stack_size: usize,
2047 pub fiber_machine_stack_size: usize,
2048}
2049impl ::std::fmt::Debug for rb_vm_struct {
2050 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2051 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: {:?}, ci_table: {:?}, 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 . ci_table , self . negative_cme_table , self . overloaded_cme_table , self . constant_cache , self . global_cc_cache_table , self . default_params)
2052 }
2053}
2054impl rb_vm_struct {
2055 #[inline]
2056 pub fn running(&self) -> ::std::os::raw::c_uint {
2057 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2058 }
2059 #[inline]
2060 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2061 unsafe {
2062 let val: u32 = ::std::mem::transmute(val);
2063 self._bitfield_1.set(0usize, 1u8, val as u64)
2064 }
2065 }
2066 #[inline]
2067 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2068 unsafe {
2069 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2070 ::std::ptr::addr_of!((*this)._bitfield_1),
2071 0usize,
2072 1u8,
2073 ) as u32)
2074 }
2075 }
2076 #[inline]
2077 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2078 unsafe {
2079 let val: u32 = ::std::mem::transmute(val);
2080 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2081 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2082 0usize,
2083 1u8,
2084 val as u64,
2085 )
2086 }
2087 }
2088 #[inline]
2089 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2090 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2091 }
2092 #[inline]
2093 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2094 unsafe {
2095 let val: u32 = ::std::mem::transmute(val);
2096 self._bitfield_1.set(1usize, 1u8, val as u64)
2097 }
2098 }
2099 #[inline]
2100 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2101 unsafe {
2102 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2103 ::std::ptr::addr_of!((*this)._bitfield_1),
2104 1usize,
2105 1u8,
2106 ) as u32)
2107 }
2108 }
2109 #[inline]
2110 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2111 unsafe {
2112 let val: u32 = ::std::mem::transmute(val);
2113 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2114 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2115 1usize,
2116 1u8,
2117 val as u64,
2118 )
2119 }
2120 }
2121 #[inline]
2122 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2123 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2124 }
2125 #[inline]
2126 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2127 unsafe {
2128 let val: u32 = ::std::mem::transmute(val);
2129 self._bitfield_1.set(2usize, 1u8, val as u64)
2130 }
2131 }
2132 #[inline]
2133 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2134 unsafe {
2135 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2136 ::std::ptr::addr_of!((*this)._bitfield_1),
2137 2usize,
2138 1u8,
2139 ) as u32)
2140 }
2141 }
2142 #[inline]
2143 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2144 unsafe {
2145 let val: u32 = ::std::mem::transmute(val);
2146 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2147 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2148 2usize,
2149 1u8,
2150 val as u64,
2151 )
2152 }
2153 }
2154 #[inline]
2155 pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2156 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2157 }
2158 #[inline]
2159 pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2160 unsafe {
2161 let val: u32 = ::std::mem::transmute(val);
2162 self._bitfield_1.set(3usize, 1u8, val as u64)
2163 }
2164 }
2165 #[inline]
2166 pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2167 unsafe {
2168 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2169 ::std::ptr::addr_of!((*this)._bitfield_1),
2170 3usize,
2171 1u8,
2172 ) as u32)
2173 }
2174 }
2175 #[inline]
2176 pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2177 unsafe {
2178 let val: u32 = ::std::mem::transmute(val);
2179 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2180 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2181 3usize,
2182 1u8,
2183 val as u64,
2184 )
2185 }
2186 }
2187 #[inline]
2188 pub fn new_bitfield_1(
2189 running: ::std::os::raw::c_uint,
2190 thread_abort_on_exception: ::std::os::raw::c_uint,
2191 thread_report_on_exception: ::std::os::raw::c_uint,
2192 thread_ignore_deadlock: ::std::os::raw::c_uint,
2193 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2194 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2195 __bindgen_bitfield_unit.set(0usize, 1u8, {
2196 let running: u32 = unsafe { ::std::mem::transmute(running) };
2197 running as u64
2198 });
2199 __bindgen_bitfield_unit.set(1usize, 1u8, {
2200 let thread_abort_on_exception: u32 =
2201 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2202 thread_abort_on_exception as u64
2203 });
2204 __bindgen_bitfield_unit.set(2usize, 1u8, {
2205 let thread_report_on_exception: u32 =
2206 unsafe { ::std::mem::transmute(thread_report_on_exception) };
2207 thread_report_on_exception as u64
2208 });
2209 __bindgen_bitfield_unit.set(3usize, 1u8, {
2210 let thread_ignore_deadlock: u32 =
2211 unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2212 thread_ignore_deadlock as u64
2213 });
2214 __bindgen_bitfield_unit
2215 }
2216}
2217pub type rb_vm_t = rb_vm_struct;
2218#[repr(C)]
2219#[derive(Debug, Copy, Clone)]
2220pub struct rb_control_frame_struct {
2221 pub pc: *const VALUE,
2222 pub sp: *mut VALUE,
2223 pub iseq: *const rb_iseq_t,
2224 pub self_: VALUE,
2225 pub ep: *const VALUE,
2226 pub block_code: *const ::std::os::raw::c_void,
2227 pub jit_return: *mut ::std::os::raw::c_void,
2228}
2229pub type rb_control_frame_t = rb_control_frame_struct;
2230pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2231pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2232pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2233pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2234pub type rb_thread_status = ::std::os::raw::c_uint;
2235pub type rb_jmpbuf_t = sigjmp_buf;
2236pub type rb_vm_tag_jmpbuf_t = rb_jmpbuf_t;
2237#[repr(C)]
2238#[derive(Debug, Copy, Clone)]
2239pub struct rb_vm_tag {
2240 pub tag: VALUE,
2241 pub retval: VALUE,
2242 pub buf: rb_vm_tag_jmpbuf_t,
2243 pub prev: *mut rb_vm_tag,
2244 pub state: ruby_tag_type,
2245 pub lock_rec: ::std::os::raw::c_uint,
2246}
2247#[repr(C)]
2248#[derive(Debug, Copy, Clone)]
2249pub struct rb_unblock_callback {
2250 pub func: rb_unblock_function_t,
2251 pub arg: *mut ::std::os::raw::c_void,
2252}
2253#[repr(C)]
2254#[derive(Debug, Copy, Clone)]
2255pub struct rb_mutex_struct {
2256 _unused: [u8; 0],
2257}
2258#[repr(C)]
2259#[derive(Debug, Copy, Clone)]
2260pub struct rb_ensure_entry {
2261 pub marker: VALUE,
2262 pub e_proc: ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>,
2263 pub data2: VALUE,
2264}
2265#[repr(C)]
2266#[derive(Debug, Copy, Clone)]
2267pub struct rb_ensure_list {
2268 pub next: *mut rb_ensure_list,
2269 pub entry: rb_ensure_entry,
2270}
2271pub type rb_ensure_list_t = rb_ensure_list;
2272#[repr(C)]
2273#[derive(Debug, Copy, Clone)]
2274pub struct rb_fiber_struct {
2275 _unused: [u8; 0],
2276}
2277pub type rb_fiber_t = rb_fiber_struct;
2278#[repr(C)]
2279#[derive(Debug, Copy, Clone)]
2280pub struct rb_waiting_list {
2281 pub next: *mut rb_waiting_list,
2282 pub thread: *mut rb_thread_struct,
2283 pub fiber: *mut rb_fiber_struct,
2284}
2285#[repr(C)]
2286#[derive(Debug, Copy, Clone)]
2287pub struct rb_execution_context_struct {
2288 pub vm_stack: *mut VALUE,
2289 pub vm_stack_size: usize,
2290 pub cfp: *mut rb_control_frame_t,
2291 pub tag: *mut rb_vm_tag,
2292 pub interrupt_flag: rb_atomic_t,
2293 pub interrupt_mask: rb_atomic_t,
2294 pub fiber_ptr: *mut rb_fiber_t,
2295 pub thread_ptr: *mut rb_thread_struct,
2296 pub local_storage: *mut rb_id_table,
2297 pub local_storage_recursive_hash: VALUE,
2298 pub local_storage_recursive_hash_for_trace: VALUE,
2299 pub storage: VALUE,
2300 pub root_lep: *const VALUE,
2301 pub root_svar: VALUE,
2302 pub ensure_list: *mut rb_ensure_list_t,
2303 pub trace_arg: *mut rb_trace_arg_struct,
2304 pub errinfo: VALUE,
2305 pub passed_block_handler: VALUE,
2306 pub raised_flag: u8,
2307 pub _bitfield_align_1: [u8; 0],
2308 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2309 pub private_const_reference: VALUE,
2310 pub machine: rb_execution_context_struct__bindgen_ty_1,
2311}
2312#[repr(C)]
2313#[derive(Debug, Copy, Clone)]
2314pub struct rb_execution_context_struct__bindgen_ty_1 {
2315 pub stack_start: *mut VALUE,
2316 pub stack_end: *mut VALUE,
2317 pub stack_maxsize: usize,
2318 pub regs: jmp_buf,
2319}
2320impl rb_execution_context_struct {
2321 #[inline]
2322 pub fn method_missing_reason(&self) -> method_missing_reason {
2323 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
2324 }
2325 #[inline]
2326 pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2327 unsafe {
2328 let val: u32 = ::std::mem::transmute(val);
2329 self._bitfield_1.set(0usize, 8u8, val as u64)
2330 }
2331 }
2332 #[inline]
2333 pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2334 unsafe {
2335 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2336 ::std::ptr::addr_of!((*this)._bitfield_1),
2337 0usize,
2338 8u8,
2339 ) as u32)
2340 }
2341 }
2342 #[inline]
2343 pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2344 unsafe {
2345 let val: u32 = ::std::mem::transmute(val);
2346 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2347 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2348 0usize,
2349 8u8,
2350 val as u64,
2351 )
2352 }
2353 }
2354 #[inline]
2355 pub fn new_bitfield_1(
2356 method_missing_reason: method_missing_reason,
2357 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2358 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2359 __bindgen_bitfield_unit.set(0usize, 8u8, {
2360 let method_missing_reason: u32 =
2361 unsafe { ::std::mem::transmute(method_missing_reason) };
2362 method_missing_reason as u64
2363 });
2364 __bindgen_bitfield_unit
2365 }
2366}
2367pub type rb_execution_context_t = rb_execution_context_struct;
2368#[repr(C)]
2369#[derive(Debug, Copy, Clone)]
2370pub struct rb_ext_config {
2371 pub ractor_safe: bool,
2372}
2373pub type rb_ractor_t = rb_ractor_struct;
2374#[repr(C)]
2375#[derive(Copy, Clone)]
2376pub struct rb_thread_struct {
2377 pub lt_node: ccan_list_node,
2378 pub self_: VALUE,
2379 pub ractor: *mut rb_ractor_t,
2380 pub vm: *mut rb_vm_t,
2381 pub nt: *mut rb_native_thread,
2382 pub ec: *mut rb_execution_context_t,
2383 pub sched: rb_thread_sched_item,
2384 pub serial: rb_atomic_t,
2385 pub last_status: VALUE,
2386 pub calling: *mut rb_calling_info,
2387 pub top_self: VALUE,
2388 pub top_wrapper: VALUE,
2389 pub _bitfield_align_1: [u8; 0],
2390 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2391 pub priority: i8,
2392 pub running_time_us: u32,
2393 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2394 pub thgroup: VALUE,
2395 pub value: VALUE,
2396 pub pending_interrupt_queue: VALUE,
2397 pub pending_interrupt_mask_stack: VALUE,
2398 pub interrupt_lock: rb_nativethread_lock_t,
2399 pub unblock: rb_unblock_callback,
2400 pub locking_mutex: VALUE,
2401 pub keeping_mutexes: *mut rb_mutex_struct,
2402 pub join_list: *mut rb_waiting_list,
2403 pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2404 pub invoke_type: rb_thread_struct_thread_invoke_type,
2405 pub stat_insn_usage: VALUE,
2406 pub root_fiber: *mut rb_fiber_t,
2407 pub scheduler: VALUE,
2408 pub blocking: ::std::os::raw::c_uint,
2409 pub name: VALUE,
2410 pub specific_storage: *mut *mut ::std::os::raw::c_void,
2411 pub ext_config: rb_ext_config,
2412}
2413#[repr(C)]
2414#[derive(Copy, Clone)]
2415pub union rb_thread_struct__bindgen_ty_1 {
2416 pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2417 pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2418}
2419#[repr(C)]
2420#[derive(Debug, Copy, Clone)]
2421pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2422 pub proc_: VALUE,
2423 pub args: VALUE,
2424 pub kw_splat: ::std::os::raw::c_int,
2425}
2426#[repr(C)]
2427#[derive(Debug, Copy, Clone)]
2428pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2429 pub func:
2430 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
2431 pub arg: *mut ::std::os::raw::c_void,
2432}
2433impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2434 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2435 write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2436 }
2437}
2438pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
2439 rb_thread_struct_thread_invoke_type = 0;
2440pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
2441 rb_thread_struct_thread_invoke_type = 1;
2442pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
2443 rb_thread_struct_thread_invoke_type = 2;
2444pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
2445 rb_thread_struct_thread_invoke_type = 3;
2446pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
2447impl ::std::fmt::Debug for rb_thread_struct {
2448 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2449 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)
2450 }
2451}
2452impl rb_thread_struct {
2453 #[inline]
2454 pub fn status(&self) -> rb_thread_status {
2455 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
2456 }
2457 #[inline]
2458 pub fn set_status(&mut self, val: rb_thread_status) {
2459 unsafe {
2460 let val: u32 = ::std::mem::transmute(val);
2461 self._bitfield_1.set(0usize, 2u8, val as u64)
2462 }
2463 }
2464 #[inline]
2465 pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2466 unsafe {
2467 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2468 ::std::ptr::addr_of!((*this)._bitfield_1),
2469 0usize,
2470 2u8,
2471 ) as u32)
2472 }
2473 }
2474 #[inline]
2475 pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2476 unsafe {
2477 let val: u32 = ::std::mem::transmute(val);
2478 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2479 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2480 0usize,
2481 2u8,
2482 val as u64,
2483 )
2484 }
2485 }
2486 #[inline]
2487 pub fn has_dedicated_nt(&self) -> ::std::os::raw::c_uint {
2488 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2489 }
2490 #[inline]
2491 pub fn set_has_dedicated_nt(&mut self, val: ::std::os::raw::c_uint) {
2492 unsafe {
2493 let val: u32 = ::std::mem::transmute(val);
2494 self._bitfield_1.set(2usize, 1u8, val as u64)
2495 }
2496 }
2497 #[inline]
2498 pub unsafe fn has_dedicated_nt_raw(this: *const Self) -> ::std::os::raw::c_uint {
2499 unsafe {
2500 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2501 ::std::ptr::addr_of!((*this)._bitfield_1),
2502 2usize,
2503 1u8,
2504 ) as u32)
2505 }
2506 }
2507 #[inline]
2508 pub unsafe fn set_has_dedicated_nt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2509 unsafe {
2510 let val: u32 = ::std::mem::transmute(val);
2511 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2512 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2513 2usize,
2514 1u8,
2515 val as u64,
2516 )
2517 }
2518 }
2519 #[inline]
2520 pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2521 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2522 }
2523 #[inline]
2524 pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2525 unsafe {
2526 let val: u32 = ::std::mem::transmute(val);
2527 self._bitfield_1.set(3usize, 1u8, val as u64)
2528 }
2529 }
2530 #[inline]
2531 pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2532 unsafe {
2533 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2534 ::std::ptr::addr_of!((*this)._bitfield_1),
2535 3usize,
2536 1u8,
2537 ) as u32)
2538 }
2539 }
2540 #[inline]
2541 pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2542 unsafe {
2543 let val: u32 = ::std::mem::transmute(val);
2544 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2545 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2546 3usize,
2547 1u8,
2548 val as u64,
2549 )
2550 }
2551 }
2552 #[inline]
2553 pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2554 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2555 }
2556 #[inline]
2557 pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2558 unsafe {
2559 let val: u32 = ::std::mem::transmute(val);
2560 self._bitfield_1.set(4usize, 1u8, val as u64)
2561 }
2562 }
2563 #[inline]
2564 pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2565 unsafe {
2566 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2567 ::std::ptr::addr_of!((*this)._bitfield_1),
2568 4usize,
2569 1u8,
2570 ) as u32)
2571 }
2572 }
2573 #[inline]
2574 pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2575 unsafe {
2576 let val: u32 = ::std::mem::transmute(val);
2577 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2578 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2579 4usize,
2580 1u8,
2581 val as u64,
2582 )
2583 }
2584 }
2585 #[inline]
2586 pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2587 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2588 }
2589 #[inline]
2590 pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2591 unsafe {
2592 let val: u32 = ::std::mem::transmute(val);
2593 self._bitfield_1.set(5usize, 1u8, val as u64)
2594 }
2595 }
2596 #[inline]
2597 pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2598 unsafe {
2599 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2600 ::std::ptr::addr_of!((*this)._bitfield_1),
2601 5usize,
2602 1u8,
2603 ) as u32)
2604 }
2605 }
2606 #[inline]
2607 pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2608 unsafe {
2609 let val: u32 = ::std::mem::transmute(val);
2610 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2611 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2612 5usize,
2613 1u8,
2614 val as u64,
2615 )
2616 }
2617 }
2618 #[inline]
2619 pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
2620 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
2621 }
2622 #[inline]
2623 pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
2624 unsafe {
2625 let val: u32 = ::std::mem::transmute(val);
2626 self._bitfield_1.set(6usize, 1u8, val as u64)
2627 }
2628 }
2629 #[inline]
2630 pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
2631 unsafe {
2632 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2633 ::std::ptr::addr_of!((*this)._bitfield_1),
2634 6usize,
2635 1u8,
2636 ) as u32)
2637 }
2638 }
2639 #[inline]
2640 pub unsafe fn set_pending_interrupt_queue_checked_raw(
2641 this: *mut Self,
2642 val: ::std::os::raw::c_uint,
2643 ) {
2644 unsafe {
2645 let val: u32 = ::std::mem::transmute(val);
2646 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2647 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2648 6usize,
2649 1u8,
2650 val as u64,
2651 )
2652 }
2653 }
2654 #[inline]
2655 pub fn new_bitfield_1(
2656 status: rb_thread_status,
2657 has_dedicated_nt: ::std::os::raw::c_uint,
2658 to_kill: ::std::os::raw::c_uint,
2659 abort_on_exception: ::std::os::raw::c_uint,
2660 report_on_exception: ::std::os::raw::c_uint,
2661 pending_interrupt_queue_checked: ::std::os::raw::c_uint,
2662 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2663 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2664 __bindgen_bitfield_unit.set(0usize, 2u8, {
2665 let status: u32 = unsafe { ::std::mem::transmute(status) };
2666 status as u64
2667 });
2668 __bindgen_bitfield_unit.set(2usize, 1u8, {
2669 let has_dedicated_nt: u32 = unsafe { ::std::mem::transmute(has_dedicated_nt) };
2670 has_dedicated_nt as u64
2671 });
2672 __bindgen_bitfield_unit.set(3usize, 1u8, {
2673 let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
2674 to_kill as u64
2675 });
2676 __bindgen_bitfield_unit.set(4usize, 1u8, {
2677 let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2678 abort_on_exception as u64
2679 });
2680 __bindgen_bitfield_unit.set(5usize, 1u8, {
2681 let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2682 report_on_exception as u64
2683 });
2684 __bindgen_bitfield_unit.set(6usize, 1u8, {
2685 let pending_interrupt_queue_checked: u32 =
2686 unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
2687 pending_interrupt_queue_checked as u64
2688 });
2689 __bindgen_bitfield_unit
2690 }
2691}
2692pub type rb_thread_t = rb_thread_struct;
2693#[repr(C)]
2694#[derive(Debug, Copy, Clone)]
2695pub struct rb_trace_arg_struct {
2696 pub event: rb_event_flag_t,
2697 pub ec: *mut rb_execution_context_t,
2698 pub cfp: *const rb_control_frame_t,
2699 pub self_: VALUE,
2700 pub id: ID,
2701 pub called_id: ID,
2702 pub klass: VALUE,
2703 pub data: VALUE,
2704 pub klass_solved: ::std::os::raw::c_int,
2705 pub lineno: ::std::os::raw::c_int,
2706 pub path: VALUE,
2707}
2708#[repr(C)]
2709#[derive(Debug, Copy, Clone)]
2710pub struct rb_ractor_pub {
2711 pub self_: VALUE,
2712 pub id: u32,
2713 pub hooks: rb_hook_list_t,
2714}
2715#[repr(C)]
2716#[derive(Debug, Copy, Clone)]
2717pub struct ractor_newobj_size_pool_cache {
2718 pub freelist: *mut RVALUE,
2719 pub using_page: *mut heap_page,
2720}
2721pub type rb_ractor_newobj_size_pool_cache_t = ractor_newobj_size_pool_cache;
2722#[repr(C)]
2723#[derive(Debug, Copy, Clone)]
2724pub struct ractor_newobj_cache {
2725 pub incremental_mark_step_allocated_slots: usize,
2726 pub size_pool_caches: [rb_ractor_newobj_size_pool_cache_t; 5usize],
2727}
2728pub type rb_ractor_newobj_cache_t = ractor_newobj_cache;
2729pub const rb_ractor_basket_type_basket_type_none: rb_ractor_basket_type = 0;
2730pub const rb_ractor_basket_type_basket_type_ref: rb_ractor_basket_type = 1;
2731pub const rb_ractor_basket_type_basket_type_copy: rb_ractor_basket_type = 2;
2732pub const rb_ractor_basket_type_basket_type_move: rb_ractor_basket_type = 3;
2733pub const rb_ractor_basket_type_basket_type_will: rb_ractor_basket_type = 4;
2734pub const rb_ractor_basket_type_basket_type_deleted: rb_ractor_basket_type = 5;
2735pub const rb_ractor_basket_type_basket_type_reserved: rb_ractor_basket_type = 6;
2736pub const rb_ractor_basket_type_basket_type_take_basket: rb_ractor_basket_type = 7;
2737pub const rb_ractor_basket_type_basket_type_yielding: rb_ractor_basket_type = 8;
2738pub type rb_ractor_basket_type = ::std::os::raw::c_uint;
2739#[repr(C)]
2740#[derive(Debug, Copy, Clone)]
2741pub struct rb_ractor_selector_take_config {
2742 pub closed: bool,
2743 pub oneshot: bool,
2744}
2745#[repr(C)]
2746#[derive(Copy, Clone)]
2747pub struct rb_ractor_basket {
2748 pub type_: rb_ractor_basket__bindgen_ty_1,
2749 pub sender: VALUE,
2750 pub p: rb_ractor_basket__bindgen_ty_2,
2751}
2752#[repr(C)]
2753#[derive(Copy, Clone)]
2754pub union rb_ractor_basket__bindgen_ty_1 {
2755 pub e: rb_ractor_basket_type,
2756 pub atomic: rb_atomic_t,
2757}
2758impl ::std::fmt::Debug for rb_ractor_basket__bindgen_ty_1 {
2759 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2760 write!(f, "rb_ractor_basket__bindgen_ty_1 {{ union }}")
2761 }
2762}
2763#[repr(C)]
2764#[derive(Copy, Clone)]
2765pub union rb_ractor_basket__bindgen_ty_2 {
2766 pub send: rb_ractor_basket__bindgen_ty_2__bindgen_ty_1,
2767 pub take: rb_ractor_basket__bindgen_ty_2__bindgen_ty_2,
2768}
2769#[repr(C)]
2770#[derive(Debug, Copy, Clone)]
2771pub struct rb_ractor_basket__bindgen_ty_2__bindgen_ty_1 {
2772 pub v: VALUE,
2773 pub exception: bool,
2774}
2775#[repr(C)]
2776#[derive(Debug, Copy, Clone)]
2777pub struct rb_ractor_basket__bindgen_ty_2__bindgen_ty_2 {
2778 pub basket: *mut rb_ractor_basket,
2779 pub config: *mut rb_ractor_selector_take_config,
2780}
2781impl ::std::fmt::Debug for rb_ractor_basket__bindgen_ty_2 {
2782 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2783 write!(f, "rb_ractor_basket__bindgen_ty_2 {{ union }}")
2784 }
2785}
2786impl ::std::fmt::Debug for rb_ractor_basket {
2787 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2788 write!(
2789 f,
2790 "rb_ractor_basket {{ type: {:?}, sender: {:?}, p: {:?} }}",
2791 self.type_, self.sender, self.p
2792 )
2793 }
2794}
2795#[repr(C)]
2796#[derive(Debug, Copy, Clone)]
2797pub struct rb_ractor_queue {
2798 pub baskets: *mut rb_ractor_basket,
2799 pub start: ::std::os::raw::c_int,
2800 pub cnt: ::std::os::raw::c_int,
2801 pub size: ::std::os::raw::c_int,
2802 pub serial: ::std::os::raw::c_uint,
2803 pub reserved_cnt: ::std::os::raw::c_uint,
2804}
2805pub const rb_ractor_wait_status_wait_none: rb_ractor_wait_status = 0;
2806pub const rb_ractor_wait_status_wait_receiving: rb_ractor_wait_status = 1;
2807pub const rb_ractor_wait_status_wait_taking: rb_ractor_wait_status = 2;
2808pub const rb_ractor_wait_status_wait_yielding: rb_ractor_wait_status = 4;
2809pub const rb_ractor_wait_status_wait_moving: rb_ractor_wait_status = 8;
2810pub type rb_ractor_wait_status = ::std::os::raw::c_uint;
2811pub const rb_ractor_wakeup_status_wakeup_none: rb_ractor_wakeup_status = 0;
2812pub const rb_ractor_wakeup_status_wakeup_by_send: rb_ractor_wakeup_status = 1;
2813pub const rb_ractor_wakeup_status_wakeup_by_yield: rb_ractor_wakeup_status = 2;
2814pub const rb_ractor_wakeup_status_wakeup_by_take: rb_ractor_wakeup_status = 3;
2815pub const rb_ractor_wakeup_status_wakeup_by_close: rb_ractor_wakeup_status = 4;
2816pub const rb_ractor_wakeup_status_wakeup_by_interrupt: rb_ractor_wakeup_status = 5;
2817pub const rb_ractor_wakeup_status_wakeup_by_retry: rb_ractor_wakeup_status = 6;
2818pub type rb_ractor_wakeup_status = ::std::os::raw::c_uint;
2819#[repr(C)]
2820#[derive(Copy, Clone)]
2821pub struct rb_ractor_sync {
2822 pub lock: rb_nativethread_lock_t,
2823 pub incoming_port_closed: bool,
2824 pub outgoing_port_closed: bool,
2825 pub recv_queue: rb_ractor_queue,
2826 pub takers_queue: rb_ractor_queue,
2827 pub will_basket: rb_ractor_basket,
2828 pub wait: rb_ractor_sync_ractor_wait,
2829}
2830#[repr(C)]
2831#[derive(Debug, Copy, Clone)]
2832pub struct rb_ractor_sync_ractor_wait {
2833 pub status: rb_ractor_wait_status,
2834 pub wakeup_status: rb_ractor_wakeup_status,
2835 pub waiting_thread: *mut rb_thread_t,
2836}
2837impl ::std::fmt::Debug for rb_ractor_sync {
2838 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2839 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)
2840 }
2841}
2842pub const ractor_status_ractor_created: ractor_status = 0;
2843pub const ractor_status_ractor_running: ractor_status = 1;
2844pub const ractor_status_ractor_blocking: ractor_status = 2;
2845pub const ractor_status_ractor_terminated: ractor_status = 3;
2846pub type ractor_status = ::std::os::raw::c_uint;
2847#[repr(C)]
2848#[derive(Copy, Clone)]
2849pub struct rb_ractor_struct {
2850 pub pub_: rb_ractor_pub,
2851 pub sync: rb_ractor_sync,
2852 pub receiving_mutex: VALUE,
2853 pub barrier_wait_cond: rb_nativethread_cond_t,
2854 pub threads: rb_ractor_struct__bindgen_ty_1,
2855 pub thgroup_default: VALUE,
2856 pub name: VALUE,
2857 pub loc: VALUE,
2858 pub status_: ractor_status,
2859 pub vmlr_node: ccan_list_node,
2860 pub local_storage: *mut st_table,
2861 pub idkey_local_storage: *mut rb_id_table,
2862 pub r_stdin: VALUE,
2863 pub r_stdout: VALUE,
2864 pub r_stderr: VALUE,
2865 pub verbose: VALUE,
2866 pub debug: VALUE,
2867 pub newobj_cache: rb_ractor_newobj_cache_t,
2868 pub mfd: *mut rb_ractor_struct_gc_mark_func_data_struct,
2869}
2870#[repr(C)]
2871#[derive(Copy, Clone)]
2872pub struct rb_ractor_struct__bindgen_ty_1 {
2873 pub set: ccan_list_head,
2874 pub cnt: ::std::os::raw::c_uint,
2875 pub blocking_cnt: ::std::os::raw::c_uint,
2876 pub sleeper: ::std::os::raw::c_uint,
2877 pub sched: rb_thread_sched,
2878 pub running_ec: *mut rb_execution_context_t,
2879 pub main: *mut rb_thread_t,
2880}
2881impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
2882 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2883 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)
2884 }
2885}
2886#[repr(C)]
2887#[derive(Debug, Copy, Clone)]
2888pub struct rb_ractor_struct_gc_mark_func_data_struct {
2889 pub data: *mut ::std::os::raw::c_void,
2890 pub mark_func:
2891 ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
2892}
2893impl ::std::fmt::Debug for rb_ractor_struct {
2894 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2895 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)
2896 }
2897}
2898#[repr(C)]
2899#[derive(Debug, Copy, Clone)]
2900pub struct iseq_compile_data {
2901 pub err_info: VALUE,
2902 pub catch_table_ary: VALUE,
2903 pub start_label: *mut iseq_label_data,
2904 pub end_label: *mut iseq_label_data,
2905 pub redo_label: *mut iseq_label_data,
2906 pub current_block: *const rb_iseq_t,
2907 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2908 pub node: iseq_compile_data__bindgen_ty_1,
2909 pub insn: iseq_compile_data__bindgen_ty_2,
2910 pub in_rescue: bool,
2911 pub loopval_popped: ::std::os::raw::c_int,
2912 pub last_line: ::std::os::raw::c_int,
2913 pub label_no: ::std::os::raw::c_int,
2914 pub node_level: ::std::os::raw::c_int,
2915 pub isolated_depth: ::std::os::raw::c_int,
2916 pub ci_index: ::std::os::raw::c_uint,
2917 pub ic_index: ::std::os::raw::c_uint,
2918 pub option: *const rb_compile_option_t,
2919 pub ivar_cache_table: *mut rb_id_table,
2920 pub builtin_function_table: *const rb_builtin_function,
2921 pub root_node: *const NODE,
2922 pub catch_except_p: bool,
2923}
2924#[repr(C)]
2925#[derive(Debug, Copy, Clone)]
2926pub struct iseq_compile_data__bindgen_ty_1 {
2927 pub storage_head: *mut iseq_compile_data_storage,
2928 pub storage_current: *mut iseq_compile_data_storage,
2929}
2930#[repr(C)]
2931#[derive(Debug, Copy, Clone)]
2932pub struct iseq_compile_data__bindgen_ty_2 {
2933 pub storage_head: *mut iseq_compile_data_storage,
2934 pub storage_current: *mut iseq_compile_data_storage,
2935}
2936#[repr(C)]
2937#[derive(Debug, Copy, Clone)]
2938pub struct rb_compile_option_struct {
2939 pub _bitfield_align_1: [u8; 0],
2940 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2941 pub debug_level: ::std::os::raw::c_int,
2942}
2943impl rb_compile_option_struct {
2944 #[inline]
2945 pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
2946 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2947 }
2948 #[inline]
2949 pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
2950 unsafe {
2951 let val: u32 = ::std::mem::transmute(val);
2952 self._bitfield_1.set(0usize, 1u8, val as u64)
2953 }
2954 }
2955 #[inline]
2956 pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
2957 unsafe {
2958 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2959 ::std::ptr::addr_of!((*this)._bitfield_1),
2960 0usize,
2961 1u8,
2962 ) as u32)
2963 }
2964 }
2965 #[inline]
2966 pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2967 unsafe {
2968 let val: u32 = ::std::mem::transmute(val);
2969 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2970 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2971 0usize,
2972 1u8,
2973 val as u64,
2974 )
2975 }
2976 }
2977 #[inline]
2978 pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
2979 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2980 }
2981 #[inline]
2982 pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
2983 unsafe {
2984 let val: u32 = ::std::mem::transmute(val);
2985 self._bitfield_1.set(1usize, 1u8, val as u64)
2986 }
2987 }
2988 #[inline]
2989 pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2990 unsafe {
2991 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2992 ::std::ptr::addr_of!((*this)._bitfield_1),
2993 1usize,
2994 1u8,
2995 ) as u32)
2996 }
2997 }
2998 #[inline]
2999 pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3000 unsafe {
3001 let val: u32 = ::std::mem::transmute(val);
3002 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3003 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3004 1usize,
3005 1u8,
3006 val as u64,
3007 )
3008 }
3009 }
3010 #[inline]
3011 pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3012 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3013 }
3014 #[inline]
3015 pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3016 unsafe {
3017 let val: u32 = ::std::mem::transmute(val);
3018 self._bitfield_1.set(2usize, 1u8, val as u64)
3019 }
3020 }
3021 #[inline]
3022 pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3023 unsafe {
3024 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3025 ::std::ptr::addr_of!((*this)._bitfield_1),
3026 2usize,
3027 1u8,
3028 ) as u32)
3029 }
3030 }
3031 #[inline]
3032 pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3033 unsafe {
3034 let val: u32 = ::std::mem::transmute(val);
3035 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3036 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3037 2usize,
3038 1u8,
3039 val as u64,
3040 )
3041 }
3042 }
3043 #[inline]
3044 pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3045 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3046 }
3047 #[inline]
3048 pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3049 unsafe {
3050 let val: u32 = ::std::mem::transmute(val);
3051 self._bitfield_1.set(3usize, 1u8, val as u64)
3052 }
3053 }
3054 #[inline]
3055 pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3056 unsafe {
3057 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3058 ::std::ptr::addr_of!((*this)._bitfield_1),
3059 3usize,
3060 1u8,
3061 ) as u32)
3062 }
3063 }
3064 #[inline]
3065 pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3066 unsafe {
3067 let val: u32 = ::std::mem::transmute(val);
3068 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3069 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3070 3usize,
3071 1u8,
3072 val as u64,
3073 )
3074 }
3075 }
3076 #[inline]
3077 pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3078 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3079 }
3080 #[inline]
3081 pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3082 unsafe {
3083 let val: u32 = ::std::mem::transmute(val);
3084 self._bitfield_1.set(4usize, 1u8, val as u64)
3085 }
3086 }
3087 #[inline]
3088 pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3089 unsafe {
3090 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3091 ::std::ptr::addr_of!((*this)._bitfield_1),
3092 4usize,
3093 1u8,
3094 ) as u32)
3095 }
3096 }
3097 #[inline]
3098 pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3099 unsafe {
3100 let val: u32 = ::std::mem::transmute(val);
3101 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3102 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3103 4usize,
3104 1u8,
3105 val as u64,
3106 )
3107 }
3108 }
3109 #[inline]
3110 pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3111 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3112 }
3113 #[inline]
3114 pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3115 unsafe {
3116 let val: u32 = ::std::mem::transmute(val);
3117 self._bitfield_1.set(5usize, 1u8, val as u64)
3118 }
3119 }
3120 #[inline]
3121 pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3122 unsafe {
3123 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3124 ::std::ptr::addr_of!((*this)._bitfield_1),
3125 5usize,
3126 1u8,
3127 ) as u32)
3128 }
3129 }
3130 #[inline]
3131 pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3132 unsafe {
3133 let val: u32 = ::std::mem::transmute(val);
3134 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3135 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3136 5usize,
3137 1u8,
3138 val as u64,
3139 )
3140 }
3141 }
3142 #[inline]
3143 pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3144 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
3145 }
3146 #[inline]
3147 pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3148 unsafe {
3149 let val: u32 = ::std::mem::transmute(val);
3150 self._bitfield_1.set(6usize, 1u8, val as u64)
3151 }
3152 }
3153 #[inline]
3154 pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3155 unsafe {
3156 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3157 ::std::ptr::addr_of!((*this)._bitfield_1),
3158 6usize,
3159 1u8,
3160 ) as u32)
3161 }
3162 }
3163 #[inline]
3164 pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3165 unsafe {
3166 let val: u32 = ::std::mem::transmute(val);
3167 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3168 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3169 6usize,
3170 1u8,
3171 val as u64,
3172 )
3173 }
3174 }
3175 #[inline]
3176 pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3177 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
3178 }
3179 #[inline]
3180 pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3181 unsafe {
3182 let val: u32 = ::std::mem::transmute(val);
3183 self._bitfield_1.set(7usize, 1u8, val as u64)
3184 }
3185 }
3186 #[inline]
3187 pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3188 unsafe {
3189 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3190 ::std::ptr::addr_of!((*this)._bitfield_1),
3191 7usize,
3192 1u8,
3193 ) as u32)
3194 }
3195 }
3196 #[inline]
3197 pub unsafe fn set_debug_frozen_string_literal_raw(
3198 this: *mut Self,
3199 val: ::std::os::raw::c_uint,
3200 ) {
3201 unsafe {
3202 let val: u32 = ::std::mem::transmute(val);
3203 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3204 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3205 7usize,
3206 1u8,
3207 val as u64,
3208 )
3209 }
3210 }
3211 #[inline]
3212 pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3213 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
3214 }
3215 #[inline]
3216 pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3217 unsafe {
3218 let val: u32 = ::std::mem::transmute(val);
3219 self._bitfield_1.set(8usize, 1u8, val as u64)
3220 }
3221 }
3222 #[inline]
3223 pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3224 unsafe {
3225 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3226 ::std::ptr::addr_of!((*this)._bitfield_1),
3227 8usize,
3228 1u8,
3229 ) as u32)
3230 }
3231 }
3232 #[inline]
3233 pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3234 unsafe {
3235 let val: u32 = ::std::mem::transmute(val);
3236 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3237 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3238 8usize,
3239 1u8,
3240 val as u64,
3241 )
3242 }
3243 }
3244 #[inline]
3245 pub fn new_bitfield_1(
3246 inline_const_cache: ::std::os::raw::c_uint,
3247 peephole_optimization: ::std::os::raw::c_uint,
3248 tailcall_optimization: ::std::os::raw::c_uint,
3249 specialized_instruction: ::std::os::raw::c_uint,
3250 operands_unification: ::std::os::raw::c_uint,
3251 instructions_unification: ::std::os::raw::c_uint,
3252 frozen_string_literal: ::std::os::raw::c_uint,
3253 debug_frozen_string_literal: ::std::os::raw::c_uint,
3254 coverage_enabled: ::std::os::raw::c_uint,
3255 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3256 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3257 __bindgen_bitfield_unit.set(0usize, 1u8, {
3258 let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3259 inline_const_cache as u64
3260 });
3261 __bindgen_bitfield_unit.set(1usize, 1u8, {
3262 let peephole_optimization: u32 =
3263 unsafe { ::std::mem::transmute(peephole_optimization) };
3264 peephole_optimization as u64
3265 });
3266 __bindgen_bitfield_unit.set(2usize, 1u8, {
3267 let tailcall_optimization: u32 =
3268 unsafe { ::std::mem::transmute(tailcall_optimization) };
3269 tailcall_optimization as u64
3270 });
3271 __bindgen_bitfield_unit.set(3usize, 1u8, {
3272 let specialized_instruction: u32 =
3273 unsafe { ::std::mem::transmute(specialized_instruction) };
3274 specialized_instruction as u64
3275 });
3276 __bindgen_bitfield_unit.set(4usize, 1u8, {
3277 let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3278 operands_unification as u64
3279 });
3280 __bindgen_bitfield_unit.set(5usize, 1u8, {
3281 let instructions_unification: u32 =
3282 unsafe { ::std::mem::transmute(instructions_unification) };
3283 instructions_unification as u64
3284 });
3285 __bindgen_bitfield_unit.set(6usize, 1u8, {
3286 let frozen_string_literal: u32 =
3287 unsafe { ::std::mem::transmute(frozen_string_literal) };
3288 frozen_string_literal as u64
3289 });
3290 __bindgen_bitfield_unit.set(7usize, 1u8, {
3291 let debug_frozen_string_literal: u32 =
3292 unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3293 debug_frozen_string_literal as u64
3294 });
3295 __bindgen_bitfield_unit.set(8usize, 1u8, {
3296 let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3297 coverage_enabled as u64
3298 });
3299 __bindgen_bitfield_unit
3300 }
3301}
3302#[repr(C)]
3303#[derive(Debug, Copy, Clone)]
3304pub struct iseq_insn_info_entry {
3305 pub line_no: ::std::os::raw::c_int,
3306 pub node_id: ::std::os::raw::c_int,
3307 pub events: rb_event_flag_t,
3308}
3309pub const rb_catch_type_CATCH_TYPE_RESCUE: rb_catch_type = 3;
3310pub const rb_catch_type_CATCH_TYPE_ENSURE: rb_catch_type = 5;
3311pub const rb_catch_type_CATCH_TYPE_RETRY: rb_catch_type = 7;
3312pub const rb_catch_type_CATCH_TYPE_BREAK: rb_catch_type = 9;
3313pub const rb_catch_type_CATCH_TYPE_REDO: rb_catch_type = 11;
3314pub const rb_catch_type_CATCH_TYPE_NEXT: rb_catch_type = 13;
3315pub type rb_catch_type = ::std::os::raw::c_uint;
3316#[repr(C)]
3317#[derive(Debug, Copy, Clone)]
3318pub struct iseq_catch_table_entry {
3319 pub type_: rb_catch_type,
3320 pub iseq: *mut rb_iseq_t,
3321 pub start: ::std::os::raw::c_uint,
3322 pub end: ::std::os::raw::c_uint,
3323 pub cont: ::std::os::raw::c_uint,
3324 pub sp: ::std::os::raw::c_uint,
3325}
3326#[repr(C, packed)]
3327pub struct iseq_catch_table {
3328 pub size: ::std::os::raw::c_uint,
3329 pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3330}
3331#[repr(C)]
3332#[derive(Debug)]
3333pub struct iseq_compile_data_storage {
3334 pub next: *mut iseq_compile_data_storage,
3335 pub pos: ::std::os::raw::c_uint,
3336 pub size: ::std::os::raw::c_uint,
3337 pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3338}
3339#[repr(C)]
3340#[derive(Debug, Copy, Clone)]
3341pub struct coroutine_context {
3342 pub _address: u8,
3343}
3344#[repr(C)]
3345#[derive(Debug, Copy, Clone)]
3346pub struct rb_call_data {
3347 pub _address: u8,
3348}
3349#[repr(C)]
3350#[derive(Debug, Copy, Clone)]
3351pub struct succ_index_table {
3352 pub _address: u8,
3353}
3354#[repr(C)]
3355#[derive(Debug, Copy, Clone)]
3356pub struct rb_event_hook_struct {
3357 pub _address: u8,
3358}
3359#[repr(C)]
3360#[derive(Debug, Copy, Clone)]
3361pub struct rb_postponed_job_queue {
3362 pub _address: u8,
3363}
3364#[repr(C)]
3365#[derive(Debug, Copy, Clone)]
3366pub struct RVALUE {
3367 pub _address: u8,
3368}
3369#[repr(C)]
3370#[derive(Debug, Copy, Clone)]
3371pub struct heap_page {
3372 pub _address: u8,
3373}
3374#[repr(C)]
3375#[derive(Debug, Copy, Clone)]
3376pub struct iseq_label_data {
3377 pub _address: u8,
3378}
3379#[repr(C)]
3380#[derive(Debug, Copy, Clone)]
3381pub struct iseq_compile_data_ensure_node_stack {
3382 pub _address: u8,
3383}