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
24 lines
355 B
C++
24 lines
355 B
C++
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq
|
|
|
|
/**
|
|
* <div rustbindgen opaque></div>
|
|
*/
|
|
struct OtherOpaque {
|
|
int c;
|
|
};
|
|
|
|
/**
|
|
* <div rustbindgen opaque></div>
|
|
*/
|
|
template <typename T>
|
|
struct Opaque {
|
|
T whatever;
|
|
};
|
|
|
|
struct WithOpaquePtr {
|
|
Opaque<int>* whatever;
|
|
Opaque<float> other;
|
|
OtherOpaque t;
|
|
};
|
|
|