mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-25 10:31:12 +00:00
15 lines
179 B
Rust
15 lines
179 B
Rust
#[cxx::bridge]
|
|
mod ffi {
|
|
extern "C" {
|
|
type One;
|
|
type Two;
|
|
fn f(&mut self);
|
|
}
|
|
|
|
extern "Rust" {
|
|
fn f(self: &Self);
|
|
}
|
|
}
|
|
|
|
fn main() {}
|