alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
public struct {{ type_name }}: Codable, Sendable, Hashable {
{{ properties }}    public init({{ init_params }}) {
{{ init_assignments }}    }
{% if coding_keys %}
    private enum CodingKeys: String, CodingKey {
{{ coding_keys }}    }
{% endif %}
{% if decoder_init %}
{{ decoder_init }}{% endif %}
{% if methods %}
    // MARK: - Instance Methods
{{ methods }}{% endif %}
}

// MARK: - Internal FFI conversions for {{ type_name }}
internal extension {{ type_name }} {
    init(_ rb: RustBridge.{{ type_name }}Ref) throws {
{{ ffi_init_assignments }}    }

    func intoRust() throws -> RustBridge.{{ type_name }} {
{{ into_rust_body }}    }
}