mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-08-27 05:31:15 -04:00
1213b3dfb1
remove `clap` dependency 🎉
update the book installation instructions
19 lines
372 B
C
19 lines
372 B
C
// bindgen-flags: --with-derive-hash --with-derive-partialord --with-derive-ord --with-derive-partialeq --with-derive-eq
|
|
//
|
|
/// Pointers can derive Hash/PartialOrd/Ord/PartialEq/Eq
|
|
struct ConstPtrMutObj {
|
|
int* const bar;
|
|
};
|
|
|
|
struct MutPtrMutObj {
|
|
int* bar;
|
|
};
|
|
|
|
struct MutPtrConstObj {
|
|
const int* bar;
|
|
};
|
|
|
|
struct ConstPtrConstObj {
|
|
const int* const bar;
|
|
};
|