flapigen 0.11.0

Tool for connecting libraries written in Rust with other languages
Documentation
r#"pub extern "C" fn Foo_f1 ( this : * mut Foo , a0 : :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_char {
 let mut a0 : bool = a0 != 0 ;
 let this : & mut Foo = unsafe { this . as_mut ( ) . unwrap ( ) } ;
 let mut ret : bool = f1 ( this , a0 ) ;
 let mut ret : :: std :: os :: raw :: c_char = if ret { 1 } else { 0 } ;
 ret }"#;
r#"pub extern "C" fn Foo_new ( a0 : :: std :: os :: raw :: c_char , ) -> * const :: std :: os :: raw :: c_void {
 let mut a0 : bool = a0 != 0 ;
 let this : Foo = Foo :: new ( a0 ) ;
 let this : Box < Foo > = Box :: new ( this ) ;
 let this : * mut Foo = Box :: into_raw ( this ) ;
 this as * const :: std :: os :: raw :: c_void
 }"#;
r#"# [ unsafe ( no_mangle ) ]
 pub extern "C" fn Foo_f2 ( a0 : :: std :: os :: raw :: c_char , ) -> :: std :: os :: raw :: c_char {
 let mut a0 : bool = a0 != 0 ;
 let mut ret : bool = f2 ( a0 ) ;
 let mut ret : :: std :: os :: raw :: c_char = if ret { 1 } else { 0 } ;
 ret }"#;

r#"onStateChanged1:
        extern "C" fn(a0: i32, a1: ::std::os::raw::c_char, _: *const ::std::os::raw::c_void) -> (),"#;