diplomat 0.4.0

The diplomat FFI generation macro
Documentation
---
source: macro/src/lib.rs
expression: "rustfmt_code(&gen_bridge(parse_quote! {\n                             mod ffi\n                             {\n                                 struct Foo { } impl Foo\n                                 {\n                                     pub fn\n                                     to_string(& self, to : & mut\n                                               DiplomatWriteable) ->\n                                     DiplomatResult < (), () >\n                                     { unimplemented! () }\n                                 }\n                             }\n                         }).to_token_stream().to_string())"

---
mod ffi {
    #[repr(C)]
    struct Foo {}
    impl Foo {
        pub fn to_string(&self, to: &mut DiplomatWriteable) -> DiplomatResult<(), ()> {
            unimplemented!()
        }
    }
    #[no_mangle]
    extern "C" fn Foo_to_string(
        this: &Foo,
        to: &mut diplomat_runtime::DiplomatWriteable,
    ) -> diplomat_runtime::DiplomatResult<(), ()> {
        this.to_string(to)
    }
    #[no_mangle]
    extern "C" fn Foo_destroy(this: Box<Foo>) {}
}