Debian Codegraph @

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

raw
1 #[repr(C)]
2 struct Foo {}
3
4 impl Foo {
5 pub const GA: i32 = 10;
6 pub const BU: &'static str = "hello world";
7 pub const ZO: f32 = 3.14;
8
9 pub(crate) const DONT_EXPORT_CRATE: i32 = 20;
10 const DONT_EXPORT_PRIV: i32 = 30;
11 }
12
13 #[no_mangle]
14 pub extern "C" fn root(x: Foo) { }