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
"RustString f(int32_t a0, int32_t a1, std::string_view a2) const noexcept";
r#"template<bool OWN_DATA>
    inline RustString FooWrapper<OWN_DATA>::f(int32_t a0, int32_t a1, std::string_view a2) const noexcept
    {

        struct CRustString ret = Foo_f(this->self_, a0, a1, CRustStrView{ a2.data(), a2.size() });
        return RustString{ret};
    }"#;
r#"
#include "rust_str.h"
#include <string_view>

#include "c_Foo.h""#;