• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)]
2 #[repr(C)]
3 pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>);
4 impl<T> __BindgenUnionField<T> {
5     #[inline]
new() -> Self6     pub fn new() -> Self {
7         __BindgenUnionField(::std::marker::PhantomData)
8     }
9     #[inline]
as_ref(&self) -> &T10     pub unsafe fn as_ref(&self) -> &T {
11         ::std::mem::transmute(self)
12     }
13     #[inline]
as_mut(&mut self) -> &mut T14     pub unsafe fn as_mut(&mut self) -> &mut T {
15         ::std::mem::transmute(self)
16     }
17 }
18 impl<T> ::std::default::Default for __BindgenUnionField<T> {
19     #[inline]
default() -> Self20     fn default() -> Self {
21         Self::new()
22     }
23 }
24 impl<T> ::std::clone::Clone for __BindgenUnionField<T> {
25     #[inline]
clone(&self) -> Self26     fn clone(&self) -> Self {
27         *self
28     }
29 }
30 impl<T> ::std::marker::Copy for __BindgenUnionField<T> {}
31 impl<T> ::std::fmt::Debug for __BindgenUnionField<T> {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result32     fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
33         fmt.write_str("__BindgenUnionField")
34     }
35 }
36 impl<T> ::std::hash::Hash for __BindgenUnionField<T> {
hash<H: ::std::hash::Hasher>(&self, _state: &mut H)37     fn hash<H: ::std::hash::Hasher>(&self, _state: &mut H) {}
38 }
39 impl<T> ::std::cmp::PartialEq for __BindgenUnionField<T> {
eq(&self, _other: &__BindgenUnionField<T>) -> bool40     fn eq(&self, _other: &__BindgenUnionField<T>) -> bool {
41         true
42     }
43 }
44 impl<T> ::std::cmp::Eq for __BindgenUnionField<T> {}
45 #[repr(C)]
46 #[derive(Debug, Copy, Clone)]
47 pub struct StylePoint<T> {
48     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
49     pub x: T,
50     pub y: T,
51 }
52 impl<T> Default for StylePoint<T> {
default() -> Self53     fn default() -> Self {
54         unsafe {
55             let mut s: Self = ::std::mem::uninitialized();
56             ::std::ptr::write_bytes(&mut s, 0, 1);
57             s
58         }
59     }
60 }
61 #[repr(C)]
62 #[derive(Debug, Default, Copy, Clone)]
63 pub struct StyleFoo<T> {
64     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
65     pub __bindgen_anon_1: __BindgenUnionField<StyleFoo__bindgen_ty_1>,
66     pub foo: __BindgenUnionField<StyleFoo_Foo_Body<T>>,
67     pub bar: __BindgenUnionField<StyleFoo_Bar_Body<T>>,
68     pub baz: __BindgenUnionField<StyleFoo_Baz_Body<T>>,
69     pub bindgen_union_field: [u8; 0usize],
70 }
71 pub const StyleFoo_Tag_Foo: StyleFoo_Tag = 0;
72 pub const StyleFoo_Tag_Bar: StyleFoo_Tag = 0;
73 pub const StyleFoo_Tag_Baz: StyleFoo_Tag = 0;
74 pub const StyleFoo_Tag_Bazz: StyleFoo_Tag = 0;
75 pub type StyleFoo_Tag = u8;
76 #[repr(C)]
77 #[derive(Debug, Copy, Clone)]
78 pub struct StyleFoo_Foo_Body<T> {
79     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
80     pub tag: StyleFoo_Tag,
81     pub x: i32,
82     pub y: StylePoint<T>,
83     pub z: StylePoint<f32>,
84 }
85 impl<T> Default for StyleFoo_Foo_Body<T> {
default() -> Self86     fn default() -> Self {
87         unsafe {
88             let mut s: Self = ::std::mem::uninitialized();
89             ::std::ptr::write_bytes(&mut s, 0, 1);
90             s
91         }
92     }
93 }
94 #[repr(C)]
95 #[derive(Debug, Copy, Clone)]
96 pub struct StyleFoo_Bar_Body<T> {
97     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
98     pub tag: StyleFoo_Tag,
99     pub _0: T,
100 }
101 impl<T> Default for StyleFoo_Bar_Body<T> {
default() -> Self102     fn default() -> Self {
103         unsafe {
104             let mut s: Self = ::std::mem::uninitialized();
105             ::std::ptr::write_bytes(&mut s, 0, 1);
106             s
107         }
108     }
109 }
110 #[repr(C)]
111 #[derive(Debug, Copy, Clone)]
112 pub struct StyleFoo_Baz_Body<T> {
113     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
114     pub tag: StyleFoo_Tag,
115     pub _0: StylePoint<T>,
116 }
117 impl<T> Default for StyleFoo_Baz_Body<T> {
default() -> Self118     fn default() -> Self {
119         unsafe {
120             let mut s: Self = ::std::mem::uninitialized();
121             ::std::ptr::write_bytes(&mut s, 0, 1);
122             s
123         }
124     }
125 }
126 #[repr(C)]
127 #[derive(Debug, Copy, Clone)]
128 pub struct StyleFoo__bindgen_ty_1 {
129     pub tag: StyleFoo_Tag,
130 }
131 impl Default for StyleFoo__bindgen_ty_1 {
default() -> Self132     fn default() -> Self {
133         unsafe {
134             let mut s: Self = ::std::mem::uninitialized();
135             ::std::ptr::write_bytes(&mut s, 0, 1);
136             s
137         }
138     }
139 }
140 #[repr(C)]
141 #[derive(Debug, Copy, Clone)]
142 pub struct StyleBar<T> {
143     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
144     pub tag: StyleBar_Tag,
145     pub __bindgen_anon_1: StyleBar__bindgen_ty_1<T>,
146 }
147 pub const StyleBar_Tag_Bar1: StyleBar_Tag = 0;
148 pub const StyleBar_Tag_Bar2: StyleBar_Tag = 0;
149 pub const StyleBar_Tag_Bar3: StyleBar_Tag = 0;
150 pub const StyleBar_Tag_Bar4: StyleBar_Tag = 0;
151 pub type StyleBar_Tag = ::std::os::raw::c_int;
152 #[repr(C)]
153 #[derive(Debug, Copy, Clone)]
154 pub struct StyleBar_StyleBar1_Body<T> {
155     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
156     pub x: i32,
157     pub y: StylePoint<T>,
158     pub z: StylePoint<f32>,
159 }
160 impl<T> Default for StyleBar_StyleBar1_Body<T> {
default() -> Self161     fn default() -> Self {
162         unsafe {
163             let mut s: Self = ::std::mem::uninitialized();
164             ::std::ptr::write_bytes(&mut s, 0, 1);
165             s
166         }
167     }
168 }
169 #[repr(C)]
170 #[derive(Debug, Copy, Clone)]
171 pub struct StyleBar_StyleBar2_Body<T> {
172     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
173     pub _0: T,
174 }
175 impl<T> Default for StyleBar_StyleBar2_Body<T> {
default() -> Self176     fn default() -> Self {
177         unsafe {
178             let mut s: Self = ::std::mem::uninitialized();
179             ::std::ptr::write_bytes(&mut s, 0, 1);
180             s
181         }
182     }
183 }
184 #[repr(C)]
185 #[derive(Debug, Copy, Clone)]
186 pub struct StyleBar_StyleBar3_Body<T> {
187     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
188     pub _0: StylePoint<T>,
189 }
190 impl<T> Default for StyleBar_StyleBar3_Body<T> {
default() -> Self191     fn default() -> Self {
192         unsafe {
193             let mut s: Self = ::std::mem::uninitialized();
194             ::std::ptr::write_bytes(&mut s, 0, 1);
195             s
196         }
197     }
198 }
199 #[repr(C)]
200 #[derive(Debug, Default, Copy, Clone)]
201 pub struct StyleBar__bindgen_ty_1<T> {
202     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
203     pub bar1: __BindgenUnionField<StyleBar_StyleBar1_Body<T>>,
204     pub bar2: __BindgenUnionField<StyleBar_StyleBar2_Body<T>>,
205     pub bar3: __BindgenUnionField<StyleBar_StyleBar3_Body<T>>,
206     pub bindgen_union_field: [u8; 0usize],
207 }
208 impl<T> Default for StyleBar<T> {
default() -> Self209     fn default() -> Self {
210         unsafe {
211             let mut s: Self = ::std::mem::uninitialized();
212             ::std::ptr::write_bytes(&mut s, 0, 1);
213             s
214         }
215     }
216 }
217 #[test]
__bindgen_test_layout_StylePoint_open0_float_close0_instantiation()218 fn __bindgen_test_layout_StylePoint_open0_float_close0_instantiation() {
219     assert_eq!(
220         ::std::mem::size_of::<StylePoint<f32>>(),
221         8usize,
222         "Size of template specialization: StylePoint_open0_float_close0",
223     );
224     assert_eq!(
225         ::std::mem::align_of::<StylePoint<f32>>(),
226         4usize,
227         "Align of template specialization: StylePoint_open0_float_close0",
228     );
229 }
230 #[test]
__bindgen_test_layout_StylePoint_open0_float_close0_instantiation_1()231 fn __bindgen_test_layout_StylePoint_open0_float_close0_instantiation_1() {
232     assert_eq!(
233         ::std::mem::size_of::<StylePoint<f32>>(),
234         8usize,
235         "Size of template specialization: StylePoint_open0_float_close0",
236     );
237     assert_eq!(
238         ::std::mem::align_of::<StylePoint<f32>>(),
239         4usize,
240         "Align of template specialization: StylePoint_open0_float_close0",
241     );
242 }
243