• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #[cxx::bridge]
2 mod ffi {
3     struct S {
4         c: C,
5         r: R,
6         s: CxxString,
7     }
8 
9     extern "C++" {
10         type C;
11     }
12 
13     extern "Rust" {
14         type R;
15 
f(c: C) -> C16         fn f(c: C) -> C;
g(r: R) -> R17         fn g(r: R) -> R;
h(s: CxxString) -> CxxString18         fn h(s: CxxString) -> CxxString;
19     }
20 }
21 
main()22 fn main() {}
23