Debian Codegraph @

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

raw
1 #[repr(C)]
2 pub struct Foo<T> {
3 a: T,
4 }
5
6 pub type Boo = Foo<u8>;
7
8 /// cbindgen:prefix-with-name=true
9 #[repr(C)]
10 pub enum Bar {
11 Some,
12 Thing,
13 }
14
15 #[no_mangle]
16 pub extern "C" fn root(
17 x: Boo,
18 y: Bar,
19 ) { }