rust_swig 0.4.0

Tool for connecting libraries written in Rust with other languages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
r##"#[no_mangle]
pub extern "C" fn Java_org_example_Foo_do_1f7(
    env: *mut JNIEnv,
    _: jclass,
    this: jlong,
    a0: internal_aliases::JStringOptStr,
) -> () {
    let tmp: JavaString;
    let a0: Option<&str> = if !a0.is_null() {
        tmp = a0.swig_into(env);
        Some(tmp.swig_deref())
    } else {
        None
    };
    let this: &Foo = unsafe { jlong_to_pointer::<Foo>(this).as_mut().unwrap() };
    let mut ret: () = Foo::f7(this, a0);
    ret
}"##;