alef 0.75.0

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
{# Same asymmetry as rust_from_core_struct_open.jinja: the mirror struct declaration stays #}
{# unconditional, but this impl names `core_ty` (the host path) directly, so a whole-type gate #}
{# (`source_cfg` from `ty.cfg`) must carry through here too. #}
{% if source_cfg %}#[cfg({{ source_cfg }})]
{% endif %}impl From<{{ name }}> for {{ core_ty }} {
    fn from(v: {{ name }}) -> Self {
        {{ core_ty }} {