alef-codegen 0.15.39

Shared codegen utilities for the alef polyglot binding generator
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub fn __construct(
{% for field in fields -%}
    {{ field.name }}: Option<{{ field.ty }}>{{ "," if not loop.last else "" }}
{% endfor -%}
) -> Self {
    Self {
{% for field in fields -%}
        {{ field.name }}: {{ field.assignment }},
{% endfor -%}
    }
}