alef 0.79.1

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
{% if repr == "internal" or repr == "adjacent" %}
    case .{{ swift_case }}: return "{\"{{ tag_key }}\":\"{{ variant_wire }}\"}"
{% elif repr == "untagged" %}
    case .{{ swift_case }}: return "null"
{% else %}
    case .{{ swift_case }}: return "\"{{ variant_wire }}\""
{% endif %}