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