mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-08-27 05:31:15 -04:00
24 lines
393 B
C++
24 lines
393 B
C++
// bindgen-flags: -- --std=c++14
|
|
|
|
namespace JS {
|
|
namespace detail {
|
|
|
|
/// Notice how this doesn't use T.
|
|
template <typename T>
|
|
using MaybeWrapped = int;
|
|
|
|
}
|
|
|
|
template <typename T>
|
|
class Rooted {
|
|
detail::MaybeWrapped<T> ptr;
|
|
};
|
|
|
|
}
|
|
|
|
/// But the replacement type does use T!
|
|
///
|
|
/// <div rustbindgen replaces="JS::detail::MaybeWrapped" />
|
|
template <typename T>
|
|
using replaces_MaybeWrapped = T;
|