Debian Codegraph @

third_party/rust/uniffi_bindgen/src/bindings/swift/templates/Protocol.swift

raw
1 {%- call swift::docstring_value(protocol_docstring, 0) %}
2 public protocol {{ protocol_name }}: AnyObject, Sendable {
3 {% for meth in methods.iter() -%}
4 {%- call swift::docstring(meth, 4) %}
5 func {{ meth.name()|fn_name }}({% call swift::arg_list_protocol(meth) %}) {% call swift::is_async(meth) -%}{% call swift::throws(meth) -%}
6 {%- match meth.return_type() -%}
7 {%- when Some with (return_type) %} -> {{ return_type|type_name -}}
8 {%- else -%}
9 {%- endmatch %}
10 {% endfor %}
11 }