Debian Codegraph @

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

raw
1 #[repr(C)]
2 struct Foo {
3 a: i32,
4 b: u32,
5 }
6
7 impl Foo {
8 pub const FOO: Foo = Foo{ a: 42, b: 47, };
9 }
10
11 pub const BAR: Foo = Foo{ a: 42, b: 1337, };
12
13 #[no_mangle]
14 pub extern "C" fn root(x: Foo) { }