Debian Codegraph @

third_party/rust/uniffi_bindgen/src/bindings/kotlin/templates/Interface.kt

raw
1 {%- call kt::docstring_value(interface_docstring, 0) %}
2 public interface {{ interface_name }} {
3 {% for meth in methods.iter() -%}
4 {%- call kt::docstring(meth, 4) %}
5 {% if meth.is_async() -%}suspend {% endif -%}
6 fun {{ meth.name()|fn_name }}({% call kt::arg_list(meth, true) %})
7 {%- match meth.return_type() -%}
8 {%- when Some(return_type) %}: {{ return_type|type_name(ci) -}}
9 {%- else -%}
10 {%- endmatch %}
11 {% endfor %}
12 companion object
13 }
14