alef 0.115.2

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub(super) fn emit(type_names: &[String], body: &mut String) {
    for type_name in type_names {
        body.push_str(&crate::backends::swift::template_env::render(
            "typealias.jinja",
            crate::alef_context! {
                name => &format!("{type_name}Ref"),
            },
        ));
        body.push('\n');
        body.push_str(&crate::backends::swift::template_env::render(
            "typealias.jinja",
            crate::alef_context! {
                name => &format!("{type_name}RefMut"),
            },
        ));
        body.push('\n');
    }
}