mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 07:10:29 +00:00
Example code for #[cxx::bridge]
: struct MyType;
=> type MyType;
This commit is contained in:
parent
f33abb9ca8
commit
9e7a622ca9
@ -91,7 +91,7 @@ statement.
|
||||
#[cxx::bridge]
|
||||
mod ffi {
|
||||
extern "Rust" {
|
||||
struct MyType;
|
||||
type MyType;
|
||||
fn f() -> Box<MyType>;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user