alef 0.114.2

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
extension {{ name }}: Swift.CustomStringConvertible {
    /// Uses the Rust display template when available, otherwise the transported message or variant name. ~keep
    public var description: String {
        switch self {
{% for case in cases %}
        case .{{ case.name }}{{ case.pattern }}: return {{ case.expression }}
{% endfor %}
        }
    }
}