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