☰
Debian Codegraph
@
1.4.4-1
/
/
.cargo
/
vendor
/
cbindgen
/
tests
/
rust
/
prefixed_struct_literal.rs
☽
☼
.cargo/vendor/cbindgen/tests/rust/prefixed_struct_literal.rs
code
plain
raw
MPL-2.0
NONE
debian/copyright
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) { }