alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[new]
#[pyo3(signature = ({{ signature_defaults }}))]
fn new(
{% for field in fields -%}
    {{ field.name }}: {{ field.type }}{{ "," if not loop.last else "" }}
{% endfor -%}
) -> Self {
    Self {
{% for field in fields -%}
        {{ field.name }},
{% endfor -%}
    }
}