alef 0.79.0

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% if needs_foundation %}import Foundation
{% endif %}
import {{ module }}

{{ body }}
{% for operation in presentation %}
{% if operation.kind == "show" %}
{{ "print" if operation.display else "debugPrint" }}({{ operation.expression }}{% if operation.shown_optional %} as Any{% endif %})
{% else %}
for {{ operation.item }} in {{ operation.expression }}{% if operation.optional %} ?? []{% endif %} {
{% for field in operation.fields %}
    {{ "print" if operation.display else "debugPrint" }}({{ field }}{% if operation.field_optionals[loop.index0] %} as Any{% endif %})
{% endfor %}
}
{% endif %}
{% endfor %}