mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-07-24 15:05:55 -04:00
1213b3dfb1
remove `clap` dependency 🎉
update the book installation instructions
31 lines
414 B
C
31 lines
414 B
C
// A few tests for enum-related issues that should be tested with all the enum
|
|
// representations.
|
|
|
|
struct foo {
|
|
enum {
|
|
FOO_A,
|
|
FOO_B,
|
|
} member;
|
|
};
|
|
|
|
enum Foo {
|
|
Bar = 0,
|
|
Qux
|
|
};
|
|
|
|
enum Neg {
|
|
MinusOne = -1,
|
|
One = 1,
|
|
};
|
|
|
|
/** <div rustbindgen nodebug></div> */
|
|
enum NoDebug {
|
|
NoDebug1,
|
|
NoDebug2,
|
|
};
|
|
|
|
/** <div rustbindgen derive="Debug"></div> */
|
|
enum Debug {
|
|
Debug1,
|
|
Debug2,
|
|
}; |