flapigen 0.11.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##"# [ unsafe ( no_mangle ) ] pub extern "C" fn Java_org_example_Boo_do_1f1 ( env : * mut JNIEnv , _ : jclass , this : jlong , ) -> ( ) {
 let this : & RefCell < Boo > = unsafe { jlong_to_pointer ::< RefCell < Boo >> ( this ) . as_mut ( ) . unwrap ( ) } ;
 let mut this : Ref < Boo > = this.borrow();
 let mut this : & Boo = & this;
 let mut ret : ( ) = Boo :: f1 ( this , ) ;
 ret }"##;

r##"# [ unsafe ( no_mangle ) ] pub extern "C" fn Java_org_example_Foo_do_1f1 ( env : * mut JNIEnv , _ : jclass , a0 : jlong , ) -> ( ) {
 let a0 : & RefCell < Boo > = unsafe { jlong_to_pointer ::< RefCell < Boo >> ( a0 ) . as_mut ( ) . unwrap ( ) } ;
 let mut a0 : Ref < Boo > = a0.borrow();
 let mut a0 : & Boo = & a0;
 let mut ret : ( ) = f1 ( a0 ) ; ret }"##;

r##"# [ unsafe ( no_mangle ) ] pub extern "C" fn Java_org_example_Foo_do_1f2 ( env : * mut JNIEnv , _ : jclass , a0 : jlong , ) -> ( ) {
 let a0 : & RefCell < Boo > = unsafe { jlong_to_pointer ::< RefCell < Boo >> ( a0 ) . as_mut ( ) . unwrap ( ) } ;
 let mut a0 : RefMut < Boo > = a0.borrow_mut();
 let mut a0 : & mut Boo = &mut a0;
 let mut ret : ( ) = f2 ( a0 ) ; ret }"##;