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