alef 0.25.39

Opinionated polyglot binding generator for Rust libraries
Documentation
/// <summary>
/// Bridge interface for {{ trait_pascal }} trait implementation via native FFI
/// </summary>
public interface I{{ trait_pascal }} {
{% if has_super_trait %}

    /// <summary>Get the plugin name.</summary>
    string Name { get; }

    /// <summary>Get the plugin version.</summary>
    string Version { get; }

    /// <summary>Initialize the plugin.</summary>
    void Initialize();

    /// <summary>Shut down the plugin.</summary>
    void Shutdown();
{% endif %}
{% for method in methods %}

    /// <summary>{{ method.name }}</summary>
{% if method.params_empty and method.return_type != "void" %}
    {{ method.return_type }} {{ method.method_name }} { get; }
{% else %}
    {{ method.return_type }} {{ method.method_name }}({{ method.params_sig }});
{% endif %}
{% endfor %}
}