Debian Codegraph @

.cargo/vendor/cbindgen/tests/rust/rename.rs

raw
1 struct A {
2 x: i32,
3 y: f32,
4 }
5
6 #[repr(C)]
7 struct B {
8 x: i32,
9 y: f32,
10 }
11
12 union C {
13 x: i32,
14 y: f32,
15 }
16
17 #[repr(C)]
18 union D {
19 x: i32,
20 y: f32,
21 }
22
23 #[repr(u8)]
24 enum E {
25 x = 0,
26 y = 1,
27 }
28
29 type F = A;
30
31 #[no_mangle]
32 pub static G: i32 = 10;
33
34 pub const H: i32 = 10;
35
36 pub const I: isize = 10 as *mut F as isize;
37
38 #[no_mangle]
39 pub extern "C" fn root(
40 a: *const A,
41 b: B,
42 c: C,
43 d: D,
44 e: E,
45 f: F,
46 ) { }
47