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