alef 0.76.0

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
{% if source_cfg -%}
#[cfg({{ source_cfg }})]
{% endif -%}
#[allow(dead_code)]
fn {{ enum_snake }}_from_i32_rs(v: i32) -> Option<{{ qualified }}> {
    match v {
{{ arms }}        _ => None,
    }
}