.cargo/vendor/cbindgen/tests/rust/constant_constexpr.rs
raw| 1 | pub const CONSTANT_I64: i64 = 216; |
| 2 | pub const CONSTANT_FLOAT32: f32 = 312.292; |
| 3 | pub const DELIMITER: char = ':'; |
| 4 | pub const LEFTCURLY: char = '{'; |
| 5 | #[repr(C)] |
| 6 | struct Foo { |
| 7 | x: i32, |
| 8 | } |
| 9 | |
| 10 | pub const SomeFoo: Foo = Foo { x: 99, }; |
| 11 | |
| 12 | impl Foo { |
| 13 | pub const CONSTANT_I64_BODY: i64 = 216; |
| 14 | } |