alef 0.113.2

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
    def {{ name }}({{ signature }}) -> {{ return_type }}:
        """{{ doc }}"""
        from .api import {{ to_native }}  # noqa: PLC0415
{% if converts_result %}
        result = {{ to_native }}(self).{{ name }}({{ call_args }})
        return {{ result_expr }}
{% elif returns_unit %}
        {{ to_native }}(self).{{ name }}({{ call_args }})
{% else %}
        return {{ to_native }}(self).{{ name }}({{ call_args }})
{% endif %}