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