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